Phillippko commented on code in PR #7553:
URL: https://github.com/apache/ignite-3/pull/7553#discussion_r2782110554


##########
modules/storage-page-memory/src/test/java/org/apache/ignite/internal/storage/pagememory/StoragePartitionMetaTest.java:
##########
@@ -193,6 +206,21 @@ void testStoragePartitionMetaPageId() {
         assertEquals(0, pageIndex(pageId));
     }
 
+    @Test
+    void testWiHead() {
+        StoragePartitionMeta meta = createMeta();
+
+        assertEquals(PageIdUtils.NULL_LINK, meta.wiHeadLink());
+
+        meta.updateWiHead(null, 1234L);
+
+        assertEquals(1234L, meta.wiHeadLink());
+
+        meta.updateWiHead(UUID.randomUUID(), 5678L);
+
+        assertEquals(5678L, meta.wiHeadLink());
+    }
+

Review Comment:
   this test class doesn't write / read meta, so here this test makes little 
sense (it wouldn't fail even without fix)
   
   Updated StoragePartitionMetaManagerTest fails without the fix, doesn't fail 
with updated V2 meta version (without introducting V3) and after V3 meta 
version introduced



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to