Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6537 Umbrella issue for fixes to incremental snapshots
  3. FLINK-6505

Proactively cleanup local FS for RocksDBKeyedStateBackend on startup

    XMLWordPrintableJSON

Details

    Description

      In RocksDBKeyedStateBackend, the instanceBasePath is cleared on dispose(). I think it might make sense to also clear this directory when the backend is created, in case something crashed and the backend never reached dispose(). At least for previous runs of the same job, we can know what to delete on restart.

      In general, it is very important for this backend to clean up the local FS, because the local quota might be very limited compared to the DFS. And a node that runs out of local disk space can bring down the whole job, with no way to recover (it might always get rescheduled to that node).

      Attachments

        Issue Links

          Activity

            People

              phoenixjiangnan Bowen Li
              srichter Stefan Richter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: