MartijnVisser commented on code in PR #29535:
URL: https://github.com/apache/flink/pull/29535#discussion_r4336466656


##########
flink-state-backends/flink-statebackend-forst/src/test/java/org/apache/flink/state/forst/ForStExtension.java:
##########
@@ -216,7 +217,11 @@ public void after() {
         IOUtils.closeQuietly(this.db);
         IOUtils.closeQuietly(this.resourceContainer);
         IOUtils.closeQuietly(this.resourceGuard);
-        temporaryFolder.delete();
+        try {
+            FileUtils.deleteDirectory(temporaryFolder.toFile());

Review Comment:
   `RocksDBExtension` uses `FileUtils.deleteDirectoryQuietly` here, which also 
drops the try/catch and the `IOException` import. Might make sense to keep the 
two in line.



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