You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you enable automatically follow redirects, the request will eventually return unauthorized 401 even though I provide a valid JWT that works with other non-topic related requests.
Shutting down 2 brokers (out of 3), inevitbly resolves the issue since there would be only one topic owner.
Expected behavior
I expect the redirects to eventually give me a broker that has the response for my request.
Desktop (please complete the following information):
OS: CentOS 7
Additional context
Pulsar Version: 2.8.2 - 2.8.3 (may affect more versions, not tested)
As requested by @lhotari jstack dumps:
Bugged when 3 brokers are up:
It it not clear to me which API has the problem. Do we have a simple reproducer?
Admin Rest API v2, as stated in the issue, if the HTTP request is related to topic ownership, it can start happening, and when it does start happening, a broker reset is required.
Thank you very much for your answers.
Do you see loads in the broker about bundle unloading or bundle splitting related to that namespace?
There were (and probably still they are) problems with unloading. Last week I was investigating some of these problems in case of OOM during bundle unloading.
Thank you very much for your answers. Do you see loads in the broker about bundle unloading or bundle splitting related to that namespace?
There were (and probably still they are) problems with unloading. Last week I was investigating some of these problems in case of OOM during bundle unloading.
I am not entirely sure if bundle unloading/splitting is the cause of the issue since I have not noticed any OOM problems, it almost seems random.
To my knowledge, there are multiple topic metadata & ownership issues that were being worked on, but sadly I am unaware of their status and have a hard time catching up due to busy schedule.
Hi @mattisonchao, i am working with @ronfarkash,
thank u for your help but sadly your recommendation did not solve the problem for us, we are getting a lot of redirect (sometime above 10,000 and probably endless, this is the limit we tested).
do u have more configuration to try , or do u need any more info to continue helping us.
Activity
mattisonchao commentedon Jan 26, 2022
I think i can help with it.
rfmyuk commentedon Jan 31, 2022
@mattisonchao Are there any updates related to this issue?
lhotari commentedon Jan 31, 2022
@ronfarkash Do you use the Pulsar Proxy?
rfmyuk commentedon Jan 31, 2022
No, 3 brokers and I send requests directly to them.
rfmyuk commentedon Feb 27, 2022
@mattisonchao Asking again if there is anything in the works for this issue?
eolivelli commentedon Feb 27, 2022
It it not clear to me which API has the problem.
Do we have a simple reproducer?
eolivelli commentedon Feb 27, 2022
Which pulsar version?
rfmyuk commentedon Feb 27, 2022
Admin Rest API v2, as stated in the issue, if the HTTP request is related to topic ownership, it can start happening, and when it does start happening, a broker reset is required.
Stated above, 2.8.2
eolivelli commentedon Feb 27, 2022
Thank you very much for your answers.
Do you see loads in the broker about bundle unloading or bundle splitting related to that namespace?
There were (and probably still they are) problems with unloading. Last week I was investigating some of these problems in case of OOM during bundle unloading.
rfmyuk commentedon Feb 28, 2022
I am not entirely sure if bundle unloading/splitting is the cause of the issue since I have not noticed any OOM problems, it almost seems random.
To my knowledge, there are multiple topic metadata & ownership issues that were being worked on, but sadly I am unaware of their status and have a hard time catching up due to busy schedule.
github-actions commentedon Mar 31, 2022
The issue had no activity for 30 days, mark with Stale label.
mattisonchao commentedon Mar 31, 2022
@ronfarkash
Sorry for the late reply, I will check it and try to reproduce it.
rfmyuk commentedon Apr 9, 2022
This issue was still not fixed by 2.8.3 so as requested by @lhotari
jstack dumps:
Bugged when 3 brokers are up:
Not bugged when 1 broker is up:
I made Broker 1 work forcibly by shutting down the two other brokers therefore Broker 1 can't direct me to brokers which are down.
rfmyuk commentedon Apr 11, 2022
@mattisonchao added some more information on how to attempt to reproduce the issue.
lhotari commentedon Apr 27, 2022
@ronfarkash What type of deployment is this? Is it a Kubernetes deployment?
rfmyuk commentedon Apr 27, 2022
Microsoft Azure VMs.
mattisonchao commentedon May 30, 2022
Hi, @ronfarkash
When you get a new address, you need to make
authoritative=true.If you open the
Automatically follow redirects, the broker will help you do that thing when redirected.shaniMaayan commentedon Jun 13, 2022
Hi @mattisonchao, i am working with @ronfarkash,
thank u for your help but sadly your recommendation did not solve the problem for us, we are getting a lot of redirect (sometime above 10,000 and probably endless, this is the limit we tested).
do u have more configuration to try , or do u need any more info to continue helping us.
mattisonchao commentedon Oct 20, 2022
Hi, @shaniMaayan
Would you like to check PR #17401? it probably fixes this problem.
I will close this PR and I will reopen it when the problem appears again.