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

Improve lifecycle management of created BlobCaches in TaskManagerLogHandler and JobClient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 1.3.0, 1.4.0
    • None
    • Runtime / Coordination
    • None

    Description

      Some components like the JobClient#retrieveClassLoader and TaskManagerLogHandler create BlobCaches to retrieve data from the BlobServer. These instances are created in a local context and their lifecycle is not properly managed. The cleanup/closing solely relies on the fact that their storage directory will be cleaned up eventually by a registered shutdown hook.

      I think it would be better to properly implement a lifecycle management for these components and close them at an appropriate location in the code. E.g. one could pass in a shared BlobCache which is closed once the JobClient action is over.

      Attachments

        Activity

          People

            Unassigned Unassigned
            trohrmann Till Rohrmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: