Skip to content

Flaky-test: PersistentStreamingDispatcherBlockConsumerTest.testBrokerSubscriptionRecovery #17011

Closed

Description

@shibd

Search before asking

  • I searched in the issues and found nothing similar.

Example failure

https://github.com/apache/pulsar/runs/7739485769?check_suite_focus=true

Exception stacktrace

  Error:  Tests run: 13, Failures: 1, Errors: 0, Skipped: 9, Time elapsed: 38.276 s <<< FAILURE! - in org.apache.pulsar.broker.service.persistent.PersistentStreamingDispatcherBlockConsumerTest
  Error:  testBrokerSubscriptionRecovery(org.apache.pulsar.broker.service.persistent.PersistentStreamingDispatcherBlockConsumerTest)  Time elapsed: 1.227 s  <<< FAILURE!
  java.lang.AssertionError: expected object to not be null
  	at org.testng.Assert.fail(Assert.java:99)
  	at org.testng.Assert.assertNotNull(Assert.java:942)
  	at org.testng.Assert.assertNotNull(Assert.java:926)
  	at org.apache.pulsar.client.api.DispatcherBlockConsumerTest.testBrokerSubscriptionRecovery(DispatcherBlockConsumerTest.java:622)
  	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: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:1136)
  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  	at java.base/java.lang.Thread.run(Thread.java:833)

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. self-assigned this
    on Aug 10, 2022
  2. mattisonchao commented on Aug 10, 2022

    @mattisonchao
    Member

    I think this problem is caused by #16968 and fixed by #17018.
    I closed this issue until we got this exception again.

  3. codelipenghui commented on Aug 10, 2022

    @codelipenghui
    Contributor
  4. mattisonchao commented on Aug 22, 2022

    @mattisonchao
    Member

    This problem was fixed by #17143

  5. RobertIndie commented on Sep 2, 2022

    @RobertIndie
    Member

    Another failure: https://github.com/apache/pulsar/runs/8159197059?check_suite_focus=true#step:10:824

    Error:  testBrokerSubscriptionRecovery(org.apache.pulsar.broker.service.persistent.PersistentStreamingDispatcherBlockConsumerTest)  Time elapsed: 5.058 s  <<< FAILURE!
      java.lang.AssertionError: expected [true] but found [false]
      	at org.testng.Assert.fail(Assert.java:99)
      	at org.testng.Assert.failNotEquals(Assert.java:1037)
      	at org.testng.Assert.assertTrue(Assert.java:45)
      	at org.testng.Assert.assertTrue(Assert.java:55)
      	at org.apache.pulsar.client.api.DispatcherBlockConsumerTest.lambda$testBrokerSubscriptionRecovery$15(DispatcherBlockConsumerTest.java:658)
      	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
      	at org.apache.pulsar.client.api.DispatcherBlockConsumerTest.testBrokerSubscriptionRecovery(DispatcherBlockConsumerTest.java:658)
      	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: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:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at java.base/java.lang.Thread.run(Thread.java:[833](https://github.com/apache/pulsar/runs/8159197059?check_suite_focus=true#step:10:834))
    
  6. poorbarcode commented on Sep 2, 2022

    @poorbarcode
    Contributor

    Cause of the problem:

  7. shink commented on Sep 17, 2022

    @shink
    Member

    There are some failed checks in the PR #16003 because of this flaky test, what can I do about this issue?

  8. poorbarcode commented on Sep 17, 2022

    @poorbarcode
    Contributor

    There are some failed checks in the PR #16003 because of this flaky test, what can I do about this issue?

    The first thing you should do is determine if any of the failed tests were caused by the code you submitted. If not, you can comment /pulsarbot rerun-failure-checks to retry the test

  9. shink commented on Sep 17, 2022

    @shink
    Member

    @poorbarcode Thank you for your suggestions! But the problem is, all failed checks are about this flaky test, it seems that they are not caused by changed code, but they fail again when I re-run them.

  10. poorbarcode commented on Sep 17, 2022

    @poorbarcode
    Contributor

    Hi @shink

    Thank you for your suggestions! But the problem is, all failed checks are about this flaky test, it seems that they are not caused by changed code, but they fail again when I re-run them.

    we can discuss it at PR #16003

  11. removed their assignment
    on Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions