You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2018/02/06 20:08:00 UTC

[jira] [Created] (GEODE-4612) transactional region.size may return zero instead of an exception

Darrel Schneider created GEODE-4612:
---------------------------------------

             Summary: transactional region.size may return zero instead of an exception
                 Key: GEODE-4612
                 URL: https://issues.apache.org/jira/browse/GEODE-4612
             Project: Geode
          Issue Type: Bug
          Components: transactions
            Reporter: Darrel Schneider


When region.size is called during a transaction it may return 0 instead of throwing an exception.

This bug is caused by RemoteSizeMessage.SizeResponse overloading processException to ignore any exception. This causes exception handling in methods like waitForSize to never see an exception and waitForSize ends up just returning zero.

The fix should involve changing SizeResponse to quit overloading processException and handle the exceptions throw instead. SizeResponse should implement org.apache.geode.internal.cache.tx.RemoteOperationMessage.RemoteOperationResponse instead of ReplyProcessor21 and should call waitForRemoteResponse instead of waitForRepliesUninterruptibly.



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