Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] Fix the flaky test in the ManagedLedgerTest #11016

Merged
merged 1 commit into from Jun 22, 2021

Commits on Jun 22, 2021

  1. Fix the flaky test in the ManagedLedgerTest

    ```
    Error:  testExpiredLedgerDeletionAfterManagedLedgerRestart(org.apache.bookkeeper.mledger.impl.ManagedLedgerTest)  Time elapsed: 0.024 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.bookkeeper.mledger.impl.ManagedLedgerTest.testExpiredLedgerDeletionAfterManagedLedgerRestart(ManagedLedgerTest.java:2954)
    	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)
    ```
    codelipenghui committed Jun 22, 2021
    Copy the full SHA
    e180164 View commit details
    Browse the repository at this point in the history