)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"ae2253f35038228538e474dfdde6ac1b053c3dc4","unresolved":false,"context_lines":[{"line_number":10,"context_line":"PyPi which caused some issues. This patch removes the psutil"},{"line_number":11,"context_line":"dependency in favor of using the method that was proposed for"},{"line_number":12,"context_line":"the havana backport of polling minimization."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I5a1672cfd195099d92578321153c42b8bfd09b7d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"AAAAUH%2F9dXA%3D","line":13,"updated":"2014-02-06 19:20:30.000000000","message":"Please add:\n\nCloses-bug: #1268711","commit_id":"93df8ad60ddad65997d0b993752f6e29c9cb0ee9"}],"neutron/agent/linux/async_process.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"187a13eb00503db5071ea1d4f33021acc0d75a7d","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        if self.root_helper:"},{"line_number":142,"context_line":"            try:"},{"line_number":143,"context_line":"                pid \u003d utils.find_child_pids(pid)[0]"},{"line_number":144,"context_line":"            except (IndexError, TypeError):"},{"line_number":145,"context_line":"                # Process is already dead or pid \u003d\u003d None"},{"line_number":146,"context_line":"                return None"},{"line_number":147,"context_line":"            while True:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2BTu4%3D","line":144,"updated":"2014-01-28 05:42:13.000000000","message":"Who raises TypeError?\n\nIt seems find_child_pids returns a list or raises RuntimeError.\nutils.execute can raise TypeError?","commit_id":"eef29baf272d5c7d18580a4ad203b972ea9929f8"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"3f9b5592f317260c9c4bb7bd25acdbac22ec42f9","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        if self.root_helper:"},{"line_number":142,"context_line":"            try:"},{"line_number":143,"context_line":"                pid \u003d utils.find_child_pids(pid)[0]"},{"line_number":144,"context_line":"            except (IndexError, TypeError):"},{"line_number":145,"context_line":"                # Process is already dead or pid \u003d\u003d None"},{"line_number":146,"context_line":"                return None"},{"line_number":147,"context_line":"            while True:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2BQoE%3D","line":144,"in_reply_to":"AAAAUH%2F%2BQrM%3D","updated":"2014-01-28 16:05:43.000000000","message":"Looks like it was a hold-over from trying to fix the issue and can be removed. Thanks for the heads-up.","commit_id":"eef29baf272d5c7d18580a4ad203b972ea9929f8"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"b80267aae30b817efa26a58c03f661fe69e6217a","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        if self.root_helper:"},{"line_number":142,"context_line":"            try:"},{"line_number":143,"context_line":"                pid \u003d utils.find_child_pids(pid)[0]"},{"line_number":144,"context_line":"            except (IndexError, TypeError):"},{"line_number":145,"context_line":"                # Process is already dead or pid \u003d\u003d None"},{"line_number":146,"context_line":"                return None"},{"line_number":147,"context_line":"            while True:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2BQrM%3D","line":144,"in_reply_to":"AAAAUH%2F%2BTC8%3D","updated":"2014-01-28 15:53:04.000000000","message":"yeah, at some point in testing I came across pid \u003d\u003d None case. Just to prove I haven\u0027t completely lost my mind, here is the jenkins log from the havana version:\n\nhttp://logs.openstack.org/11/65811/1/check/gate-neutron-python27/7b078a2/console.html.gz\n\nBUT, now when I remove catching the TypeError, I don\u0027t get that error. Still trying to track down why.","commit_id":"eef29baf272d5c7d18580a4ad203b972ea9929f8"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"321670476e6d682ad79013bfa7adb79c3dc2dca3","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        if self.root_helper:"},{"line_number":142,"context_line":"            try:"},{"line_number":143,"context_line":"                pid \u003d utils.find_child_pids(pid)[0]"},{"line_number":144,"context_line":"            except (IndexError, TypeError):"},{"line_number":145,"context_line":"                # Process is already dead or pid \u003d\u003d None"},{"line_number":146,"context_line":"                return None"},{"line_number":147,"context_line":"            while True:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2BTC8%3D","line":144,"in_reply_to":"AAAAUH%2F%2BTgk%3D","updated":"2014-01-28 09:24:52.000000000","message":"Are you talking there is a case where self._process.pid can be None (at L.131)? (because I don\u0027t see any case where find_child_pids return None). If my understanding is correct, I think it is better that pid\u003d\u003dNone should not be passed to find_child_pids and it is better to deal with \"pid \u003d\u003d None\" before this try-except.\n\nFor example, insert the following at L.141:\n\n  if not pid:\n    return\n\nI think it is easier to read the code.","commit_id":"eef29baf272d5c7d18580a4ad203b972ea9929f8"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"1749baee83aa7542c74c2ec77eaad2f8e63970a7","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        if self.root_helper:"},{"line_number":142,"context_line":"            try:"},{"line_number":143,"context_line":"                pid \u003d utils.find_child_pids(pid)[0]"},{"line_number":144,"context_line":"            except (IndexError, TypeError):"},{"line_number":145,"context_line":"                # Process is already dead or pid \u003d\u003d None"},{"line_number":146,"context_line":"                return None"},{"line_number":147,"context_line":"            while True:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2BTgk%3D","line":144,"in_reply_to":"AAAAUH%2F%2BTu4%3D","updated":"2014-01-28 06:42:04.000000000","message":"pid can equal None, at which point accessing [] will be a TypeError. Tried to explain in the comment just below this, but perhaps not very well.","commit_id":"eef29baf272d5c7d18580a4ad203b972ea9929f8"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"187a13eb00503db5071ea1d4f33021acc0d75a7d","unresolved":false,"context_lines":[{"line_number":150,"context_line":"                    # so keep getting the children of the first one"},{"line_number":151,"context_line":"                    pid \u003d utils.find_child_pids(pid)[0]"},{"line_number":152,"context_line":"                except IndexError:"},{"line_number":153,"context_line":"                    #Last process in the tree, return it"},{"line_number":154,"context_line":"                    break"},{"line_number":155,"context_line":"        return pid"},{"line_number":156,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2BTv4%3D","line":153,"updated":"2014-01-28 05:42:13.000000000","message":"pedantic: a space after #","commit_id":"eef29baf272d5c7d18580a4ad203b972ea9929f8"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"3f9b5592f317260c9c4bb7bd25acdbac22ec42f9","unresolved":false,"context_lines":[{"line_number":150,"context_line":"                    # so keep getting the children of the first one"},{"line_number":151,"context_line":"                    pid \u003d utils.find_child_pids(pid)[0]"},{"line_number":152,"context_line":"                except IndexError:"},{"line_number":153,"context_line":"                    #Last process in the tree, return it"},{"line_number":154,"context_line":"                    break"},{"line_number":155,"context_line":"        return pid"},{"line_number":156,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2BQno%3D","line":153,"in_reply_to":"AAAAUH%2F%2BTv4%3D","updated":"2014-01-28 16:05:43.000000000","message":"Done","commit_id":"eef29baf272d5c7d18580a4ad203b972ea9929f8"}],"neutron/agent/linux/utils.py":[{"author":{"_account_id":6316,"name":"Anita Kuno","email":"anteaya@anteaya.info","username":"anteaya"},"change_message_id":"f40e2cf2d98e5240f24bb5c87260f8559e2b71e8","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        # Unexpected errors are the responsibility of the caller"},{"line_number":122,"context_line":"        raise"},{"line_number":123,"context_line":"    return [x.strip() for x in raw_pids.split(\u0027\\n\u0027) if x.strip()]"},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BhVw%3D","line":124,"updated":"2014-01-24 19:56:52.000000000","message":"Let\u0027s lose this empty line at the bottom of the file.","commit_id":"f88cae77f52abe21eccb07d89b5baee8ad26ea05"}]}
