Skip to content

Commit

Permalink
Revert "Fixes issue #3700"
Browse files Browse the repository at this point in the history
This reverts commit 78e9ad4,
which introduced a file descriptor leak when dogstreams is enabled.
  • Loading branch information
olivielpeau committed Sep 26, 2018
1 parent 484bca6 commit b7215b3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions checks/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b7215b3

Please sign in to comment.