Search before asking
Read release policy
Version
master (89b201e)
Minimal reproduce step
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?
With the default load manager, it only takes about 15 seconds to complete.
Are you willing to submit a PR?
Search before asking
Read release policy
Version
master (89b201e)
Minimal reproduce step
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?
With the default load manager, it only takes about 15 seconds to complete.
Are you willing to submit a PR?