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

Log task state transitions as warn/error for FAILURE scenarios

    XMLWordPrintableJSON

Details

    Description

      If a task fails due to an exception, I would like that to be logged at a warn or an error level. currently its info

      private boolean transitionState(ExecutionState currentState, ExecutionState newState, Throwable cause) {
      		if (STATE_UPDATER.compareAndSet(this, currentState, newState)) {
      			if (cause == null) {
      				LOG.info("{} ({}) switched from {} to {}.", taskNameWithSubtask, executionId, currentState, newState);
      			} else {
      				LOG.info("{} ({}) switched from {} to {}.", taskNameWithSubtask, executionId, currentState, newState, cause);
      			}
      
      			return true;
      		} else {
      			return false;
      		}
      	}
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danbress Dan Bress
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m