You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Pengfei Yan (Jira)" <ji...@apache.org> on 2020/09/11 09:21:00 UTC

[jira] [Updated] (ZOOKEEPER-3916) check whether zookeeperServer is null or not before being used

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-3916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pengfei Yan updated ZOOKEEPER-3916:
-----------------------------------
    Attachment: NIOServerCnxnFactory.java

> check whether  zookeeperServer is null or not before being used 
> ----------------------------------------------------------------
>
>                 Key: ZOOKEEPER-3916
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3916
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>            Reporter: Pengfei Yan
>            Priority: Major
>         Attachments: NIOServerCnxnFactory.java, NIOServerCnxnFactory.java
>
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> If the zookeeperServer object is null, then the client can't make connections with servers because the Leader Voting stage is working. After checking the Object we can avoid null pointer exception and give the IOException and close connections.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)