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 2021/04/27 07:18:43 UTC

[GitHub] [pulsar] lhotari opened a new issue #10398: Flaky-test: TransactionStablePositionTest.abortTxnTest is flaky

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


   TransactionStablePositionTest is flaky. The abortTxnTest test method fails sporadically.
   
   [example failure](https://github.com/apache/pulsar/pull/10340/checks?check_run_id=2445270415#step:9:522)
   
   ```
   Error:  Tests run: 7, Failures: 1, Errors: 0, Skipped: 6, Time elapsed: 22.885 s <<< FAILURE! - in org.apache.pulsar.broker.transaction.buffer.TransactionStablePositionTest
   Error:  abortTxnTest(org.apache.pulsar.broker.transaction.buffer.TransactionStablePositionTest)  Time elapsed: 0.039 s  <<< FAILURE!
   java.util.concurrent.ExecutionException: org.apache.pulsar.client.api.transaction.TransactionCoordinatorClientException$CoordinatorNotFoundException: Transaction coordinator with id 1 not found!
   	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
   	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)
   	at org.apache.pulsar.broker.transaction.buffer.TransactionStablePositionTest.abortTxnTest(TransactionStablePositionTest.java:144)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	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.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: org.apache.pulsar.client.api.transaction.TransactionCoordinatorClientException$CoordinatorNotFoundException: Transaction coordinator with id 1 not found!
   	at org.apache.pulsar.client.impl.TransactionMetaStoreHandler.getExceptionByServerError(TransactionMetaStoreHandler.java:368)
   	at org.apache.pulsar.client.impl.TransactionMetaStoreHandler.handleNewTxnResponse(TransactionMetaStoreHandler.java:161)
   	at org.apache.pulsar.client.impl.ClientCnx.handleNewTxnResponse(ClientCnx.java:923)
   	at org.apache.pulsar.common.protocol.PulsarDecoder.channelRead(PulsarDecoder.java:371)
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
   	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)
   	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296)
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
   	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
   	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
   	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795)
   	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480)
   	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)
   	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
   	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   	... 1 more
   ```
   
   Might be related to #9917 and #9918 since they contain a CoordinatorNotFoundException .


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #10398: Flaky-test: TransactionStablePositionTest.abortTxnTest is flaky

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


   The issue had no activity for 30 days, mark with Stale label.


-- 
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 #10398: Flaky-test: TransactionStablePositionTest.abortTxnTest is flaky

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


   Another flaky test with CoordinatorNotFoundException problem [here](https://github.com/apache/pulsar/pull/10371/checks?check_run_id=2455146689#step:9:529):
   ```
   Error:  Tests run: 7, Failures: 2, Errors: 0, Skipped: 4, Time elapsed: 10.318 s <<< FAILURE! - in org.apache.pulsar.broker.transaction.coordinator.TransactionCoordinatorClientTest
   Error:  testCommitAndAbort(org.apache.pulsar.broker.transaction.coordinator.TransactionCoordinatorClientTest)  Time elapsed: 0.01 s  <<< FAILURE!
   org.apache.pulsar.client.api.transaction.TransactionCoordinatorClientException$CoordinatorNotFoundException: Transaction coordinator with id 2 not found!
   	at org.apache.pulsar.client.api.transaction.TransactionCoordinatorClientException.unwrap(TransactionCoordinatorClientException.java:126)
   	at org.apache.pulsar.client.impl.transaction.TransactionCoordinatorClientImpl.newTransaction(TransactionCoordinatorClientImpl.java:155)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionCoordinatorClientTest.testCommitAndAbort(TransactionCoordinatorClientTest.java:84)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	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.util.concurrent.FutureTask.run(FutureTask.java:266)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   ```
   
   @congbobo184 @gaoran10 please fix the source of flakiness in tests where the problem is about `TransactionCoordinatorClientException$CoordinatorNotFoundException` . Would you be able to take a look? It's this issue #10398 and #9917 & #9918 which are some of the examples.
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org