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

Deprecate reflection-based reporter instantiation

    XMLWordPrintableJSON

Details

    • Hide
      Configuring reporters by their class has been deprecated. Reporter implementations should provide a MetricReporterFactory, and all configurations should be migrated to such a factory.
      If the reporter is loaded from the plugins directory, setting metrics.reporter.reporter_name.class no longer works.
      Show
      Configuring reporters by their class has been deprecated. Reporter implementations should provide a MetricReporterFactory, and all configurations should be migrated to such a factory. If the reporter is loaded from the plugins directory, setting metrics.reporter.reporter_name.class no longer works.

    Description

      Metric reporters can currently be instantiated in one of 2 ways:
      a) the reporter class is loaded via reflection
      b) the reporter factory is loaded via reflection/ServiceLoader (aka, plugins)

      All reporters provided by Flink use the factory approach, and it is preferable because it supports plugins. The plugin approach also has been available 1.11, and I think it's fair to deprecate the old approach by now.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: