You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/21 12:27:40 UTC

[GitHub] [pulsar] codelipenghui commented on a diff in pull request #16714: [fix][test] NamespaceServiceTest.testSplitBundleWithHighestThroughput

codelipenghui commented on code in PR #16714:
URL: https://github.com/apache/pulsar/pull/16714#discussion_r926611270


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/namespace/NamespaceServiceTest.java:
##########
@@ -602,8 +602,8 @@ public void testSplitLargestBundle() throws Exception {
      */
     @Test
     public void testSplitBundleWithHighestThroughput() throws Exception {
-
         conf.setLoadManagerClassName(ModularLoadManagerImpl.class.getName());
+        conf.setLoadBalancerEnabled(false);

Review Comment:
   Hmmm, it's a little confusing. The test is related to the load manager but need to disable the load balancer in the test.



##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/namespace/NamespaceServiceTest.java:
##########
@@ -602,8 +602,8 @@ public void testSplitLargestBundle() throws Exception {
      */
     @Test
     public void testSplitBundleWithHighestThroughput() throws Exception {
-
         conf.setLoadManagerClassName(ModularLoadManagerImpl.class.getName());
+        conf.setLoadBalancerEnabled(false);

Review Comment:
   I think without this change, the flaky test can also be fixed? Since we will not return null for method `getBundleWithHighestThroughput`



-- 
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