Skip to content

Commit

Permalink
KAFKA-7990: Close streams at the end in KafkaStreamsTest (#6334)
Browse files Browse the repository at this point in the history
This fix is already in 2.1+ branches, but did not get into older branches.

Should be cherry-picked all the way to 0.10.2.

Reviewers: Matthias J. Sax <mjsax@apache.org>
  • Loading branch information
guozhangwang committed Feb 27, 2019
1 parent 59cdb69 commit 6de49c8
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -342,6 +342,9 @@ public void apply(final String key, final String value) {
} finally {
// stop the thread so we don't interfere with other tests etc
keepRunning.set(false);
if (streams != null) {
streams.close();
}
}
}

Expand Down

0 comments on commit 6de49c8

Please sign in to comment.