hangc0276 opened a new pull request #11115:
URL: https://github.com/apache/pulsar/pull/11115


   ### Motivation
   When running test, it fails sporadically.
   
   [example 
failure](https://github.com/apache/pulsar/pull/11114/checks?check_run_id=2921358630)
   ```
   Error:  Tests run: 73, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 
922.345 s <<< FAILURE! - in org.apache.pulsar.broker.admin.AdminApiTest
   Error:  
testUpdateDynamicLocalConfiguration(org.apache.pulsar.broker.admin.AdminApiTest)
  Time elapsed: 10.05 s  <<< FAILURE!
   org.awaitility.core.ConditionTimeoutException: Condition with lambda 
expression in org.apache.pulsar.broker.admin.AdminApiTest was not fulfilled 
within 10 seconds.
        at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
        at 
org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
        at 
org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
        at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
        at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:864)
        at 
org.apache.pulsar.broker.admin.AdminApiTest.testUpdateDynamicLocalConfiguration(AdminApiTest.java:626)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
        at 
org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
        at 
org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
        at 
org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
   ```
   
   #11059  fix this test failed with `Awaitility.await().until` to wait for zk 
sync, however the default wait timeout is 10s, if zk sync reaches 10s, it will 
also run fail.
   
   ### Modification
   1. simplify check logic and increase wait timeout to 30s.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to