[
https://issues.apache.org/jira/browse/BOOKKEEPER-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14136852#comment-14136852
]
Rakesh R commented on BOOKKEEPER-784:
-------------------------------------
bq.This wouldn't change the fact that what we are asserting is
non-deterministic. As I said, if the call gets past the check for whether the
client is closed before the client is actually closed, and this is quite
possible, then it will be a different error code returned.
Its really tricky and would be tough to determine whether the call has reached
PerChannelBookieClient's outstanding entry lists. If it reaches this list,
during closure bkclient will error out
PerChannelBookieClient#errorOutOutstandingEntries().
> BookKeeperCloseTest#testLedgerCheck is failing intermittently
> -------------------------------------------------------------
>
> Key: BOOKKEEPER-784
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-784
> Project: Bookkeeper
> Issue Type: Bug
> Reporter: Rakesh R
> Assignee: Rakesh R
> Labels: test
> Fix For: 4.3.0
>
>
> *Stacktrace*
> {code}
> java.lang.AssertionError: Should have client closed exception expected:<0>
> but was:<-19>
> at org.junit.Assert.fail(Assert.java:91)
> at org.junit.Assert.failNotEquals(Assert.java:645)
> at org.junit.Assert.assertEquals(Assert.java:126)
> at org.junit.Assert.assertEquals(Assert.java:470)
> at
> org.apache.bookkeeper.client.BookKeeperCloseTest.testLedgerCheck(BookKeeperCloseTest.java:501)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at
> org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28)
> {code}
> Link:
> https://builds.apache.org/job/bookkeeper-trunk-precommit-build/722/testReport/junit/org.apache.bookkeeper.client/BookKeeperCloseTest/testLedgerCheck/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)