Fix PageMemoryTracker related flaky tests - Fixes
@@ -266,6 +266,8 @@ public class PageMemoryTracker implements IgnitePlugin {
memoryRegion = memoryProvider.nextRegion();
+ GridUnsafe.setMemory(memoryRegion.address(), memoryRegion.size(), (byte)0);
+
maxPages = (int)(maxMemorySize / pageSize);
pageSlots = new DirectMemoryPageSlot[maxPages];
@@ -694,7 +696,7 @@ public class PageMemoryTracker implements IgnitePlugin {
}
if (!locBuf.equals(rmtBuf)) {
- log.error("Page buffers are not equals: " + fullPageId);
+ log.error("Page buffers are not equals [fullPageId=" + fullPageId + ", pageIo=" + pageIo + ']');
dumpDiff(locBuf, rmtBuf);
