Repository navigation
Conversation
There was a problem hiding this comment.
Looks good. Should we add it as command line param as well?
|
This is somehow causing NPEs inside Jersey... investigating |
68ef5cc to
d06aa1b
Compare
|
Ok, jersey aws expecting an |
|
@sschepens Change looks good. As @saandrews was saying, can you also make the timeout configurable in the CLI tool at |
|
Yes, I've been busy, I made this change mostly because brokers use PulsarAdmin internally, and found that sometimes requests hang for a very long time. |
|
@sschepens No problem. The only tricky part is that there might be some admin call that are taking ~30sec. For example, when unloading a namespace that has many (thousands of) topics, it can take ~10sec. Also, some of the REST calls (eg: clearing backlog on whole namespace) are actually generating multiple internal REST calls (eg: one per bundle) and that can add up to the total time. That's why I'm a bit worried about the 30sec :) . In any case, I totally agree we need to have a max on it. |
|
This PR is evidently stale or abandoned. Reopen if this is not so. |
|
@sschepens:Thanks for your contribution. For this PR, do we need to update docs? |
PulsarAdmin requests seem to not have any timeouts set, use
pulsarConfig.getOperationTimeoutMs()to set request timeout and set a default connect timeout of 5 sec.