[ https://issues.apache.org/jira/browse/GEODE-5271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16497142#comment-16497142 ]
Eric Shu commented on GEODE-5271: --------------------------------- This should be prevented by lockBucketRegions call in TXState.commit(). Will find out more on the root cause of this error. {noformat} Exception org.apache.geode.cache.CommitConflictException: Conflict caused by cache exception, caused by org.apache.geode.cache.RegionDestroyedException: BucketRegion[path='/__PR/_B__partitionedRegion_28;serial=135;primary=false]. org.apache.geode.cache.CommitConflictException: Conflict caused by cache exception, caused by org.apache.geode.cache.RegionDestroyedException: BucketRegion[path='/__PR/_B__partitionedRegion_28;serial=135;primary=false] at org.apache.geode.internal.cache.TXEntryState.checkForConflict(TXEntryState.java:1464) at org.apache.geode.internal.cache.TXRegionState.checkForConflicts(TXRegionState.java:278) at org.apache.geode.internal.cache.TXState.checkForConflicts(TXState.java:652) at org.apache.geode.internal.cache.TXState.reserveAndCheck(TXState.java:336) at org.apache.geode.internal.cache.TXState.commit(TXState.java:400) at org.apache.geode.internal.cache.TXStateProxyImpl.commit(TXStateProxyImpl.java:211) at org.apache.geode.internal.cache.TXManagerImpl.commit(TXManagerImpl.java:394) at org.apache.geode.internal.cache.TXRemoteCommitMessage.operateOnTx(TXRemoteCommitMessage.java:99) at org.apache.geode.internal.cache.TXMessage.process(TXMessage.java:88) at org.apache.geode.distributed.internal.DistributionMessage.scheduleAction(DistributionMessage.java:374) at org.apache.geode.distributed.internal.DistributionMessage$1.run(DistributionMessage.java:440) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.geode.distributed.internal.DistributionManager.runUntilShutdown(DistributionManager.java:665) at org.apache.geode.distributed.internal.DistributionManager$6$1.run(DistributionManager.java:992) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.geode.cache.RegionDestroyedException: BucketRegion[path='/__PR/_B__partitionedRegion_28;serial=135;primary=false] at org.apache.geode.internal.cache.LocalRegion.checkRegionDestroyed(LocalRegion.java:7324) at org.apache.geode.internal.cache.LocalRegion.checkReadiness(LocalRegion.java:2712) at org.apache.geode.internal.cache.BucketRegion.checkReadiness(BucketRegion.java:1393) at org.apache.geode.internal.cache.TXEntryState.checkForConflict(TXEntryState.java:1420) ... 15 more {noformat} > Transaction should throw TransactionDataRebalancedException if primary bucket > is moved to another node during commit > -------------------------------------------------------------------------------------------------------------------- > > Key: GEODE-5271 > URL: https://issues.apache.org/jira/browse/GEODE-5271 > Project: Geode > Issue Type: Bug > Components: transactions > Affects Versions: 1.6.0 > Reporter: Eric Shu > Assignee: Eric Shu > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Currently, during commit geode throws CommitConflictException when a bucket > is moved to another node before the commit. It should throw > TransactionDataRebalancedException instead. -- This message was sent by Atlassian JIRA (v7.6.3#76005)