)]}'
{"neutron/db/api.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"f8dd40285c2fb6fca5971bfba2f63faf5ff7501b","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"class convert_db_exception_to_retry(object):"},{"line_number":73,"context_line":"    \"\"\"Converts other types of DB exceptions into RetryRequests.\"\"\""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    def __init__(self, stale_data\u003dFalse):"},{"line_number":76,"context_line":"        self.to_catch \u003d ()"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_572ba730","line":73,"updated":"2015-06-29 21:17:06.000000000","message":"other than what?","commit_id":"3c72832c8b84af673722a34bba25eefc82154b47"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"f8dd40285c2fb6fca5971bfba2f63faf5ff7501b","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    def __init__(self, stale_data\u003dFalse):"},{"line_number":76,"context_line":"        self.to_catch \u003d ()"},{"line_number":77,"context_line":"        if stale_data:"},{"line_number":78,"context_line":"            self.to_catch +\u003d (orm.exc.StaleDataError, )"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def __call__(self, f):"},{"line_number":81,"context_line":"        @six.wraps(f)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_9c815692","line":78,"updated":"2015-06-29 21:17:06.000000000","message":"So, is this supposed to be a dumping ground for DB exceptions to convert to retry?  I\u0027m not sure I like this pattern.  I can\u0027t imagine that all of these exceptions will always be applicable everywhere this is used.\n\nSo, if you want to make it generic, why don\u0027t we pass the exception type to convert as an argument to the decorator?","commit_id":"3c72832c8b84af673722a34bba25eefc82154b47"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"bf3883769a73316f2a956f9688b44e54b964148d","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    def __init__(self, stale_data\u003dFalse):"},{"line_number":76,"context_line":"        self.to_catch \u003d ()"},{"line_number":77,"context_line":"        if stale_data:"},{"line_number":78,"context_line":"            self.to_catch +\u003d (orm.exc.StaleDataError, )"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def __call__(self, f):"},{"line_number":81,"context_line":"        @six.wraps(f)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_916e18c8","line":78,"in_reply_to":"ba3cc151_4e78f1c4","updated":"2015-06-29 23:39:13.000000000","message":"ok","commit_id":"3c72832c8b84af673722a34bba25eefc82154b47"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"5044f8554c25c8ae3b9552f2b3b21fff7c929bfb","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    def __init__(self, stale_data\u003dFalse):"},{"line_number":76,"context_line":"        self.to_catch \u003d ()"},{"line_number":77,"context_line":"        if stale_data:"},{"line_number":78,"context_line":"            self.to_catch +\u003d (orm.exc.StaleDataError, )"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def __call__(self, f):"},{"line_number":81,"context_line":"        @six.wraps(f)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_4e78f1c4","line":78,"in_reply_to":"ba3cc151_9c815692","updated":"2015-06-29 23:29:53.000000000","message":"This will go away in within a couple of weeks once I6c61b1d2f0331cac31dfde0afa523e44d470b83f is included in an olso db release and our global requirements are bumped.  I think we should probably just merge this as is rather than polishing this turd any more than necessary. What do you think?","commit_id":"3c72832c8b84af673722a34bba25eefc82154b47"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f324c5617330e66e152d64b253505c3e93089189","unresolved":false,"context_lines":[{"line_number":1376,"context_line":"        return self._bind_port_if_needed(port_context)"},{"line_number":1377,"context_line":""},{"line_number":1378,"context_line":"    @oslo_db_api.wrap_db_retry(max_retries\u003ddb_api.MAX_RETRIES,"},{"line_number":1379,"context_line":"                               retry_on_request\u003dTrue)"},{"line_number":1380,"context_line":"    def update_port_status(self, context, port_id, status, host\u003dNone,"},{"line_number":1381,"context_line":"                           network\u003dNone):"},{"line_number":1382,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_dd9571e4","line":1379,"updated":"2015-06-16 07:26:46.000000000","message":"idealy StaleDataError is something better handled in the decorator.","commit_id":"72a3bb8ca1a193977c4e706fca99c9c6e4ca2132"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f324c5617330e66e152d64b253505c3e93089189","unresolved":false,"context_lines":[{"line_number":1406,"context_line":"                    session.flush()"},{"line_number":1407,"context_line":"                    # try again if port updated concurrently"},{"line_number":1408,"context_line":"                except sa_exc.StaleDataError as e:"},{"line_number":1409,"context_line":"                    raise os_db_exception.RetryRequest(e)"},{"line_number":1410,"context_line":"                updated_port \u003d self._make_port_dict(port)"},{"line_number":1411,"context_line":"                network \u003d network or self.get_network("},{"line_number":1412,"context_line":"                    context, original_port[\u0027network_id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_4f1be41b","line":1409,"updated":"2015-06-16 07:26:46.000000000","message":"why do you want to perform this check in the middle of a transaction,\nrather than wrapping the whole transaction with try-except?","commit_id":"72a3bb8ca1a193977c4e706fca99c9c6e4ca2132"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"ac576bcecaa7caa8bd0b979fa02d5593ddd0a6d2","unresolved":false,"context_lines":[{"line_number":1406,"context_line":"                    session.flush()"},{"line_number":1407,"context_line":"                    # try again if port updated concurrently"},{"line_number":1408,"context_line":"                except sa_exc.StaleDataError as e:"},{"line_number":1409,"context_line":"                    raise os_db_exception.RetryRequest(e)"},{"line_number":1410,"context_line":"                updated_port \u003d self._make_port_dict(port)"},{"line_number":1411,"context_line":"                network \u003d network or self.get_network("},{"line_number":1412,"context_line":"                    context, original_port[\u0027network_id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_73b85c2b","line":1409,"in_reply_to":"fa32b979_4f1be41b","updated":"2015-06-19 14:22:06.000000000","message":"probably not to add another level of indentation, from a practical point of you I don\u0027t think it makes much difference. Although maybe triggering the flush here, will make this method fail faster in case of error.","commit_id":"72a3bb8ca1a193977c4e706fca99c9c6e4ca2132"}]}
