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

ASF subversion and git services commented on GEODE-6164:
--------------------------------------------------------

Commit e78b4936a12e1da6c6b0650b8a98af977c27a876 in geode's branch 
refs/heads/feature/GEODE-6164 from zhouxh
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=e78b493 ]

GEODE-6164: CacheClientProxy's closeSocket should be called atomically


> CacheClientProxy's closeSocket() should be called atomically
> ------------------------------------------------------------
>
>                 Key: GEODE-6164
>                 URL: https://issues.apache.org/jira/browse/GEODE-6164
>             Project: Geode
>          Issue Type: Bug
>          Components: client/server
>            Reporter: xiaojian zhou
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> When multiple threads are calling CacheClientProxy.close() together. One 
> thread is working on  this._socketClosed.compareAndSet, another thread may 
> skip this step and set  this._remoteHostAddress to null.  This will end up 
> with NPE in  
> this._cacheClientNotifier.getSocketCloser().asyncClose(this._socket, 
> this._remoteHostAddress, null);
> To fix it, we will force  closeSocket() to be called atomically and only that 
> thread can set "this._remoteHostAddress = null;"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to