You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2016/03/01 01:09:23 UTC
[14/34] incubator-geode git commit: GEODE-983: NPE with transactions
on PR with overflow
GEODE-983: NPE with transactions on PR with overflow
making sure that the BucketRegion is created before trying to read/write from it.
Fixes tests failing in nightly build.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/2f695753
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/2f695753
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/2f695753
Branch: refs/heads/feature/GEODE-949-2
Commit: 2f695753cf145fca5f927cd0935cf2b82e5cf942
Parents: 3676826
Author: Swapnil Bawaskar <sb...@pivotal.io>
Authored: Fri Feb 26 07:43:16 2016 -0800
Committer: Swapnil Bawaskar <sb...@pivotal.io>
Committed: Fri Feb 26 07:46:37 2016 -0800
----------------------------------------------------------------------
.../src/main/java/com/gemstone/gemfire/internal/cache/TXState.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/2f695753/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXState.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXState.java b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXState.java
index 02237b7..9b38d56 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXState.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXState.java
@@ -1351,7 +1351,7 @@ public class TXState implements TXStateInterface {
boolean rememberRead, Object expectedOldValue, boolean createIfAbsent)
throws EntryNotFoundException
{
- LocalRegion dataReg = localRegion.getDataRegionForRead(keyInfo);
+ LocalRegion dataReg = localRegion.getDataRegionForWrite(keyInfo);
TXRegionState txr = txReadRegion(dataReg);
TXEntryState result = null;
if (txr != null) {