[
https://issues.apache.org/jira/browse/GEODE-6164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16712439#comment-16712439
]
ASF subversion and git services commented on GEODE-6164:
--------------------------------------------------------
Commit c88b7f127b24d892f30cd262acb78625c69381eb in geode's branch
refs/heads/feature/GEODE-6164 from zhouxh
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=c88b7f1 ]
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
>
> 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)