xtern commented on code in PR #5121:
URL: https://github.com/apache/ignite-3/pull/5121#discussion_r1935230947


##########
modules/catalog/src/test/java/org/apache/ignite/internal/catalog/CatalogManagerSelfTest.java:
##########
@@ -423,6 +424,21 @@ void bulkUpdateIncrementsVersionByOne() {
     @Test
     void bulkUpdateDoesntIncrementVersionInCaseOfError() {
         int versionBefore = manager.latestCatalogVersion();
+        tryApplyAndCheckExpect(
+                        List.of(TestCommand.empty(), TestCommand.ok(), 
TestCommand.empty(), TestCommand.ok(),  TestCommand.empty()),
+                        false, true, false, true, false
+        );
+
+        Catalog updatedCatalog = 
manager.catalog(manager.latestCatalogVersion());
+
+        assertNotNull(updatedCatalog);
+
+        assertEquals(4 + versionBefore, updatedCatalog.objectIdGenState());

Review Comment:
   How does `objectIdGenState` relate to `versionBefore`?
   I think this test should be reworked
   
   1. save `catalog before`
   2. apply updates
   3. check that new `catalog version` is increased by `1`
   4. check that `objectIdGenState` is increased by `2`



-- 
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