Skip to content

Commit b7215b3

Browse files
committed
Revert "Fixes issue #3700"
This reverts commit 78e9ad4, which introduced a file descriptor leak when dogstreams is enabled.
1 parent 484bca6 commit b7215b3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

checks/collector.py

-5
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,6 @@ def run(self, checksd=None, start_event=True, configs_reloaded=False):
355355
if self._ganglia is not None:
356356
payload['ganglia'] = self._ganglia.check(self.agentConfig)
357357
if self._dogstream is not None:
358-
# every 10 run (~2min) we reload the list of files watched by
359-
# dogstream
360-
if (self.run_count % 10) == 0:
361-
log.info("reloading list of files watched by Dogstreams")
362-
self._dogstream = Dogstreams.init(log, self.agentConfig)
363358
dogstreamData = self._dogstream.check(self.agentConfig)
364359
dogstreamEvents = dogstreamData.get('dogstreamEvents', None)
365360
if dogstreamEvents:

0 commit comments

Comments
 (0)