zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abraham Fine <af...@apache.org>
Subject Re: NPE on ClientCnxnSocketNetty on 3.5.3-BETA
Date Fri, 08 Sep 2017 21:32:14 GMT
Your instructions to reproduce the issue sound about right. There is a
variable that is initialized during session creation and read during
closing, I think we are running into a race here. 

Feel free to create a JIRA for this issue or tell me if you would like
me to do it. Any additional insights that you could put in the JIRA
ticket would be appreciated. I don't know of any reported issue that
would be related, but I could be missing something. 

Thanks,
Abe


On Fri, Sep 8, 2017, at 00:12, Enrico Olivelli - Diennea wrote:
> Il giorno gio, 07/09/2017 alle 15.36 -0700, Abraham Fine ha scritto:
> 
> My fault, I should have read the subject. :)
> 
> I have an idea of what is causing this issue. Just out of curiosity,
> besides the ugly stack trace, is this issue associated with any
> unexpected behavior from zookeeper?
> 
> 
> Thank you Abraham for your quick response,
> 
> Honestly I do not know, it came out on unit tests only once and I do not
> have logs on the server side, sorry.
> The test is about dealing with an expired session, something like:
> - start a session
> - create a new ZooKeeper with the same sessionid and password and close
> it -> the session expires
> - close the session -> boom!
> 
> I saw it only once, and I have upgraded my env to zookeeper 3.5.3-BETA 2
> months ago
> It is a unit test so ZK server is running in the same JVM
> 
> Anyway IMHO this is a bad error and the client should not ever crash in
> spite of weird server side behavior
> Do you think it is related to another reported issue ?
> 
> I can help on fixing it
> 
> Cheers
> Enrico
> 
> 
> 
> 
> Thanks,
> Abe
> 
> On Thu, Sep 7, 2017, at 12:47, Enrico Olivelli wrote:
> 
> 
> 3.5.3 Beta , my bad I have only written it in the subject
> Thanks
> Enrico
> 
> On gio 7 set 2017, 21:18 Abraham Fine
> <afine@apache.org<mailto:afine@apache.org>> wrote:
> 
> 
> 
> Would you mind sharing which version of ZooKeeper you are using?
> 
> Thanks,
> Abe
> 
> On Thu, Sep 7, 2017, at 06:59, Enrico Olivelli wrote:
> 
> 
> Hi all,
> I have hit this error during internal tests of my product. The problem is
> not always reproducible
> 
> java.lang.NullPointerException
>     at
> 
> 
> 
> org.apache.zookeeper.ClientCnxnSocketNetty.onClosing(ClientCnxnSocketNetty.java:206)
> 
> 
>     at
> org.apache.zookeeper.ClientCnxn$SendThread.close(ClientCnxn.java:1395)
>     at org.apache.zookeeper.ClientCnxn.disconnect(ClientCnxn.java:1440)
>     at org.apache.zookeeper.ClientCnxn.close(ClientCnxn.java:1467)
>     at org.apache.zookeeper.ZooKeeper.close(ZooKeeper.java:1319)
> 
> I did not find any issue in JIRA related to this stacktrace
> 
> Does anyone ever hit this problem ?
> Otherwise I will create a JIRA and start looking at the cause
> 
> Thanks
> Enrico Olivelli
> 
> 
> 
> 
> 
> --
> 
> 
> -- Enrico Olivelli
> 
> 
> --
> 
> Enrico Olivelli Software Development Manager @Diennea Tel.: (+39) 0546
> 066100 - Int. 925 Viale G.Marconi 30/14 - 48018 Faenza (RA) MagNews -
> E-mail Marketing Solutions http://www.magnews.it Diennea - Digital
> Marketing Solutions http://www.diennea.com
> 
> ________________________________
> 
> Iscriviti alla nostra newsletter per rimanere aggiornato su digital ed
> email marketing! http://www.magnews.it/newsletter/
> 
> The information in this email is confidential and may be legally
> privileged. If you are not the intended recipient please notify the
> sender immediately and destroy this email. Any unauthorized, direct or
> indirect, disclosure, copying, storage, distribution or other use is
> strictly forbidden.

Mime
View raw message