This is an automated email from the ASF dual-hosted git repository. exceptionfactory pushed a commit to branch support/nifi-1.x in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/support/nifi-1.x by this push: new 8fda8f2ca5 NIFI-12370 Switched from close() to shutdown() for Java 8 8fda8f2ca5 is described below commit 8fda8f2ca57e0a0c746ca1614a0939a41e18375a Author: exceptionfactory <exceptionfact...@apache.org> AuthorDate: Wed Nov 15 04:45:18 2023 -0600 NIFI-12370 Switched from close() to shutdown() for Java 8 - ExecutorService implements AutoCloseable in Java 21 but not on Java 17 and earlier Signed-off-by: David Handermann <exceptionfact...@apache.org> --- .../apache/nifi/distributed/cache/client/DistributedCacheClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/java/org/apache/nifi/distributed/cache/client/DistributedCacheClient.java b/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/java/org/apache/nifi/distributed/cache/client/DistributedCacheClient.java index 6a65e26ed1..97a4afe77d 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/java/org/apache/nifi/distributed/cache/client/DistributedCacheClient.java +++ b/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/java/org/apache/nifi/distributed/cache/client/DistributedCacheClient.java @@ -86,8 +86,9 @@ public class DistributedCacheClient { /** * Close Channel Pool and supporting Event Loop Group */ + @SuppressWarnings("deprecation") protected void closeChannelPool() { channelPool.close(); - eventLoopGroup.close(); + eventLoopGroup.shutdown(); } }