You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/12/06 18:26:00 UTC

[jira] [Commented] (GEODE-9867) NPE When a connection is terminated after the client already sent in the operation

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

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

Commit 99bbf9921941676136019d29ae97098382d3cec1 in geode's branch refs/heads/develop from Jinmei Liao
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=99bbf99 ]

GEODE-9867: do not process the message if the connection is terminated (#7158)



> NPE When a connection is terminated after the client already sent in the operation
> ----------------------------------------------------------------------------------
>
>                 Key: GEODE-9867
>                 URL: https://issues.apache.org/jira/browse/GEODE-9867
>             Project: Geode
>          Issue Type: Bug
>          Components: client/server
>            Reporter: Jinmei Liao
>            Assignee: Jinmei Liao
>            Priority: Major
>              Labels: pull-request-available
>
> The sequence of action is:
>  # the client sent in the operation to the server
>  # the message dispatcher to the client encountered some error and unregister this client and terminates the connection
>  # the other thread continues to use the connection to process the command and we get the NPE:
>  
> java.lang.NullPointerException
>     at org.apache.geode.internal.cache.tier.sockets.ServerConnection.bindSubject(ServerConnection.java:907)
>     at org.apache.geode.internal.cache.tier.sockets.ServerConnection.doNormalMessage(ServerConnection.java:867)
>     at org.apache.geode.internal.cache.tier.sockets.ServerConnection.doOneMessage(ServerConnection.java:1055)
>     at org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1326)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>     at org.apache.geode.internal.cache.tier.sockets.AcceptorImpl.lambda$initializeServerConnectionThreadPool$3(AcceptorImpl.java:690)
>     at org.apache.geode.logging.internal.executors.LoggingThreadFactory.lambda$newThread$0(LoggingThreadFactory.java:120)
>     at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)