From d57861d8b5283483b5721f5c4be3ce285ea6bcf4 Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Fri, 12 Dec 2014 10:19:20 -0500 Subject: [PATCH] NIFI-164: Fixed MockContentRepository that existed in a unit test --- .../controller/repository/TestStandardProcessSession.java | 4 ++++ .../apache/nifi/provenance/VolatileProvenanceRepository.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/nar-bundles/framework-bundle/framework/core/src/test/java/org/apache/nifi/controller/repository/TestStandardProcessSession.java b/nar-bundles/framework-bundle/framework/core/src/test/java/org/apache/nifi/controller/repository/TestStandardProcessSession.java index 060bbd9d95..1ff63c545b 100644 --- a/nar-bundles/framework-bundle/framework/core/src/test/java/org/apache/nifi/controller/repository/TestStandardProcessSession.java +++ b/nar-bundles/framework-bundle/framework/core/src/test/java/org/apache/nifi/controller/repository/TestStandardProcessSession.java @@ -977,6 +977,10 @@ public class TestStandardProcessSession { private ConcurrentMap claimantCounts = new ConcurrentHashMap<>(); + @Override + public void shutdown() { + } + public Set getExistingClaims() { final Set claims = new HashSet<>(); diff --git a/nar-bundles/volatile-provenance-repository-bundle/volatile-provenance-repository/src/main/java/org/apache/nifi/provenance/VolatileProvenanceRepository.java b/nar-bundles/volatile-provenance-repository-bundle/volatile-provenance-repository/src/main/java/org/apache/nifi/provenance/VolatileProvenanceRepository.java index 9de26613aa..f4f9d127c0 100644 --- a/nar-bundles/volatile-provenance-repository-bundle/volatile-provenance-repository/src/main/java/org/apache/nifi/provenance/VolatileProvenanceRepository.java +++ b/nar-bundles/volatile-provenance-repository-bundle/volatile-provenance-repository/src/main/java/org/apache/nifi/provenance/VolatileProvenanceRepository.java @@ -169,6 +169,8 @@ public class VolatileProvenanceRepository implements ProvenanceEventRepository { @Override public void close() throws IOException { + queryExecService.shutdownNow(); + scheduledExecService.shutdown(); } @Override