kafka/connect
Arjun Satish 3b03c9d348 KAFKA-6252; Close the metric group to clean up any existing metrics
We are closing the metricGroups created in a Worker, Source task and Sink task before populating them with new metrics. This helps in cases where an Exception is thrown when previously created groups were not cleaned up correctly.

Signed-off-by: Arjun Satish <arjunconfluent.io>

Author: Arjun Satish <arjun@confluent.io>

Reviewers: Randall Hauch <rhauch@gmail.com>, Konstantine Karantasis <konstantine@confluent.io>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #4397 from wicknicks/KAFKA-6252
2018-01-05 21:24:39 -08:00
..
api Replace Arrays.asList with Collections.singletonList where possible (#4368) 2018-01-01 13:07:32 +00:00
file/src KAFKA-4335: Add batch.size to FileStreamSource connector to prevent OOM 2018-01-05 18:31:53 -08:00
json MINOR: Use EnumMap/EnumSet if possible (#3919) 2017-12-29 12:39:18 +00:00
runtime/src KAFKA-6252; Close the metric group to clean up any existing metrics 2018-01-05 21:24:39 -08:00
transforms/src MINOR: Use EnumMap/EnumSet if possible (#3919) 2017-12-29 12:39:18 +00:00