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

Flink RocksDB statebackend memory leak issue

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Information Provided
    • 1.10.0
    • None

    Description

      When using RocksDB as our statebackend, we found it will lead to memory leak when restarting job (manually or in recovery case).

       

      How to reproduce:

      1. increase RocksDB blockcache size(e.g. 1G), it is easier to monitor and reproduce.
      2. start a job using RocksDB statebackend.
      3. when the RocksDB blockcache reachs maximum size, restart the job. and monitor the memory usage (k8s pod working set) of the TM.
      4. go through step 2-3 few more times. and memory will keep raising.

       

      Any solution or suggestion for this? Thanks!

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yunta Yun Tang
            lio_sy Farnight
            Votes:
            0 Vote for this issue
            Watchers:
            17 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment