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

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

Commit 63d549b4aab36fc9615fca659f33f5a0edfc93fb in geode's branch 
refs/heads/develop from Kirk Lund
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=63d549b ]

GEODE-7586: Fix NPE in RemoteGfManagerAgentTest (#4492)

If the thread invoking disconnect gets enough cpu cycles before the
thread invoking removeMember, then it tries to invoke listApplications
with null for system.

The fix sets the system so the field is non-null which also simulates a
real run more closely as well.

> RemoteGfManagerAgentTest intermittently fails with NullPointerException
> -----------------------------------------------------------------------
>
>                 Key: GEODE-7586
>                 URL: https://issues.apache.org/jira/browse/GEODE-7586
>             Project: Geode
>          Issue Type: Bug
>          Components: management, tests
>            Reporter: Kirk Lund
>            Assignee: Kirk Lund
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {noformat}
> org.apache.geode.internal.admin.remote.RemoteGfManagerAgentTest > 
> removeAgentAndDisconnectDoesNotThrowNPE FAILED
>     java.util.concurrent.ExecutionException: java.lang.NullPointerException
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:191)
>         at 
> org.apache.geode.internal.admin.remote.RemoteGfManagerAgentTest.removeAgentAndDisconnectDoesNotThrowNPE(RemoteGfManagerAgentTest.java:82)
>         Caused by:
>         java.lang.NullPointerException
>             at 
> org.apache.geode.internal.admin.remote.RemoteGfManagerAgent.listApplications(RemoteGfManagerAgent.java:486)
>             at 
> org.apache.geode.internal.admin.remote.RemoteGfManagerAgent.disconnect(RemoteGfManagerAgent.java:401)
>             at 
> org.apache.geode.internal.admin.remote.RemoteGfManagerAgentTest.lambda$removeAgentAndDisconnectDoesNotThrowNPE$6(RemoteGfManagerAgentTest.java:78)
> {noformat}



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

Reply via email to