This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new bc9abf039 [flink] Close refresh executor before lookup table is closed 
(#3564)
bc9abf039 is described below

commit bc9abf03913cfa4476b8db3ff5b081fef269c77a
Author: Fang Yong <[email protected]>
AuthorDate: Fri Jun 21 15:46:09 2024 +0800

    [flink] Close refresh executor before lookup table is closed (#3564)
---
 .../java/org/apache/paimon/flink/lookup/FullCacheLookupTable.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/FullCacheLookupTable.java
 
b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/FullCacheLookupTable.java
index ed5c4c13f..8cb1b5254 100644
--- 
a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/FullCacheLookupTable.java
+++ 
b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/FullCacheLookupTable.java
@@ -299,12 +299,12 @@ public abstract class FullCacheLookupTable implements 
LookupTable {
     @Override
     public void close() throws IOException {
         try {
-            stateFactory.close();
-            FileIOUtils.deleteDirectory(context.tempPath);
-        } finally {
             if (refreshExecutor != null) {
                 refreshExecutor.shutdown();
             }
+        } finally {
+            stateFactory.close();
+            FileIOUtils.deleteDirectory(context.tempPath);
         }
     }
 

Reply via email to