Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1103324 Details for
Bug 1279502
Pulp tasks randomly stuck at waiting or running
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
new selector patch against 0.30-7
selector.patch (text/plain), 1.49 KB, created by
Ken Giusti
on 2015-12-07 17:17:07 UTC
(
hide
)
Description:
new selector patch against 0.30-7
Filename:
MIME Type:
Creator:
Ken Giusti
Created:
2015-12-07 17:17:07 UTC
Size:
1.49 KB
patch
obsolete
>--- /home/kgiusti/rpmbuild/BUILD/qpid-python-0.30/qpid/selector.py.ORIG 2015-12-07 08:44:38.073721592 -0500 >+++ /home/kgiusti/rpmbuild/BUILD/qpid-python-0.30/qpid/selector.py 2015-12-07 11:46:28.538732258 -0500 >@@ -48,6 +48,7 @@ > lock = Lock() > DEFAULT = None > _current_pid = None >+ process_forked = False > > @staticmethod > def default(): >@@ -58,6 +59,10 @@ > atexit.register(sel.stop) > sel.start() > Selector.DEFAULT = sel >+ if (Selector._current_pid is not None >+ and Selector._current_pid != os.getpid()): >+ log.error("Test patch: fork detected pid=%s", os.getpid()) >+ Selector.process_forked = True > Selector._current_pid = os.getpid() > return Selector.DEFAULT > finally: >@@ -115,6 +120,7 @@ > raise > > def run(self): >+ loop_count = 0 > while not self.stopped: > wakeup = None > for sel in self.selectables.copy(): >@@ -136,6 +142,12 @@ > else: > timeout = max(0, wakeup - time.time()) > rd, wr, ex = select(self.reading, self.writing, (), timeout) >+ if Selector.process_forked: >+ if loop_count > 20: >+ log.error("Test patch: RAISING EXCEPTION NOW!") >+ raise Exception("This exception should be logged") >+ loop_count = loop_count + 1 >+ log.error("Test patch: loop count=%d pid=%d", loop_count, os.getpid()) > break > except SelectError, e: > # Repeat the select call if we were interrupted.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1279502
:
1101566
|
1101732
|
1102282
| 1103324