)]}'
{"networking_odl/journal/full_sync.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c28bc804b13e50d076dafcc8f40c1d74bbab57ed","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            if handler:"},{"line_number":93,"context_line":"                try:"},{"line_number":94,"context_line":"                    _sync_resources(context, resource_type, handler)"},{"line_number":95,"context_line":"                except Exception:"},{"line_number":96,"context_line":"                    LOG.exception(\"Full sync for %s resource failed\","},{"line_number":97,"context_line":"                                  resource_type, exc_info\u003dTrue)"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_c64960b7","line":95,"range":{"start_line":95,"start_character":16,"end_line":95,"end_character":33},"updated":"2017-11-16 13:11:31.000000000","message":"1) Really ugly to catch all exceptions, we need to stop doing this.\n2) If there is a DB retriable exception you will silence it and it will not retry, really not good.","commit_id":"d71d9476c2437f5df093256d2718979d8d95ec5f"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"37bb8b6a75eb0f8259d1cbde744125b50b13a50e","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            if handler:"},{"line_number":93,"context_line":"                try:"},{"line_number":94,"context_line":"                    _sync_resources(context, resource_type, handler)"},{"line_number":95,"context_line":"                except Exception:"},{"line_number":96,"context_line":"                    LOG.exception(\"Full sync for %s resource failed\","},{"line_number":97,"context_line":"                                  resource_type, exc_info\u003dTrue)"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_96c39157","line":95,"range":{"start_line":95,"start_character":16,"end_line":95,"end_character":33},"in_reply_to":"1f485f77_4c722faf","updated":"2017-11-16 15:26:02.000000000","message":"\u003e If we fail to sync due to some problem with one resource, rest of the resources won\u0027t sync as well.\n\nI\u0027m sure you could track which exceptions could be raised and catch those, right? \n\n\u003e Agree, Can we do something better?\n\nIf really need to catch Exception then yes:\n\nhttp://git.openstack.org/cgit/openstack/neutron/tree/neutron/db/api.py#n89","commit_id":"d71d9476c2437f5df093256d2718979d8d95ec5f"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"4c511ebc4bf788ac73d232bd7aaf16b3d234519c","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            if handler:"},{"line_number":93,"context_line":"                try:"},{"line_number":94,"context_line":"                    _sync_resources(context, resource_type, handler)"},{"line_number":95,"context_line":"                except Exception:"},{"line_number":96,"context_line":"                    LOG.exception(\"Full sync for %s resource failed\","},{"line_number":97,"context_line":"                                  resource_type, exc_info\u003dTrue)"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_6748ebcb","line":95,"range":{"start_line":95,"start_character":16,"end_line":95,"end_character":33},"in_reply_to":"1f485f77_96c39157","updated":"2017-11-21 22:51:07.000000000","message":"At least we should not catch all exceptions. but exception to catch needs to be specific.\n\nWhat kind of exception are you seeing?\nIf we hit non-retriable db error, probably we have only few choice to do. may be log and abandon etc.","commit_id":"d71d9476c2437f5df093256d2718979d8d95ec5f"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"38a6d446ad670737d264648f43155afb04ebf3d0","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            if handler:"},{"line_number":93,"context_line":"                try:"},{"line_number":94,"context_line":"                    _sync_resources(context, resource_type, handler)"},{"line_number":95,"context_line":"                except Exception:"},{"line_number":96,"context_line":"                    LOG.exception(\"Full sync for %s resource failed\","},{"line_number":97,"context_line":"                                  resource_type, exc_info\u003dTrue)"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_4c722faf","line":95,"range":{"start_line":95,"start_character":16,"end_line":95,"end_character":33},"in_reply_to":"1f485f77_c64960b7","updated":"2017-11-16 13:49:57.000000000","message":"\u003e Really ugly to catch all exceptions, we need to stop doing this.\n\nIf we fail to sync due to some problem with one resource, rest of the resources won\u0027t sync as well.\n\n\u003e If there is a DB retriable exception you will silence it and it will not retry, really not good.\n\nAgree, Can we do something better?","commit_id":"d71d9476c2437f5df093256d2718979d8d95ec5f"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"52191026f30ad7774fd9842ad0aa90ac5e425f0b","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            if handler:"},{"line_number":93,"context_line":"                try:"},{"line_number":94,"context_line":"                    _sync_resources(context, resource_type, handler)"},{"line_number":95,"context_line":"                except Exception:"},{"line_number":96,"context_line":"                    LOG.exception(\"Full sync for %s resource failed\","},{"line_number":97,"context_line":"                                  resource_type, exc_info\u003dTrue)"},{"line_number":98,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_414b492a","line":95,"range":{"start_line":95,"start_character":16,"end_line":95,"end_character":33},"in_reply_to":"ff82abbf_6748ebcb","updated":"2017-11-22 07:53:52.000000000","message":"I faced some problem while testing. But i don\u0027t remember those instances. If we get exception, for now i can think of, either we have bug or db error.\n\nIf we have db error like connection error, we should stop processing, it does not make sense to continue.\n\nIf we have bug, then this will mask it and i think, it is not good idea to catch general exceptions here.\n\nIf you guys can think of something else then we can continue otherwise i will abandon it.","commit_id":"d71d9476c2437f5df093256d2718979d8d95ec5f"}],"networking_odl/tests/unit/journal/test_full_sync.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c28bc804b13e50d076dafcc8f40c1d74bbab57ed","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    @mock.patch.object(full_sync, \u0027_sync_resources\u0027, side_effect\u003dException)"},{"line_number":138,"context_line":"    @mock.patch.object(full_sync.LOG, \u0027exception\u0027)"},{"line_number":139,"context_line":"    @mock.patch.object(journal, \u0027record\u0027)"},{"line_number":140,"context_line":"    def test_sync_resource_order("},{"line_number":141,"context_line":"            self, record_mock, log_mock, _sync_resources_mock,"},{"line_number":142,"context_line":"            _full_sync_needed_mock, delete_pending_rows_mock):"},{"line_number":143,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_6643cc6d","line":140,"range":{"start_line":140,"start_character":7,"end_line":140,"end_character":33},"updated":"2017-11-16 13:11:31.000000000","message":"I really don\u0027t like this overarching-do-all tests idea...","commit_id":"d71d9476c2437f5df093256d2718979d8d95ec5f"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"38a6d446ad670737d264648f43155afb04ebf3d0","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    @mock.patch.object(full_sync, \u0027_sync_resources\u0027, side_effect\u003dException)"},{"line_number":138,"context_line":"    @mock.patch.object(full_sync.LOG, \u0027exception\u0027)"},{"line_number":139,"context_line":"    @mock.patch.object(journal, \u0027record\u0027)"},{"line_number":140,"context_line":"    def test_sync_resource_order("},{"line_number":141,"context_line":"            self, record_mock, log_mock, _sync_resources_mock,"},{"line_number":142,"context_line":"            _full_sync_needed_mock, delete_pending_rows_mock):"},{"line_number":143,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_110c503f","line":140,"range":{"start_line":140,"start_character":7,"end_line":140,"end_character":33},"in_reply_to":"1f485f77_6643cc6d","updated":"2017-11-16 13:49:57.000000000","message":"I will make a separate test for it.","commit_id":"d71d9476c2437f5df093256d2718979d8d95ec5f"}]}
