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

Flaky-test: BookieZKExpireTest.testBookieServerZKExpireBehaviour #3206

Closed
hangc0276 opened this issue Apr 13, 2022 · 2 comments
Closed

Flaky-test: BookieZKExpireTest.testBookieServerZKExpireBehaviour #3206

hangc0276 opened this issue Apr 13, 2022 · 2 comments

Comments

@hangc0276
Copy link
Contributor

When running CI, the test occasionally with the following exception

Error:  org.apache.bookkeeper.test.BookieZKExpireTest.testBookieServerZKExpireBehaviour  Time elapsed: 16.286 s  <<< FAILURE!
java.lang.AssertionError: Bookie should not shutdown on losing zk session
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.apache.bookkeeper.test.BookieZKExpireTest.testBookieServerZKExpireBehaviour(BookieZKExpireTest.java:103)
	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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.lang.Thread.run(Thread.java:829)
@dlg99
Copy link
Contributor

dlg99 commented Jul 20, 2022

The problem does not repro locally (macbook, ran test in a loop 100 times - all successes)

Reproed by running in a docker limited to 2 cpus, log:
org.apache.bookkeeper.test.BookieZKExpireTest-output.txt

@dlg99
Copy link
Contributor

dlg99 commented Jul 21, 2022

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants