[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787555#comment-13787555
 ] 

Rakesh R commented on BOOKKEEPER-689:
-------------------------------------

[~fpj], I think NPE has no relation with test case failure mentioned in the 
issue. I have seen few NPE in the attached logs and my above comment was 
related to this. Anyway I'll also try to see the test case failure.

By seeing the following logs, the operation performed is:
1) Successfully connected to bookie
2) Tries to addEntry asynchronously.
3) At the sametime, closed the client. During channel closure, 
PerChannelBookieClient sets channel=null and causing NPE for the above addEntry 
2)
{code}
2013-10-03 13:10:31,114 - INFO  - [New I/O client worker 
#11-1:PerChannelBookieClient$1@137] - Successfully connected to bookie: [id: 
0x5a2470ee, /10.85.254.167:61606 => /10.85.254.167:15020]
2013-10-03 13:10:31,121 - WARN  - [New I/O client worker 
#11-2:PerChannelBookieClient@274] - Add entry operation failed
java.lang.NullPointerException
        at 
org.apache.bookkeeper.proto.PerChannelBookieClient.addEntry(PerChannelBookieClient.java:249)
2013-10-03 13:10:31,146 - INFO  - [Thread-15:PerChannelBookieClient@493] - 
Disconnected from bookie channel [id: 0x5a2470ee, /10.85.254.167:61606 :> 
/10.85.254.167:15020]
{code}

> BookKeeperTest failure
> ----------------------
>
>                 Key: BOOKKEEPER-689
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-689
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Flavio Junqueira
>         Attachments: org.apache.bookkeeper.client.BookKeeperTest-output.txt, 
> TEST-org.apache.bookkeeper.client.BookKeeperTest.xml
>
>
> Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 49.385 sec 
> <<< FAILURE!
> testCloseDuringOp[1](org.apache.bookkeeper.client.BookKeeperTest)  Time 
> elapsed: 14.74 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: Close never completed
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.assertTrue(Assert.java:20)
>         at 
> org.apache.bookkeeper.client.BookKeeperTest.testCloseDuringOp(BookKeeperTest.java:217)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         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)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to