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/05/26 01:49:22 UTC

[GitHub] [pulsar] RobertIndie opened a new issue, #15793: Flaky-test: BinaryProtoLookupServiceTest.maxLookupRedirectsTest1

RobertIndie opened a new issue, #15793:
URL: https://github.com/apache/pulsar/issues/15793

   <!--- 
   
   Instructions for reporting a flaky test using this issue template:
   
   1. Replace test_class in title and body with the short test class name WITHOUT the package name.
   2. Replace test_method in title and body with the test method that failed. Multiple methods are flaky, remove the content that refers to the test method.
   3. Replace "url here" with a url to an example failure. In the Github Actions workflow run logs, you can right click on the line number to copy a link to the line. Example of such url is https://github.com/apache/pulsar/pull/8892/checks?check_run_id=1531075794#step:9:377 . The logs are available for a limited amount of time (usually for a few weeks).
   4. Replace "relevant parts of the exception stacktrace here" with the a few lines of the stack trace that shows at least the exception message and the line of test code where the stacktrace occurred.
   5. Replace "full exception stacktrace here" with the full exception stacktrace from logs. This section will be hidden by default.
   6. Remove all unused fields / content to unclutter the reported issue. Remove this comment too.
   
   -->
   BinaryProtoLookupServiceTest.maxLookupRedirectsTest1 is flaky. It fails sporadically.
   
   [example failure](https://github.com/apache/pulsar/runs/6592130187?check_suite_focus=true)
   
   ```
     java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.pulsar.common.protocol.Commands
     	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
     	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
     	at org.apache.pulsar.client.impl.BinaryProtoLookupServiceTest.maxLookupRedirectsTest1(BinaryProtoLookupServiceTest.java:83)
     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   ```
   
   <details>
   <summary>Full exception stacktrace</summary>
   <code><pre>
     Error:  maxLookupRedirectsTest1(org.apache.pulsar.client.impl.BinaryProtoLookupServiceTest)  Time elapsed: 0.012 s  <<< FAILURE!
     java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.pulsar.common.protocol.Commands
     	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
     	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
     	at org.apache.pulsar.client.impl.BinaryProtoLookupServiceTest.maxLookupRedirectsTest1(BinaryProtoLookupServiceTest.java:83)
     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
     	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:70)
     	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:1136)
     	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
     	at java.base/java.lang.Thread.run(Thread.java:833)
     Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.pulsar.common.protocol.Commands
     	at org.apache.pulsar.client.impl.BinaryProtoLookupService.lambda$findBroker$2(BinaryProtoLookupService.java:117)
     	at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:757)
     	at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)
     	at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2182)
     	at org.apache.pulsar.client.impl.BinaryProtoLookupService.findBroker(BinaryProtoLookupService.java:115)
     	at org.apache.pulsar.client.impl.BinaryProtoLookupService.getBroker(BinaryProtoLookupService.java:94)
     	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
     	at org.mockito.internal.util.reflection.InstrumentationMemberAccessor$Dispatcher$ByteBuddy$KVHmxdlb.invokeWithArguments(Unknown Source)
     	at org.mockito.internal.util.reflection.InstrumentationMemberAccessor.invoke(InstrumentationMemberAccessor.java:239)
     	at org.mockito.internal.util.reflection.ModuleMemberAccessor.invoke(ModuleMemberAccessor.java:55)
     	at org.mockito.internal.creation.bytebuddy.MockMethodAdvice.tryInvoke(MockMethodAdvice.java:333)
     	at org.mockito.internal.creation.bytebuddy.MockMethodAdvice.access$500(MockMethodAdvice.java:60)
     	at org.mockito.internal.creation.bytebuddy.MockMethodAdvice$RealMethodCall.invoke(MockMethodAdvice.java:253)
     	at org.mockito.internal.invocation.InterceptedInvocation.callRealMethod(InterceptedInvocation.java:142)
     	at org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:45)
     	at org.mockito.Answers.answer(Answers.java:99)
     	at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:110)
     	at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29)
     	at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:34)
     	at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:82)
     	at org.mockito.internal.creation.bytebuddy.MockMethodAdvice.handle(MockMethodAdvice.java:151)
     	at org.apache.pulsar.client.impl.BinaryProtoLookupService.getBroker(BinaryProtoLookupService.java:94)
     	... 13 more
   </pre></code>
   </details>
   


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


[GitHub] [pulsar] lhotari commented on issue #15793: Flaky-test: BinaryProtoLookupServiceTest.maxLookupRedirectsTest1

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #15793:
URL: https://github.com/apache/pulsar/issues/15793#issuecomment-1141635354

   A similar NoClassDefFoundError happened in another flaky test which is reported as #15850 . It might be possible that this is a JDK bug https://bugs.openjdk.java.net/browse/JDK-8257534 .
   
   "It may be that the initialization failed due to OOME but is being reported as a NoClassDefFoundError. " ([comment link](https://bugs.openjdk.java.net/browse/JDK-8257534?focusedCommentId=14424036&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14424036)) 
   
   This happens more frequently with ZGC, as observed in https://github.com/apache/pulsar/pull/15762#issuecomment-1136786473


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


[GitHub] [pulsar] lhotari commented on issue #15793: Flaky-test: BinaryProtoLookupServiceTest.maxLookupRedirectsTest1

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #15793:
URL: https://github.com/apache/pulsar/issues/15793#issuecomment-1145291215

   There was a bad test that caused the problems. #15911 fixes the issue.


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


[GitHub] [pulsar] Shoothzj closed issue #15793: Flaky-test: BinaryProtoLookupServiceTest.maxLookupRedirectsTest1

Posted by GitBox <gi...@apache.org>.
Shoothzj closed issue #15793: Flaky-test: BinaryProtoLookupServiceTest.maxLookupRedirectsTest1
URL: https://github.com/apache/pulsar/issues/15793


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