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

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

azagrebin opened a new pull request #6460: [FLINK-9938] Clean up full snapshot 
from expired state with TTL
URL: https://github.com/apache/flink/pull/6460
 
 
   ## What is the purpose of the change
   
   This PR introduces optional cleaning up of state snapshot from expired state 
during full scan snapshotting strategies (sync/async heap backend and rocksdb 
non-incremental).
   
   At the moment, this reduces size only of the stored snapshot. The local 
running state is not cleaned up actively but will decrease after restore. This 
might change if we introduce e.g. a thread safe queue of potentially expired 
keys and pull it incrementally for cleanup when we touch local state during 
normal operation.
   
   ## Brief change log
   
     - Add *CleanupStrategies* to *StateTtlConfig*
     - 
     - drop *ttl* prefixes and reduce verbosity in *StateTtlConfig*
   
   ## Verifying this change
   
   TTL unit tests.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (not documented yet)
   

----------------------------------------------------------------
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:
[email protected]


> State TTL cleanup during full state scan upon checkpointing
> -----------------------------------------------------------
>
>                 Key: FLINK-9938
>                 URL: https://issues.apache.org/jira/browse/FLINK-9938
>             Project: Flink
>          Issue Type: Improvement
>          Components: State Backends, Checkpointing
>    Affects Versions: 1.6.0
>            Reporter: Andrey Zagrebin
>            Assignee: Andrey Zagrebin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.6.0
>
>
> We can try to piggyback full state scan during certain checkpoint processes 
> in backends, check TTL expiration for every entry and evict expired to speed 
> up cleanup.



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

Reply via email to