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

FLIP-386: Support adding custom metrics in Recovery Spans

    XMLWordPrintableJSON

Details

    • Hide
      A braking change has been introduced to the `StateBackend` interface. This is relevant only to users that are implementing their own custom state backends.

      Newly added methods `org.apache.flink.runtime.state.StateBackend#createKeyedStateBackend(KeyedStateBackendParameters<K> parameters)` and `org.apache.flink.runtime.state.StateBackend#createOperatorStateBackend(OperatorStateBackendParameters parameters)` have replaced previous versions of the `createKeyedStateBackend` and `createOperatorStateBackend` methods. The new `parameters` POJO classes contain as fields all of the arguments that were passed directly to those methods.
      Show
      A braking change has been introduced to the `StateBackend` interface. This is relevant only to users that are implementing their own custom state backends. Newly added methods `org.apache.flink.runtime.state.StateBackend#createKeyedStateBackend(KeyedStateBackendParameters<K> parameters)` and `org.apache.flink.runtime.state.StateBackend#createOperatorStateBackend(OperatorStateBackendParameters parameters)` have replaced previous versions of the `createKeyedStateBackend` and `createOperatorStateBackend` methods. The new `parameters` POJO classes contain as fields all of the arguments that were passed directly to those methods.

    Description

      Motivation

      FLIP-386 is building on top of FLIP-384. The intention here is to add a capability for state backends to attach custom attributes during recovery to recovery spans. For example RocksDBIncrementalRestoreOperation could report both remote download time and time to actually clip/ingest the RocksDB instances after rescaling.

      Attachments

        Issue Links

          Activity

            People

              pnowojski Piotr Nowojski
              pnowojski Piotr Nowojski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: