Bug fix 28/87828/1
authorKate Hsuan <kate.hsuan@qct.io>
Thu, 16 May 2019 01:55:47 +0000 (09:55 +0800)
committerKate Hsuan <kate.hsuan@qct.io>
Thu, 16 May 2019 01:55:47 +0000 (09:55 +0800)
1. Close zookeeper connection.

Issue-ID: DCAEGEN2-1437

Change-Id: I7a2bfdcf14203cbe1708e6148b12ea00c49a07a1
Signed-off-by: Kate Hsuan <kate.hsuan@qct.io>
components/datalake-handler/feeder/src/main/java/org/onap/datalake/feeder/service/DmaapService.java

index 0caec79..02aa626 100644 (file)
@@ -67,6 +67,7 @@ public class DmaapService {
                        List<String> topics = zk.getChildren("/brokers/topics", false);
                        String[] excludes = config.getDmaapKafkaExclude();
                        topics.removeAll(Arrays.asList(excludes));
+                       zk.close();
                        return topics;
                } catch (Exception e) {
                        log.error("Can not get topic list from Zookeeper, for testing, going to use hard coded topic list.", e);