danny0405 commented on code in PR #13064:
URL: https://github.com/apache/hudi/pull/13064#discussion_r2026105012


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/clean/CleanPlanActionExecutor.java:
##########
@@ -56,14 +57,19 @@ public class CleanPlanActionExecutor<T, I, K, O> extends 
BaseActionExecutor<T, I
 
   private static final Logger LOG = 
LoggerFactory.getLogger(CleanPlanActionExecutor.class);
   private final Option<Map<String, String>> extraMetadata;
+  private final TransactionManager txnManager;
+  private final boolean skipLocking;
 
   public CleanPlanActionExecutor(HoodieEngineContext context,
                                  HoodieWriteConfig config,
                                  HoodieTable<T, I, K, O> table,
                                  String instantTime,
-                                 Option<Map<String, String>> extraMetadata) {
+                                 Option<Map<String, String>> extraMetadata,
+                                 boolean skipLocking) {
     super(context, config, table, instantTime);
     this.extraMetadata = extraMetadata;
+    this.txnManager = new TransactionManager(config, table.getStorage());

Review Comment:
   init the txn manager only if the lock is required?



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