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)

Reply via email to