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

Catch exceptions for each reporter separately

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.3.1, 1.4.0
    • 1.3.2, 1.4.0
    • Runtime / Metrics
    • None

    Description

      The metric system can be effectively disabled by a reporter that throws exceptions whenever it is notified of adding metrics.

      The reason is that the catching of exceptions isn't granular enough, as this peace of psude code shows:

      addMetric(metric):
      	try
      		for reporter in reporters:
      			reporter.addMetric(metric)
      		metricQueryService.addMetric(metric)
      	catch (e)
      		logError(e)	
      

      If a reporter throws an exception we never even attempt the other reporters, not notify the MQS which disabled metrics in the WebUI.

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: