[HUDI-2959] Fix the thread leak of cleaning service (#4252)
This commit is contained in:
@@ -281,7 +281,11 @@ public class HoodieFlinkWriteClient<T extends HoodieRecordPayload> extends
|
||||
* checkpoint finish.
|
||||
*/
|
||||
public void startAsyncCleaning() {
|
||||
this.asyncCleanerService = AsyncCleanerService.startAsyncCleaningIfEnabled(this);
|
||||
if (this.asyncCleanerService == null) {
|
||||
this.asyncCleanerService = AsyncCleanerService.startAsyncCleaningIfEnabled(this);
|
||||
} else {
|
||||
this.asyncCleanerService.start(null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user