ibessonov commented on code in PR #4530:
URL: https://github.com/apache/ignite-3/pull/4530#discussion_r1800620755


##########
modules/metastorage/src/testFixtures/java/org/apache/ignite/internal/metastorage/server/AbstractKeyValueStorageTest.java:
##########
@@ -42,6 +43,11 @@ public void tearDown() throws Exception {
         storage.close();
     }
 
+    /** Creates a Meta Storage context based on a timestamp. Index and term 
will be {@code 0}. */
+    protected static KeyValueUpdateContext msContext(HybridTimestamp 
timestamp) {
+        return new KeyValueUpdateContext(0, 0, timestamp);

Review Comment:
   > We already have such test-only method with awkward placement and using it 
half the time
   
   That's a bad justification. We have a lot of bad code, should I write bad 
code too? :)



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