Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24938

Checkpoint cleaner is closed before checkpoints are discarded

    XMLWordPrintableJSON

Details

    Description

      When CompletedCheckpointStore shuts down it tries to discard some checkpoints using CheckpointCleaner. The latter is closed asynchronously since FLINK-23647 and before the Store.

      Visible as warning when running ResumeCheckpointManuallyITCase.testExternalizedIncrementalRocksDBCheckpointsZookeeper:

      2021-11-17 10:47:10,599 Fail to remove checkpoint during shutdown. [DefaultCompletedCheckpointStore flink-akka.actor.default-dispatcher-5]
       java.lang.IllegalStateException: CheckpointsCleaner has already been closed
               at org.apache.flink.util.Preconditions.checkState(Preconditions.java:193) ~[classes/:?]
               at org.apache.flink.runtime.checkpoint.CheckpointsCleaner.incrementNumberOfCheckpointsToClean(CheckpointsCleaner.java:105) ~[classes/:?]
               at org.apache.flink.runtime.checkpoint.CheckpointsCleaner.cleanup(CheckpointsCleaner.java:87) ~[classes/:?]
               at org.apache.flink.runtime.checkpoint.CheckpointsCleaner.cleanCheckpoint(CheckpointsCleaner.java:62) ~[classes/:?]
               at org.apache.flink.runtime.checkpoint.DefaultCompletedCheckpointStore.tryRemoveCompletedCheckpoint(DefaultCompletedCheckpointStore.java:2
               at org.apache.flink.runtime.checkpoint.DefaultCompletedCheckpointStore.shutdown(DefaultCompletedCheckpointStore.java:172) ~[classes/:?]
               at org.apache.flink.runtime.scheduler.SchedulerBase.shutDownCheckpointServices(SchedulerBase.java:222) ~[classes/:?]
      
      

      But the test still passes.

      cc: pnowojski

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              roman Roman Khachatryan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: