[
https://issues.apache.org/jira/browse/BOOKKEEPER-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133125#comment-14133125
]
Rakesh R commented on BOOKKEEPER-784:
-------------------------------------
After analyzing the below exception, there is one common case to be addressed
is - {{restartBookieSlow()}} can cause the bkclient reconnection. This can
generate other exceptions like {{BookieHandleNotAvailableException}} et. So I
think before going to verify the bkclient#close() behavior, it needs to ensure
that the existing bkclient(s) has reconnected with the restarted slow bookie
server.
[Build-729|https://builds.apache.org/job/bookkeeper-trunk-precommit-build/729/testReport/junit/org.apache.bookkeeper.client/BookKeeperCloseTest/testReadLastConfirmed/]
{code}
2014-09-13 12:45:28,563 - INFO - [New I/O worker
#1225:PerChannelBookieClient@631] - Disconnected from bookie channel [id:
0x50881721, /67.195.81.148:50307 :> /67.195.81.148:15021]
2014-09-13 12:45:28,563 - INFO - [New I/O worker
#1227:PerChannelBookieClient@631] - Disconnected from bookie channel [id:
0xc2daf545, /67.195.81.148:53456 :> /67.195.81.148:15019]
2014-09-13 12:45:28,564 - INFO - [New I/O worker
#1226:PerChannelBookieClient@631] - Disconnected from bookie channel [id:
0x37d0b22c, /67.195.81.148:55687 :> /67.195.81.148:15020]
2014-09-13 12:45:28,564 - ERROR -
[BookKeeperClientWorker-3-0:ReadLastConfirmedOp@127] - While readLastConfirmed
ledger: 3 did not hear success responses from all quorums
{code}
> 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
> Labels: test
>
> *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)