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

Checkpoint Stats Tracker Reads from Wrong Configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.3, 1.1.0
    • None
    • None

    Description

      In ExecutionGraph.java when configuring the checkpoint stats tracker the config values are read from the jobConfiguration:

      boolean isStatsDisabled = jobConfiguration.getBoolean(
              ConfigConstants.JOB_MANAGER_WEB_CHECKPOINTS_DISABLE,
              ConfigConstants.DEFAULT_JOB_MANAGER_WEB_CHECKPOINTS_DISABLE);
      
      if (isStatsDisabled) {
          checkpointStatsTracker = new DisabledCheckpointStatsTracker();
      }
      else {
          int historySize = jobConfiguration.getInteger(
                  ConfigConstants.JOB_MANAGER_WEB_CHECKPOINTS_HISTORY_SIZE,
                  ConfigConstants.DEFAULT_JOB_MANAGER_WEB_CHECKPOINTS_HISTORY_SIZE);
      
          checkpointStatsTracker = new SimpleCheckpointStatsTracker(historySize, tasksToWaitFor);
      }
      

      The settings are only available in the Flink Configuration, however. Right now, the ExecutionGraph has no access to the Flink Configuration.

      I see three solutions:

      • pass the Flink Configuration to the ExecutionGraph
      • pass just the two required settings to the ExecutionGraph
      • Introduce a new ExecutionGraphSettings that contains settings only for the ExecutionGraph in order to clean up things a bit

      Attachments

        Activity

          People

            uce Ufuk Celebi
            aljoscha Aljoscha Krettek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: