geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [09/11] incubator-geode git commit: GEODE-983: NPE with transactions on PR with overflow
Date Fri, 26 Feb 2016 18:34:21 GMT
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-953
Commit: 2f695753cf145fca5f927cd0935cf2b82e5cf942
Parents: 3676826
Author: Swapnil Bawaskar <sbawaskar@pivotal.io>
Authored: Fri Feb 26 07:43:16 2016 -0800
Committer: Swapnil Bawaskar <sbawaskar@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) {


Mime
View raw message