Skip to content

Commit

Permalink
[FLINK-9026] [flip6] Close the TaskManagerMetricGroup when the TaskEx…
Browse files Browse the repository at this point in the history
…ecutor is shut down

This closes apache#5734.
  • Loading branch information
sihuazhou authored and tillrohrmann committed Mar 28, 2018
1 parent 066b66d commit 7a21efb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ public CompletableFuture<Void> postStop() {
throwable = ExceptionUtils.firstOrSuppressed(t, throwable);
}

// it will call close() recursively from the parent to children
taskManagerMetricGroup.close();

if (throwable != null) {
return FutureUtils.completedExceptionally(new FlinkException("Error while shutting the TaskExecutor down.", throwable));
} else {
Expand Down

0 comments on commit 7a21efb

Please sign in to comment.