Reduced amount of logs for BPlusTreeSelfTest put/remove family tests - Fixes
@@ -26,6 +26,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
+import java.util.Set;
import java.util.TreeMap;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
@@ -2527,16 +2528,21 @@ public class BPlusTreeSelfTest extends GridCommonAbstractTest {
for (Map.Entry<Object,Map<Long,Long>> entry : locks.entrySet()) {
Object thId = entry.getKey();
- b.a(" ## " + thId);
-
Long z = beforeLock.get(thId);
+ Set<Map.Entry<Long,Long>> xx = entry.getValue().entrySet();
+
+ if (z == null && xx.isEmpty())
+ continue;
+
+ b.a(" ## " + thId);
+
if (z != null)
b.a(" --> ").appendHex(z).a(" (").appendHex(effectivePageId(z)).a(')');
b.a('\n');
- for (Map.Entry<Long,Long> x : entry.getValue().entrySet())
+ for (Map.Entry<Long,Long> x : xx)
b.a(" - ").appendHex(x.getValue()).a(" (").appendHex(x.getKey()).a(")\n");
b.a('\n');
