the-other-tim-brown commented on code in PR #13451:
URL: https://github.com/apache/hudi/pull/13451#discussion_r2164160390
##########
hudi-client/hudi-client-common/src/test/java/org/apache/hudi/client/WriteClientTestUtils.java:
##########
@@ -40,4 +43,22 @@ public static void
startCommitWithTime(BaseHoodieWriteClient<?, ?, ?, ?> writeCl
public static Option<String> scheduleTableService(BaseHoodieWriteClient<?,
?, ?, ?> writeClient, String instantTime, Option<Map<String, String>>
extraMetadata, TableServiceType tableServiceType) {
return writeClient.scheduleTableService(Option.of(instantTime),
extraMetadata, tableServiceType);
}
+
+ public static String createNewInstantTime() {
+ return HoodieInstantTimeGenerator.createNewInstantTime(false,
TestTimeGenerator.INSTANCE, 0);
+ }
+
+ private static class TestTimeGenerator implements TimeGenerator {
+ private static final TimeGenerator INSTANCE = new TestTimeGenerator();
+
+ @Override
+ public long generateTime(boolean skipLocking) {
+ return System.currentTimeMillis();
Review Comment:
This is already handled by `HoodieInstantTimeGenerator`
--
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]