yihua commented on code in PR #13007:
URL: https://github.com/apache/hudi/pull/13007#discussion_r2017696228


##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/rollback/TestCopyOnWriteRollbackActionExecutor.java:
##########
@@ -106,7 +107,7 @@ public void 
testCopyOnWriteRollbackActionExecutorForFileListingAsGenerateFile()
         .withBaseFilesInPartition(p1, "id21").getLeft()
         .withBaseFilesInPartition(p2, "id22").getLeft();
 
-    HoodieWriteConfig writeConfig = 
getConfigBuilder().withRollbackUsingMarkers(false).build();
+    HoodieWriteConfig writeConfig = 
getConfigBuilder().withRollbackUsingMarkers(false).withEmbeddedTimelineServerEnabled(false).build();

Review Comment:
   Should the test be irrelevant to timeline server?



##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/rollback/TestCopyOnWriteRollbackActionExecutor.java:
##########
@@ -268,8 +269,8 @@ public void testRollbackScale() throws Exception {
         .addCommit("003")
         .withBaseFilesInPartition(p3, fileLengths);
 
-    HoodieTable table = this.getHoodieTable(metaClient, 
getConfigBuilder().withRollbackUsingMarkers(false).build());
-    HoodieInstant needRollBackInstant = 
INSTANT_GENERATOR.createNewInstant(HoodieInstant.State.COMPLETED, 
HoodieTimeline.COMMIT_ACTION, "003");
+    HoodieTable table = this.getHoodieTable(metaClient, 
getConfigBuilder().withRollbackUsingMarkers(false).withEmbeddedTimelineServerEnabled(false).build());
+    HoodieInstant needRollBackInstant = new 
HoodieInstant(HoodieInstant.State.INFLIGHT, HoodieTimeline.COMMIT_ACTION, 
"003", InstantComparatorV1.REQUESTED_TIME_BASED_COMPARATOR);

Review Comment:
   Could we parameterize the test on table version 6 and 8 which should use 
different instant comparator?



##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/rollback/TestCopyOnWriteRollbackActionExecutor.java:
##########
@@ -431,7 +433,7 @@ public void testRollbackForMultiwriter() throws Exception {
   public void testRollbackWhenReplaceCommitIsPresent() throws Exception {
 
     // insert data
-    HoodieWriteConfig writeConfig = 
getConfigBuilder().withAutoCommit(false).build();
+    HoodieWriteConfig writeConfig = 
getConfigBuilder().withAutoCommit(false).withEmbeddedTimelineServerEnabled(false).build();

Review Comment:
   Avoid `.withEmbeddedTimelineServerEnabled(false)`; if test fails because of 
this, then the production code need to be fixed.



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