You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "nabarun (JIRA)" <ji...@apache.org> on 2017/12/13 17:32:00 UTC

[jira] [Resolved] (GEODE-4072) Race condition in AckReaderThread.shutdown

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

nabarun resolved GEODE-4072.
----------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.0

> Race condition in AckReaderThread.shutdown 
> -------------------------------------------
>
>                 Key: GEODE-4072
>                 URL: https://issues.apache.org/jira/browse/GEODE-4072
>             Project: Geode
>          Issue Type: Bug
>          Components: wan
>            Reporter: nabarun
>            Assignee: nabarun
>             Fix For: 1.4.0
>
>
> *+Issue+*
> {code:title=AckReaderThread.java}
> if (connection != null) {
>         Connection conn = connection;
>         shutDownAckReaderConnection();
>         if (!conn.isDestroyed()) {
>           conn.destroy();
>           sender.getProxy().returnConnection(conn);
>         }
>       }
> {code}
> The global connection variable may be set to null before it is assigned to the local variable, resulting in NPE.
> *Solution*:
> --set the local variable to the connection variable and use that local variable for null checks.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)