)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"1936f12917b52710e35f1be675237853f7576f45","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5afe65bd_b05b4354","line":11,"updated":"2015-06-02 08:06:53.000000000","message":"I wouldn\u0027t agree with \"never\" for any methods in FixedIntervalLoopingCall. Did you mean 2 particular cases - l3 and dhcp rescheduling?","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a27fdfce491d827c651c2a4364573d720ab9a96d","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5afe65bd_e87782d2","line":11,"in_reply_to":"5afe65bd_b05b4354","updated":"2015-06-02 14:38:53.000000000","message":"yes- i\u0027ll fix that","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b52158673feb3a465d9fab49232873a3d7deeecd","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"},{"line_number":15,"context_line":"Closes-Bug: #1458119"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_c852e812","line":12,"updated":"2015-05-31 13:42:17.000000000","message":"if so, why don\u0027t you fix it in FixedIntervalLoopingCall?","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"abffdc7c231129e771bd207f635b5d2ff6c53ff0","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"},{"line_number":15,"context_line":"Closes-Bug: #1458119"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_6c4f8192","line":12,"in_reply_to":"7a016987_2af16c95","updated":"2015-06-01 07:46:22.000000000","message":"I am not saying we should always use a SafeFixedIntervalLoopingCall but only when needed.","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"044ef1fc8e0e73b33d5a792bcfd83276ae3e10e2","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"},{"line_number":15,"context_line":"Closes-Bug: #1458119"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_2af16c95","line":12,"in_reply_to":"7a016987_4af708d3","updated":"2015-06-01 06:26:57.000000000","message":"I can\u0027t agree with that. This is about code design and not \"safety\". Generic code, that handles looping calls should should be able to stop the loop - and it does it if inner method throws an exception.\nIt\u0027s not just passing it through or accidentally interrupts, it catches it, logs it and deliberately stops the loop.\nAnd that puts responsibility to catch exceptions on the inner method, which is good, because it allows flexible behavior defined by more specific code.\n\nSome other places in code which use FixedIntervalLoopingCall might need to be fixed too.","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"bc773025c5b5bc74b9177bfc1e9f78b0060fe773","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"},{"line_number":15,"context_line":"Closes-Bug: #1458119"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5afe65bd_8eecbf90","line":12,"in_reply_to":"7a016987_6c4f8192","updated":"2015-06-01 16:55:53.000000000","message":"The problem is that whether we\u0027re changing FixedIntervalLoopingCall or producing a new class - it goes to oslo, a common library.\nThen the fix becomes impossible to backport.\nSome refactoring indeed might make sense (like adding a flag to FixedIntervalLoopingCall telling whether to stop on exception), but I\u0027d prefer to do in having backportable fix first,","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"863dc68c03f6076b8ea07219779f8c04011b88dc","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"},{"line_number":15,"context_line":"Closes-Bug: #1458119"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_4af708d3","line":12,"in_reply_to":"7a016987_6f28969a","updated":"2015-06-01 06:01:38.000000000","message":"@enikanorov: indeed but it seems safer tocatch the exceptions on the caller side instead of the called side, perhaps we could define a SafeFixedIntervalLoopingCall?","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ff3c5ef974584e8e7a3b39830abd5150dc8cbd07","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"},{"line_number":15,"context_line":"Closes-Bug: #1458119"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_6a752462","line":12,"in_reply_to":"7a016987_6f28969a","updated":"2015-06-01 05:57:23.000000000","message":"i read the bug and the commit message but it isn\u0027t clear to me why this needs to be a broad catch, or why other uses of FixedIntervalLoopingCall don\u0027t need the same.","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"46485c1f0c21f3132b761e15060ff56d22b1f015","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Unlike other places where it might make sense to catch specific"},{"line_number":10,"context_line":"exceptions, methods that are used in FixedIntervalLoopingCall"},{"line_number":11,"context_line":"should never allow exceptions to leak to calling method and"},{"line_number":12,"context_line":"interrupt looping call."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703"},{"line_number":15,"context_line":"Closes-Bug: #1458119"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_6f28969a","line":12,"in_reply_to":"7a016987_c852e812","updated":"2015-06-01 05:17:56.000000000","message":"Because there\u0027s nothing wrong with FixedIntervalLoopingCall,\nit works as designed and design is correct.","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"}],"neutron/db/agentschedulers_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"1936f12917b52710e35f1be675237853f7576f45","unresolved":false,"context_lines":[{"line_number":257,"context_line":""},{"line_number":258,"context_line":"        Reschedule them if configured so."},{"line_number":259,"context_line":"        \"\"\""},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"        agent_dead_limit \u003d self.agent_dead_limit_seconds()"},{"line_number":262,"context_line":"        self.wait_down_agents(\u0027DHCP\u0027, agent_dead_limit)"},{"line_number":263,"context_line":"        cutoff \u003d self.get_cutoff_time(agent_dead_limit)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_6b315aec","line":260,"updated":"2015-06-02 08:06:53.000000000","message":"261 - 271 are not covered with try block, are you sure this will never raise any axception?","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a27fdfce491d827c651c2a4364573d720ab9a96d","unresolved":false,"context_lines":[{"line_number":257,"context_line":""},{"line_number":258,"context_line":"        Reschedule them if configured so."},{"line_number":259,"context_line":"        \"\"\""},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"        agent_dead_limit \u003d self.agent_dead_limit_seconds()"},{"line_number":262,"context_line":"        self.wait_down_agents(\u0027DHCP\u0027, agent_dead_limit)"},{"line_number":263,"context_line":"        cutoff \u003d self.get_cutoff_time(agent_dead_limit)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_8bb6c83b","line":260,"in_reply_to":"5afe65bd_6b315aec","updated":"2015-06-02 14:38:53.000000000","message":"this code is not throwing by design, so it\u0027s safe to leave it outside.","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"}],"neutron/db/l3_agentschedulers_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"1936f12917b52710e35f1be675237853f7576f45","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self.reschedule_routers_from_down_agents)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def reschedule_routers_from_down_agents(self):"},{"line_number":86,"context_line":"        \"\"\"Reschedule routers from down l3 agents if admin state is up.\"\"\""},{"line_number":87,"context_line":"        agent_dead_limit \u003d self.agent_dead_limit_seconds()"},{"line_number":88,"context_line":"        self.wait_down_agents(\u0027L3\u0027, agent_dead_limit)"},{"line_number":89,"context_line":"        cutoff \u003d self.get_cutoff_time(agent_dead_limit)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_0b578603","line":86,"updated":"2015-06-02 08:06:53.000000000","message":"ditto","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"}],"neutron/tests/unit/plugins/openvswitch/test_agent_scheduler.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"1936f12917b52710e35f1be675237853f7576f45","unresolved":false,"context_lines":[{"line_number":684,"context_line":"                    ValueError(\u0027this raises\u0027),"},{"line_number":685,"context_line":"                    Exception()"},{"line_number":686,"context_line":"                ]).start()"},{"line_number":687,"context_line":"            # these first three should not raise any errors"},{"line_number":688,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # DBError"},{"line_number":689,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # RemoteError"},{"line_number":690,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # schedule err"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_cb684ebd","line":687,"updated":"2015-06-02 08:06:53.000000000","message":"this should be updated.","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a27fdfce491d827c651c2a4364573d720ab9a96d","unresolved":false,"context_lines":[{"line_number":684,"context_line":"                    ValueError(\u0027this raises\u0027),"},{"line_number":685,"context_line":"                    Exception()"},{"line_number":686,"context_line":"                ]).start()"},{"line_number":687,"context_line":"            # these first three should not raise any errors"},{"line_number":688,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # DBError"},{"line_number":689,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # RemoteError"},{"line_number":690,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # schedule err"}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_4bd57041","line":687,"in_reply_to":"5afe65bd_cb684ebd","updated":"2015-06-02 14:38:53.000000000","message":"Done","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"1936f12917b52710e35f1be675237853f7576f45","unresolved":false,"context_lines":[{"line_number":689,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # RemoteError"},{"line_number":690,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # schedule err"},{"line_number":691,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # Value error"},{"line_number":692,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)"},{"line_number":693,"context_line":""},{"line_number":694,"context_line":"    def test_router_rescheduler_iterates_after_reschedule_failure(self):"},{"line_number":695,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_2ba002f4","line":692,"updated":"2015-06-02 08:06:53.000000000","message":"nit: comment here as well?","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a27fdfce491d827c651c2a4364573d720ab9a96d","unresolved":false,"context_lines":[{"line_number":689,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # RemoteError"},{"line_number":690,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # schedule err"},{"line_number":691,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)  # Value error"},{"line_number":692,"context_line":"            self._take_down_agent_and_run_reschedule(L3_HOSTA)"},{"line_number":693,"context_line":""},{"line_number":694,"context_line":"    def test_router_rescheduler_iterates_after_reschedule_failure(self):"},{"line_number":695,"context_line":"        plugin \u003d manager.NeutronManager.get_service_plugins().get("}],"source_content_type":"text/x-python","patch_set":1,"id":"5afe65bd_2bca34a2","line":692,"in_reply_to":"5afe65bd_2ba002f4","updated":"2015-06-02 14:38:53.000000000","message":"Done","commit_id":"5dd0e89b60c8f31eaea8418ea59db3c9d3087603"}]}
