Skip to content

Commit

Permalink
IGNITE-9200 fix failed local cache tests for entry processor
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Govorukhin <dmitriy.govorukhin@gmail.com>
  • Loading branch information
dgovorukhin committed Aug 13, 2018
1 parent 08a8ec3 commit 713c221
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ else if (ttl == CU.TTL_NOT_CHANGED)

CacheInvokeEntry<Object, Object> entry = new CacheInvokeEntry<>(key, old, version(), keepBinary, this);

IgniteThread.onEntryProcessorEntered(true);
IgniteThread.onEntryProcessorEntered(false);

try {
Object computed = entryProcessor.process(entry, invokeArgs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ private Map<K, EntryProcessorResult> updateWithBatch(

boolean validation = false;

IgniteThread.onEntryProcessorEntered(true);
IgniteThread.onEntryProcessorEntered(false);

try {
Object computed = entryProcessor.process(invokeEntry, invokeArgs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,12 @@ public void testInvokeAllAppliedOnceOnBinaryTypeRegistration() throws Exception
for (Map.Entry<MyKey, Integer> entry : all.entrySet()) {
if (entry.getKey().key.startsWith("remove"))
assertNull(entry.getValue());
else
assertEquals('"' + entry.getKey().key + "' entry has wrong value", 1, (int)entry.getValue());
}
else {
int value = entry.getValue();

assertEquals('"' + entry.getKey().key + "' entry has wrong value, exp=1 actl=" + value, 1, value);
}
}
}

/**
Expand Down

0 comments on commit 713c221

Please sign in to comment.