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/31 03:23:15 UTC

[GitHub] [pulsar] lhotari opened a new issue, #15850: Flaky-test: MultiTopicsConsumerImplTest.testParallelSubscribeAsync

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

   <!--- 
   
   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.
   
   -->
   MultiTopicsConsumerImplTest.testParallelSubscribeAsync is flaky. It fails sporadically.
   
   [example failure](https://github.com/lhotari/pulsar/runs/6660340044?check_suite_focus=true#step:10:8126)
   
   ```
     Error:  Tests run: 9, Failures: 2, Errors: 0, Skipped: 3, Time elapsed: 18.637 s <<< FAILURE! - in org.apache.pulsar.client.impl.MultiTopicsConsumerImplTest
     Error:  testParallelSubscribeAsync(org.apache.pulsar.client.impl.MultiTopicsConsumerImplTest)  Time elapsed: 5.006 s  <<< FAILURE!
     org.testng.internal.thread.ThreadTimeoutException: Method org.apache.pulsar.client.impl.MultiTopicsConsumerImplTest.testParallelSubscribeAsync() didn't finish within the time-out 5000
   ```
   
   More logs in [org.apache.pulsar.client.impl.MultiTopicsConsumerImplTest-output.txt](https://gist.githubusercontent.com/lhotari/17f690fd839ce3717a832fb6f972e374/raw/15e4c2b8bce348fe41437e5d55693a5cafc67530/org.apache.pulsar.client.impl.MultiTopicsConsumerImplTest-output.txt) from surefire reports.
   
   Several problems:
   ```
   Error connecting to broker: java.lang.NullPointerException: Cannot invoke "org.apache.pulsar.client.api.Schema.getSchemaInfo()" because "this.schema" is null {}
   ```
   
   An odd NoClassDefFoundError in logs (similar to observation https://github.com/apache/pulsar/pull/15762#issuecomment-1136786473):
   ```
   2022-05-30T19:50:50,905+0000 WARN  [client-test-stats-6-1] i.n.c.ChannelInitializer@97 - Failed to initialize a channel. Closing: [id: 0x0065faaf] {}
   java.lang.NoClassDefFoundError: Could not initialize class org.apache.pulsar.common.protocol.Commands
   	at org.apache.pulsar.client.impl.ClientCnx.<init>(ClientCnx.java:202) ~[classes/:?]
   	at org.apache.pulsar.client.impl.ConnectionPool.lambda$new$0(ConnectionPool.java:70) ~[classes/:?]
   	at org.apache.pulsar.client.impl.PulsarChannelInitializer.initChannel(PulsarChannelInitializer.java:147) ~[classes/:?]
   	at org.apache.pulsar.client.impl.PulsarChannelInitializer.initChannel(PulsarChannelInitializer.java:46) ~[classes/:?]
   	at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:514) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:429) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:486) [netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) [netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) [netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) [netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:391) [netty-transport-classes-epoll-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) [netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at java.lang.Thread.run(Thread.java:833) [?:?]
   ```
   
   testGetStats attempts to connect to a broker:
   ```
   2022-05-30T19:50:50,920+0000 WARN  [client-test-stats-6-1] o.a.p.c.i.ConnectionPool@233 - Failed to open connection to localhost/<unresolved>:6650 : io.netty.channel.StacklessClosedChannelException {}
   2022-05-30T19:50:50,931+0000 INFO  [TestNG-method=testGetStats-1] o.a.p.c.i.PulsarClientImpl@722 - Client closing. URL: pulsar://localhost:6650 {}
   ```
   
   
   


-- 
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 closed issue #15850: Flaky-test: MultiTopicsConsumerImplTest.testParallelSubscribeAsync

Posted by GitBox <gi...@apache.org>.
lhotari closed issue #15850: Flaky-test: MultiTopicsConsumerImplTest.testParallelSubscribeAsync
URL: https://github.com/apache/pulsar/issues/15850


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