From b7215b3c85ad75c1a21bee42e140a07943cf3477 Mon Sep 17 00:00:00 2001 From: Olivier Vielpeau Date: Wed, 26 Sep 2018 18:16:33 -0400 Subject: [PATCH] Revert "Fixes issue #3700" This reverts commit 78e9ad46749b319fa4aff57bea0b232136ef0e6d, which introduced a file descriptor leak when dogstreams is enabled. --- checks/collector.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/checks/collector.py b/checks/collector.py index 07c787b960..0abbedfa7e 100644 --- a/checks/collector.py +++ b/checks/collector.py @@ -355,11 +355,6 @@ def run(self, checksd=None, start_event=True, configs_reloaded=False): if self._ganglia is not None: payload['ganglia'] = self._ganglia.check(self.agentConfig) if self._dogstream is not None: - # every 10 run (~2min) we reload the list of files watched by - # dogstream - if (self.run_count % 10) == 0: - log.info("reloading list of files watched by Dogstreams") - self._dogstream = Dogstreams.init(log, self.agentConfig) dogstreamData = self._dogstream.check(self.agentConfig) dogstreamEvents = dogstreamData.get('dogstreamEvents', None) if dogstreamEvents: