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/06/02 17:17:20 UTC

[GitHub] [pulsar] lhotari opened a new issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   <!--- 
   
   Instructions for reporting a flaky test using this issue template:
   
   1. Replace [test class] in title and body with the test class 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 leat the exception message and the line of test code where the stacktrace occured.
   5. Replace "full exception stacktrace here" with the full exception stacktrace from logs. This section will be hidded by default.
   6. Remove all unused fields / content to unclutter the reported issue. Remove this comment too.
   
   -->
   TransactionMetaStoreAssignmentTest is flaky. The testTransactionMetaStoreAssignAndFailover test method fails sporadically.
   
   [example failure](https://github.com/apache/pulsar/pull/10782/checks?check_run_id=2728428471#step:10:1649)
   
   ```
   testTransactionMetaStoreAssignAndFailover(org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest)  Time elapsed: 0.008 s  <<< FAILURE!
   java.lang.AssertionError: expected [16] but found [9]
   	at org.testng.Assert.fail(Assert.java:99)
   	at org.testng.Assert.failNotEquals(Assert.java:1037)
   	at org.testng.Assert.assertEqualsImpl(Assert.java:140)
   	at org.testng.Assert.assertEquals(Assert.java:122)
   	at org.testng.Assert.assertEquals(Assert.java:907)
   	at org.testng.Assert.assertEquals(Assert.java:917)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover(TransactionMetaStoreAssignmentTest.java:40)
   	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)
   ```
   
   [another failure](https://github.com/apache/pulsar/pull/10782/checks?check_run_id=2728428471#step:10:925)
   ```
   testTransactionMetaStoreAssignAndFailover(org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest)  Time elapsed: 0.007 s  <<< FAILURE!
   java.lang.AssertionError: expected [16] but found [12]
   	at org.testng.Assert.fail(Assert.java:99)
   	at org.testng.Assert.failNotEquals(Assert.java:1037)
   	at org.testng.Assert.assertEqualsImpl(Assert.java:140)
   	at org.testng.Assert.assertEquals(Assert.java:122)
   	at org.testng.Assert.assertEquals(Assert.java:907)
   	at org.testng.Assert.assertEquals(Assert.java:917)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover(TransactionMetaStoreAssignmentTest.java:40)
   ```


-- 
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] lhotari commented on issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   @Renkai @congbobo184 Would you be able to check what's causing the flakiness in this test? thank you


-- 
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] mattisonchao commented on issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   I want to fix it. :)


-- 
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 #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   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 #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   Reopening this issue since the issue remaining. [Recent failure:](https://github.com/apache/pulsar/pull/11370/checks?check_run_id=3135317263#step:10:1495)
   ```
   Error:  Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 30.843 s <<< FAILURE! - in org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest
   Error:  testTransactionMetaStoreAssignAndFailover(org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest)  Time elapsed: 10.05 s  <<< FAILURE!
   org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a lambda expression in org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest expected [16] but found [13] within 10 seconds.
   	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
   	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
   	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
   	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
   	at org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:679)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover(TransactionMetaStoreAssignmentTest.java:37)
   	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)
   Caused by: java.lang.AssertionError: expected [16] but found [13]
   	at org.testng.Assert.fail(Assert.java:99)
   	at org.testng.Assert.failNotEquals(Assert.java:1037)
   	at org.testng.Assert.assertEqualsImpl(Assert.java:140)
   	at org.testng.Assert.assertEquals(Assert.java:122)
   	at org.testng.Assert.assertEquals(Assert.java:907)
   	at org.testng.Assert.assertEquals(Assert.java:917)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest.lambda$testTransactionMetaStoreAssignAndFailover$1(TransactionMetaStoreAssignmentTest.java:41)
   	at org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:222)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:209)
   	... 4 more
   
   ```


-- 
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] michaeljmarshall edited a comment on issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

Posted by GitBox <gi...@apache.org>.
michaeljmarshall edited a comment on issue #10786:
URL: https://github.com/apache/pulsar/issues/10786#issuecomment-860159721


   I had this test fail twice out of four attempts (running `mvn clean install`) to build and test git tag `v2.8.0-candidate-3`. I got the following failure results:
   
   `java.lang.AssertionError: expected [16] but found [13]`
   `java.lang.AssertionError: expected [16] but found [11]`


-- 
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] sijie closed issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

Posted by GitBox <gi...@apache.org>.
sijie closed issue #10786:
URL: https://github.com/apache/pulsar/issues/10786


   


-- 
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] lhotari commented on issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   @mattisonchao would you like to take a look since you made the previous attempt to fix this flaky test.


-- 
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] michaeljmarshall commented on issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   I had this test fail twice out of four attempts (running `mvn clean install`) to build and test git tag `v2.8.0-candidate-3`.


-- 
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] lhotari commented on issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   Another [recent failure](https://github.com/apache/pulsar/pull/11697/checks?check_run_id=3363209858#step:10:115):
   ```
   Error:  testTransactionMetaStoreAssignAndFailover(org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest)  Time elapsed: 10.107 s  <<< FAILURE!
   org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a lambda expression in org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest expected [16] but found [12] within 10 seconds.
   	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
   	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
   	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
   	at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
   	at org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:679)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover(TransactionMetaStoreAssignmentTest.java:37)
   	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)
   Caused by: java.lang.AssertionError: expected [16] but found [12]
   	at org.testng.Assert.fail(Assert.java:99)
   	at org.testng.Assert.failNotEquals(Assert.java:1037)
   	at org.testng.Assert.assertEqualsImpl(Assert.java:140)
   	at org.testng.Assert.assertEquals(Assert.java:122)
   	at org.testng.Assert.assertEquals(Assert.java:907)
   	at org.testng.Assert.assertEquals(Assert.java:917)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest.lambda$testTransactionMetaStoreAssignAndFailover$1(TransactionMetaStoreAssignmentTest.java:41)
   	at org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:222)
   	at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:209)
   	... 4 more
   
   ```


-- 
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 #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

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


   [recent failure](https://github.com/apache/pulsar/pull/11046/checks?check_run_id=2894997728#step:10:2128):
   ```
   Error:  Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 11.741 s <<< FAILURE! - in org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest
   Error:  testTransactionMetaStoreAssignAndFailover(org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest)  Time elapsed: 0.017 s  <<< FAILURE!
   java.lang.AssertionError: expected [16] but found [13]
   	at org.testng.Assert.fail(Assert.java:99)
   	at org.testng.Assert.failNotEquals(Assert.java:1037)
   	at org.testng.Assert.assertEqualsImpl(Assert.java:140)
   	at org.testng.Assert.assertEquals(Assert.java:122)
   	at org.testng.Assert.assertEquals(Assert.java:907)
   	at org.testng.Assert.assertEquals(Assert.java:917)
   	at org.apache.pulsar.broker.transaction.coordinator.TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover(TransactionMetaStoreAssignmentTest.java:40)
   	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)
   ```
   
   @Renkai @congbobo184 @gaoran10 Would you be able to check what's causing the flakiness in this test? thank you


-- 
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] lhotari edited a comment on issue #10786: Flaky-test: TransactionMetaStoreAssignmentTest.testTransactionMetaStoreAssignAndFailover

Posted by GitBox <gi...@apache.org>.
lhotari edited a comment on issue #10786:
URL: https://github.com/apache/pulsar/issues/10786#issuecomment-853236674


   @Renkai @congbobo184 @gaoran10 Would you be able to check what's causing the flakiness in this test? thank you


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