rpuch commented on code in PR #1464:
URL: https://github.com/apache/ignite-3/pull/1464#discussion_r1056203297


##########
modules/storage-api/src/testFixtures/java/org/apache/ignite/internal/storage/AbstractMvPartitionStorageConcurrencyTest.java:
##########
@@ -162,4 +217,24 @@ private void cleanup() {
             row = pollForVacuum(HybridTimestamp.MAX_VALUE);
         } while (row != null);
     }
+
+    private enum AddAndCommit {
+        ATOMIC {
+            @Override
+            HybridTimestamp perform(AbstractMvPartitionStorageConcurrencyTest 
test, @Nullable BinaryRow binaryRow) {
+                HybridTimestamp ts = test.clock.now();
+
+                test.addWriteCommitted(ROW_ID, binaryRow, ts);
+
+                return ts;
+            }
+        },
+        NON_ATOMIC {
+            @Override
+            HybridTimestamp perform(AbstractMvPartitionStorageConcurrencyTest 
test, @Nullable BinaryRow binaryRow) {
+                return test.addAndCommit(binaryRow);
+            }
+        };
+        abstract HybridTimestamp 
perform(AbstractMvPartitionStorageConcurrencyTest test, @Nullable BinaryRow 
binaryRow);

Review Comment:
   Blank line above?



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