geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-1099) NPE thrown from TXManagerImpl.isDistributed() when distributed system is shutting down
Date Tue, 15 Mar 2016 19:40:33 GMT

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

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

Commit 5503de078aa0d45961dc143569651276948ff587 in incubator-geode's branch refs/heads/develop
from [~swapnil.bawaskar]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=5503de0 ]

GEODE-1099: NPE thrown from TXManagerImpl.isDistributed()

Use the existing reference to InternalDistributedSystem so as to prevent a NPE.
If the member is indeed being disconnected, a CacheClosed exception is thrown
while trying to send the message.


> NPE thrown from TXManagerImpl.isDistributed() when distributed system is shutting down
> --------------------------------------------------------------------------------------
>
>                 Key: GEODE-1099
>                 URL: https://issues.apache.org/jira/browse/GEODE-1099
>             Project: Geode
>          Issue Type: Bug
>          Components: transactions
>            Reporter: Swapnil Bawaskar
>         Attachments: TXManagerImplNPE.diff
>
>
> When the distributed system is shutting down, TXManagerImpl.isDistributed() can throw
the below NPE:
> {noformat}
> java.lang.NullPointerException
> 	at com.gemstone.gemfire.internal.cache.TXManagerImpl.isDistributed(TXManagerImpl.java:1507)
> 	at com.gemstone.gemfire.internal.cache.TXManagerImpJUnitTest.testIsDistributed(TXManagerImpJUnitTest.java:339)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {noformat}
> Since the cache is closing down, a CacheClosedException should be thrown instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message