bvaradar commented on a change in pull request #1577:
URL: https://github.com/apache/hudi/pull/1577#discussion_r443157280
##########
File path:
hudi-client/src/main/java/org/apache/hudi/client/HoodieWriteClient.java
##########
@@ -677,4 +714,27 @@ private void rollbackPendingCommits() {
});
return compactionInstantTimeOpt;
}
+
+ /**
+ * Auto Clean service running concurrently.
+ */
+ private static class AutoCleanerService extends AbstractAsyncService {
+
+ private final HoodieWriteClient writeClient;
+ private final String cleanInstant;
+
+ private AutoCleanerService(HoodieWriteClient writeClient, String
cleanInstant) {
+ this.writeClient = writeClient;
+ this.cleanInstant = cleanInstant;
+ }
+
+ @Override
+ protected Pair<CompletableFuture, ExecutorService> startService() {
+ ExecutorService executor = Executors.newFixedThreadPool(1);
Review comment:
Move to constructor of AutoCleanerService
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]