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

Create OperatorID for OperatorMetricGroup which in batch job

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • None
    • None
    • Runtime / Metrics
    • None

    Description

      In current design:

      The DataSet job uses VertexID as the OperatorID in the OperatorMetricGroup (ps:TaskMetricGroup.getOrAddOperator (string name)).

      If two operators in the same vertex have the same name, they will overwrite each other in the TaskMetricGroup.

      Proposal:

      We could add the OperatorID to the operator of the dataset.

      for (TaskInChain tic : this.chainedTasksInSequence) {
         TaskConfig t = new TaskConfig(tic.getContainingVertex().getConfiguration());
         Integer nodeId = tic.getPlanNode().getOptimizerNode().getId();
         OperatorID operatorID = this.nodeId2OperatorId.get(nodeId);
         if(operatorID == null) {
            operatorID = new OperatorID();
            this.nodeId2OperatorId.put(nodeId, operatorID);
         }
         t.addChainedTask(tic.getChainedTask(), tic.getTaskConfig(), tic.getTaskName(), operatorID.toString());
      }
      

      Then we could get id from TaskInfo.

      Attachments

        1. screenshot-1.png
          11 kB
          lining

        Activity

          People

            Unassigned Unassigned
            lining lining
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: