[HUDI-2959] Fix the thread leak of cleaning service (#4252)
This commit is contained in:
@@ -98,4 +98,11 @@ public class CleanFunction<T> extends AbstractRichFunction
|
||||
public void initializeState(FunctionInitializationContext context) throws Exception {
|
||||
// no operation
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws Exception {
|
||||
if (this.writeClient != null) {
|
||||
this.writeClient.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user