[
https://issues.apache.org/jira/browse/FLINK-8670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16366881#comment-16366881
]
ASF GitHub Bot commented on FLINK-8670:
---------------------------------------
Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/5504#discussion_r168735349
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java
---
@@ -77,19 +85,20 @@
private ViewUpdater viewUpdater;
- private final ScopeFormats scopeFormats;
- private final char globalDelimiter;
- private final List<Character> delimiters = new ArrayList<>();
+ private boolean isShutdown;
/**
* Creates a new MetricRegistry and starts the configured reporter.
*/
public MetricRegistryImpl(MetricRegistryConfiguration config) {
this.scopeFormats = config.getScopeFormats();
this.globalDelimiter = config.getDelimiter();
+ this.delimiters = new ArrayList<>(10);
--- End diff --
Good point, will change it.
> Make MetricRegistryImpl#shutdown non blocking
> ----------------------------------------------
>
> Key: FLINK-8670
> URL: https://issues.apache.org/jira/browse/FLINK-8670
> Project: Flink
> Issue Type: Improvement
> Components: Metrics
> Affects Versions: 1.5.0
> Reporter: Till Rohrmann
> Assignee: Till Rohrmann
> Priority: Major
> Labels: flip-6
> Fix For: 1.5.0
>
>
> In order to better shut down multiple components concurrently, we should make
> all shutdown operation non-blocking if possible. This also includes the
> {{MetricRegistryImpl}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)