You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "BewareMyPower (via GitHub)" <gi...@apache.org> on 2024/04/23 14:03:41 UTC
[I] [Bug] Broker could take 30+ seconds to close with extensible load manager [pulsar]
BewareMyPower opened a new issue, #22569:
URL: https://github.com/apache/pulsar/issues/22569
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Read release policy
- [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
### Version
master (89b201ed8a49877e0a7148b060af945b29074b02)
### Minimal reproduce step
```java
public class ExtensibleLoadManagerCloseTest extends MultiBrokerBaseTest {
@Override
protected void startBroker() throws Exception {
addCustomConfigs(conf);
super.startBroker();
}
@Override
protected ServiceConfiguration createConfForAdditionalBroker(int additionalBrokerIndex) {
return addCustomConfigs(getDefaultConf());
}
private static ServiceConfiguration addCustomConfigs(ServiceConfiguration config) {
config.setLoadManagerClassName(ExtensibleLoadManagerImpl.class.getName());
config.setDefaultNumberOfNamespaceBundles(16);
config.setLoadBalancerAutoBundleSplitEnabled(false);
config.setLoadBalancerDebugModeEnabled(true);
return config;
}
@Test
public void test() throws Exception {
final var topic = "test";
admin.topics().createPartitionedTopic(topic, 20);
admin.lookups().lookupPartitionedTopic(topic);
@Cleanup final var client = PulsarClient.builder().serviceUrl(pulsar.getBrokerServiceUrl()).build();
@Cleanup final var producer = (PartitionedProducerImpl<byte[]>) client.newProducer().topic(topic).create();
}
}
```
### What did you expect to see?
It should not takes too long to complete.
### What did you see instead?
It sometimes took about 54 seconds to complete and sometimes 22 seconds.
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Broker could take 30+ seconds to close with extensible load manager [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari closed issue #22569: [Bug] Broker could take 30+ seconds to close with extensible load manager
URL: https://github.com/apache/pulsar/issues/22569
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org