[ 
https://issues.apache.org/jira/browse/FLINK-10471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16696481#comment-16696481
 ] 

ASF GitHub Bot commented on FLINK-10471:
----------------------------------------

Aitozi commented on a change in pull request #7163: [FLINK-10471][State TTL] 
State TTL cleanup using RocksDb compaction filter
URL: https://github.com/apache/flink/pull/7163#discussion_r235862583
 
 

 ##########
 File path: 
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBKeyedStateBackend.java
 ##########
 @@ -421,16 +427,29 @@ public void dispose() {
                        // invalidate the reference
                        db = null;
 
-                       IOUtils.closeQuietly(columnOptions);
                        IOUtils.closeQuietly(dbOptions);
                        IOUtils.closeQuietly(writeOptions);
+
+                       for (RocksDbKvStateInfo kvStateInfo : 
kvStateInformation.values()) {
+                               
IOUtils.closeQuietly(kvStateInfo.compactionFilter);
 
 Review comment:
   what is the order of these `close` should follow ?  `columnFamily` -> 
`columnOptions` -> `db` -> `dbOptions` -> `writeOptions` -> `filter` ?    Can 
this be put in a single function avoiding missing ~?  

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> State TTL cleanup using RocksDb compaction filter
> -------------------------------------------------
>
>                 Key: FLINK-10471
>                 URL: https://issues.apache.org/jira/browse/FLINK-10471
>             Project: Flink
>          Issue Type: New Feature
>          Components: State Backends, Checkpointing
>    Affects Versions: 1.7.0
>            Reporter: Andrey Zagrebin
>            Assignee: Andrey Zagrebin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.8.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to