GitHub user tillrohrmann opened a pull request:
https://github.com/apache/flink/pull/5755
[FLINK-8740] [metrics] Create new JobManagerJobMetricGroup when creating a
new ExecutionGraph
## What is the purpose of the change
Closes the JobManagerJobMetricGroup when suspending the `JobManager`. This
allows to reregister the job metrics when the `JobManager` regains its
leadership.
## Verifying this change
- Tested manually
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not applicable)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tillrohrmann/flink jobLevelMetricsHA
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/5755.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5755
----
commit ef2de68bcad3c4715941a1e61d0a460b4c609520
Author: Till Rohrmann <trohrmann@...>
Date: 2018-03-23T13:08:49Z
[FLINK-8740] [metrics] Create new JobManagerJobMetricGroup when creating a
new ExecutionGraph
commit 98a49cd032346a2b09641ee6d30baadf9a98855f
Author: Till Rohrmann <trohrmann@...>
Date: 2018-03-23T14:43:20Z
[hotfix] Create ExecutionGraph when JobMaster is started
The ExecutionGraph is not a final resource in the JobMaster. For example,
it is necessary
to create a new ExecutionGraph when rescaling the job or when the JobMaster
loses and
regains its leadership.
commit dcddfeb0b8883964505bed55d5b3730cae9abe60
Author: Till Rohrmann <trohrmann@...>
Date: 2018-03-23T14:46:29Z
[hotfix] Remove unused fields in JobMaster
----
---