)]}'
{"oslo/concurrency/processutils.py":[{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"7c4edd867026c244e149c2d5b71a16f9be3e1d1f","unresolved":false,"context_lines":[{"line_number":253,"context_line":"            # NOTE(termie): this appears to be necessary to let the subprocess"},{"line_number":254,"context_line":"            #               call clean something up in between calls, without"},{"line_number":255,"context_line":"            #               it two execute calls in a row hangs the second one"},{"line_number":256,"context_line":"            time.sleep(0)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def trycmd(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da9df570_7f768da5","line":256,"updated":"2014-09-26 21:10:44.000000000","message":"Should this be?\n\n if eventlet is not None:\n   time.sleep(0)\n\nThat avoids a useless call into a c module (https://hg.python.org/releasing/3.4/file/8671f89107c8/Modules/timemodule.c#l240) , likely not a problem, but doesn\u0027t seem like it will hurt to skip this...","commit_id":"f64015ea76941f90428b5eafd9f0df4446daf5b3"},{"author":{"_account_id":708,"name":"Yuriy Taraday","email":"yuriy@taraday.nl","username":"yorik-sar"},"change_message_id":"a91e992307bf98ec73c54a1b2e44ff539eb3a5c6","unresolved":false,"context_lines":[{"line_number":36,"context_line":"if eventlet and eventlet.patcher.is_monkey_patched(time):"},{"line_number":37,"context_line":"    from eventlet.green import subprocess"},{"line_number":38,"context_line":"else:"},{"line_number":39,"context_line":"    import subprocess"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_37ba17e2","line":39,"updated":"2014-09-29 10:57:38.000000000","message":"There\u0027s no need for conditional import here. subprocess should be monkey-patched by eventlet at this point.","commit_id":"2ec8a5e492b291d83c2eb961f61972deeb71c835"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"c7c8f3d3d3c2b044072ef00baee3fdc67c412719","unresolved":false,"context_lines":[{"line_number":36,"context_line":"if eventlet and eventlet.patcher.is_monkey_patched(time):"},{"line_number":37,"context_line":"    from eventlet.green import subprocess"},{"line_number":38,"context_line":"else:"},{"line_number":39,"context_line":"    import subprocess"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_111d1467","line":39,"in_reply_to":"baa201ad_37ba17e2","updated":"2014-09-29 17:25:56.000000000","message":"It doesn\u0027t appear subprocess gets monkey patched:\n\n \u003e\u003e\u003e import subprocess\n \u003e\u003e\u003e subprocess\n \u003cmodule \u0027subprocess\u0027 from \u0027/usr/lib64/python2.7/subprocess.pyc\u0027\u003e\n \u003e\u003e\u003e import eventlet\n \u003e\u003e\u003e eventlet.monkey_patch()\n \u003e\u003e\u003e subprocess\n \u003cmodule \u0027subprocess\u0027 from \u0027/usr/lib64/python2.7/subprocess.pyc\u0027\u003e\n\nI thought maybe it patched something in subprocess, but eventlet is reporting that it isn\u0027t monkey patched at all:\n\n \u003e\u003e\u003e eventlet.patcher.is_monkey_patched(\u0027subprocess\u0027)\n False\n\nIn fact, it\u0027s not in the list here: https://github.com/eventlet/eventlet/blob/master/eventlet/patcher.py#L208 so I don\u0027t think it\u0027s expected to be.","commit_id":"2ec8a5e492b291d83c2eb961f61972deeb71c835"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"1d9387ceaa8b733a712c83fedcd03f7e5bdd2a74","unresolved":false,"context_lines":[{"line_number":254,"context_line":"            #               call clean something up in between calls, without"},{"line_number":255,"context_line":"            #               it two execute calls in a row hangs the second one"},{"line_number":256,"context_line":"            time.sleep(0)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def trycmd(*args, **kwargs):"},{"line_number":260,"context_line":"    \"\"\"A wrapper around execute() to more easily handle warnings and errors."}],"source_content_type":"text/x-python","patch_set":2,"id":"da9df570_3fefa5ea","line":257,"updated":"2014-09-26 21:27:16.000000000","message":"Should this be?\n\n if eventlet is not None:\n   time.sleep(0)","commit_id":"2ec8a5e492b291d83c2eb961f61972deeb71c835"},{"author":{"_account_id":708,"name":"Yuriy Taraday","email":"yuriy@taraday.nl","username":"yorik-sar"},"change_message_id":"a91e992307bf98ec73c54a1b2e44ff539eb3a5c6","unresolved":false,"context_lines":[{"line_number":254,"context_line":"            #               call clean something up in between calls, without"},{"line_number":255,"context_line":"            #               it two execute calls in a row hangs the second one"},{"line_number":256,"context_line":"            time.sleep(0)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def trycmd(*args, **kwargs):"},{"line_number":260,"context_line":"    \"\"\"A wrapper around execute() to more easily handle warnings and errors."}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_d778eb2d","line":257,"in_reply_to":"baa201ad_6afe7b6d","updated":"2014-09-29 10:57:38.000000000","message":"We should state clearly in the preceding comment that this is for eventlet only. Otherwise it\u0027s not a big deal to yield thread here, especially compared to the time needed to run child process.","commit_id":"2ec8a5e492b291d83c2eb961f61972deeb71c835"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"c7c8f3d3d3c2b044072ef00baee3fdc67c412719","unresolved":false,"context_lines":[{"line_number":254,"context_line":"            #               call clean something up in between calls, without"},{"line_number":255,"context_line":"            #               it two execute calls in a row hangs the second one"},{"line_number":256,"context_line":"            time.sleep(0)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def trycmd(*args, **kwargs):"},{"line_number":260,"context_line":"    \"\"\"A wrapper around execute() to more easily handle warnings and errors."}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_d14aac26","line":257,"in_reply_to":"baa201ad_d778eb2d","updated":"2014-09-29 17:25:56.000000000","message":"Fair enough.  I\u0027ll leave a clarification comment in addition to termie\u0027s.","commit_id":"2ec8a5e492b291d83c2eb961f61972deeb71c835"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"e94e614b53a7e5a2f96820161933b6b9ce59c279","unresolved":false,"context_lines":[{"line_number":254,"context_line":"            #               call clean something up in between calls, without"},{"line_number":255,"context_line":"            #               it two execute calls in a row hangs the second one"},{"line_number":256,"context_line":"            time.sleep(0)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def trycmd(*args, **kwargs):"},{"line_number":260,"context_line":"    \"\"\"A wrapper around execute() to more easily handle warnings and errors."}],"source_content_type":"text/x-python","patch_set":2,"id":"da9df570_5fa8e976","line":257,"in_reply_to":"da9df570_3fefa5ea","updated":"2014-09-26 21:41:08.000000000","message":"Honestly, I don\u0027t know.  It\u0027s possible this issue doesn\u0027t even exist anymore, but I figured I\u0027d err on the side of caution.","commit_id":"2ec8a5e492b291d83c2eb961f61972deeb71c835"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"d93ac44035271bb0a77aed55c5b59650c916a8cb","unresolved":false,"context_lines":[{"line_number":254,"context_line":"            #               call clean something up in between calls, without"},{"line_number":255,"context_line":"            #               it two execute calls in a row hangs the second one"},{"line_number":256,"context_line":"            time.sleep(0)"},{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def trycmd(*args, **kwargs):"},{"line_number":260,"context_line":"    \"\"\"A wrapper around execute() to more easily handle warnings and errors."}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_6afe7b6d","line":257,"in_reply_to":"da9df570_5fa8e976","updated":"2014-09-29 09:34:20.000000000","message":"I don\u0027t think it\u0027s a big deal to time.sleep(0) *but* I think being clear that this is an codepath only needed by eventlet could be good so we can drop it in the future. ;)","commit_id":"2ec8a5e492b291d83c2eb961f61972deeb71c835"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"6f2743b538cd93dd7c4be2e55cc12379496a1b02","unresolved":false,"context_lines":[{"line_number":260,"context_line":"            # NOTE(bnemec): termie\u0027s comment above is probably specific to the"},{"line_number":261,"context_line":"            #               eventlet subprocess module, but since we still"},{"line_number":262,"context_line":"            #               have to support that we\u0027re leaving the sleep.  It"},{"line_number":263,"context_line":"            #               won\u0027t hurt anything in the stdlib case anyway."},{"line_number":264,"context_line":"            time.sleep(0)"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"baa201ad_4aca5e50","line":263,"updated":"2014-10-01 06:51:38.000000000","message":"It just a useless call to time.sleep, but agree it won\u0027t hurt anything, although I do wonder if that bug was filed in eventlet and may even be fixed by now (if it was reported...)","commit_id":"cdd8904a84ad489f6320d528139d7937bdd15a76"}]}
