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

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

Commit d429c0c3fbd5597e5ee9232460128dca53d127a7 in geode's branch 
refs/heads/develop from pivotal-eshu
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=d429c0c ]

GEODE-5702: Rethrows a specific TransactionExeption instead wrapped to a new 
TransactionException. (#2430)



> AbstractPeerTXRegionStub does not need to wrap a specific TransactionException
> ------------------------------------------------------------------------------
>
>                 Key: GEODE-5702
>                 URL: https://issues.apache.org/jira/browse/GEODE-5702
>             Project: Geode
>          Issue Type: Bug
>          Components: transactions
>            Reporter: Eric Shu
>            Assignee: Eric Shu
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When handling fetchKeys, we should just send a specific TransactionException 
> instead of wrap it to a general TransactionException.
> {noformat}
> org.apache.geode.cache.TransactionException: 
> org.apache.geode.cache.TransactionDataNodeHasDepartedException: Node departed 
> while fetching keys, caused by 
> org.apache.geode.cache.TransactionDataNodeHasDepartedException: Node departed 
> while fetching keys
>       at 
> org.apache.geode.internal.cache.tx.AbstractPeerTXRegionStub.getRegionKeysForIteration(AbstractPeerTXRegionStub.java:53)
>       at 
> org.apache.geode.internal.cache.TXStateStub.getRegionKeysForIteration(TXStateStub.java:678)
>       at 
> org.apache.geode.internal.cache.TXStateStub.getRegionKeysForIteration(TXStateStub.java:45)
>       at 
> org.apache.geode.internal.cache.TXStateProxyImpl.getRegionKeysForIteration(TXStateProxyImpl.java:770)
>       at 
> org.apache.geode.internal.cache.EntriesSet$EntriesIterator.createIterator(EntriesSet.java:213)
>       at 
> org.apache.geode.internal.cache.EntriesSet$EntriesIterator.<init>(EntriesSet.java:117)
>       at 
> org.apache.geode.internal.cache.EntriesSet.iterator(EntriesSet.java:83)
>       at 
> org.apache.geode.internal.cache.tier.sockets.command.KeySet.fillAndSendKeySetResponseChunks(KeySet.java:188)
>       at 
> org.apache.geode.internal.cache.tier.sockets.command.KeySet.cmdExecute(KeySet.java:141)
>       at 
> org.apache.geode.internal.cache.tier.sockets.BaseCommand.execute(BaseCommand.java:158)
>       at 
> org.apache.geode.internal.cache.tier.sockets.ServerConnection.doNormalMsg(ServerConnection.java:869)
>       at 
> org.apache.geode.internal.cache.tier.sockets.OriginalServerConnection.doOneMessage(OriginalServerConnection.java:77)
>       at 
> org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1248)
>       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$4$1.run(AcceptorImpl.java:644)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.geode.cache.TransactionDataNodeHasDepartedException: 
> Node departed while fetching keys
>       at 
> org.apache.geode.internal.cache.tx.RemoteFetchKeysMessage$FetchKeysResponse.waitForKeys(RemoteFetchKeysMessage.java:430)
>       at 
> org.apache.geode.internal.cache.tx.AbstractPeerTXRegionStub.getRegionKeysForIteration(AbstractPeerTXRegionStub.java:44)
>       ... 16 more
> {noformat}



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

Reply via email to