First Last Prev Next    No search results available
Details
: minor tcpconn.py fixes
Bug#: 196
: Ganglia Monitoring System
: gmond
Status: RESOLVED
Resolution: FIXED
: PC
: Linux
: 3.1.x
: P2
: minor

:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Kostas Georgiou <k.georgiou@imperial.ac.uk>
Assigned To: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>

Attachments
patch against trunk (1.34 KB, text/plain)
2008-07-30 14:36, Kostas Georgiou
Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2008-07-30 14:32
fd_poll.poll() sometimes fail with:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/threading.py", line 460, in __bootstrap
    self.run()
  File "/usr/lib64/ganglia/python_modules/tcpconn.py", line 252, in run
    poll_events = fd_poll.poll()
error: (4, 'Interrupted system call')

which stops the module from working until a gmond restart.
------- Comment #1 From Kostas Georgiou 2008-07-30 14:36:55 -------
Created an attachment (id=149) [details]
patch against trunk

Since readlines() is blocking there is no point to use poll (especially without
a timeout). I also added a check to run time.sleep(_refresh_rate) only if we
aren't shutting down. It speeds up gmond -m at least.
------- Comment #2 From Carlo Marcelo Arenas Belon 2008-08-02 08:33:46 -------
can you also reproduce this bug in trunk without your patch?
what is triggering the "Interrupted system call" from poll()?
which version of python (2.5.?) and architecture (x86_64?)
------- Comment #3 From Carlo Marcelo Arenas Belon 2008-08-02 15:34:15 -------
Committed revision 1621 for trunk
------- Comment #4 From Carlo Marcelo Arenas Belon 2008-08-09 23:28:46 -------
Committed revision 1645 for 3.1

First Last Prev Next    No search results available