)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"a27bb7145f52a653f2bb261035b32814458ce6fd","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Change the flow install orders"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"In current design, fundamental flows will be installed after tenants"},{"line_number":10,"context_line":"related flows, since the former is placed in event queue, the later is"},{"line_number":11,"context_line":"installed immediately in the controller start stage."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa31d9ce_a8b3d708","line":9,"range":{"start_line":9,"start_character":19,"end_line":9,"end_character":54},"updated":"2017-02-15 02:37:30.000000000","message":"What fundamental flows are you mentioning?","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"},{"author":{"_account_id":22060,"name":"jingting","email":"kangjingting@huawei.com","username":"jingting"},"change_message_id":"8f1d9a7ec39370564736b7ceb63695d76001cd7f","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Change the flow install orders"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"In current design, fundamental flows will be installed after tenants"},{"line_number":10,"context_line":"related flows, since the former is placed in event queue, the later is"},{"line_number":11,"context_line":"installed immediately in the controller start stage."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa31d9ce_028037f4","line":9,"range":{"start_line":9,"start_character":19,"end_line":9,"end_character":54},"in_reply_to":"fa31d9ce_a8b3d708","updated":"2017-02-15 08:48:59.000000000","message":"the fundamental flows means the flows installed in feature handler when controller starts","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"}],"dragonflow/controller/df_local_controller.py":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"a27bb7145f52a653f2bb261035b32814458ce6fd","unresolved":false,"context_lines":[{"line_number":121,"context_line":"    def db_sync_loop(self):"},{"line_number":122,"context_line":"        while True:"},{"line_number":123,"context_line":"            time.sleep(1)"},{"line_number":124,"context_line":"            self.nb_api.db_change_callback(None, None, \u0027sync\u0027, \u0027start_sync\u0027)"},{"line_number":125,"context_line":"            if self.nb_api.support_publish_subscribe():"},{"line_number":126,"context_line":"                self.nb_api.register_notification_callback(self)"},{"line_number":127,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_c8280b36","line":124,"range":{"start_line":124,"start_character":64,"end_line":124,"end_character":74},"updated":"2017-02-15 02:37:30.000000000","message":"Why do you need to specify \u0027start_sync\u0027 here?","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"},{"author":{"_account_id":22060,"name":"jingting","email":"kangjingting@huawei.com","username":"jingting"},"change_message_id":"8f1d9a7ec39370564736b7ceb63695d76001cd7f","unresolved":false,"context_lines":[{"line_number":121,"context_line":"    def db_sync_loop(self):"},{"line_number":122,"context_line":"        while True:"},{"line_number":123,"context_line":"            time.sleep(1)"},{"line_number":124,"context_line":"            self.nb_api.db_change_callback(None, None, \u0027sync\u0027, \u0027start_sync\u0027)"},{"line_number":125,"context_line":"            if self.nb_api.support_publish_subscribe():"},{"line_number":126,"context_line":"                self.nb_api.register_notification_callback(self)"},{"line_number":127,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_8207c780","line":124,"range":{"start_line":124,"start_character":64,"end_line":124,"end_character":74},"in_reply_to":"fa31d9ce_c8280b36","updated":"2017-02-15 08:48:59.000000000","message":"I just reuse the sync message to put this event to the queue, and we dont need \u0027start_sync\u0027 now","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"740b444d279c6f75b1126d70fa00e40c5393ad12","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    def db_sync_loop(self):"},{"line_number":122,"context_line":"        while True:"},{"line_number":123,"context_line":"            time.sleep(1)"},{"line_number":124,"context_line":"            self.nb_api.db_change_callback(None, None, \u0027sync\u0027, \u0027start_sync\u0027)"},{"line_number":125,"context_line":"            if self.nb_api.support_publish_subscribe():"},{"line_number":126,"context_line":"                self.nb_api.register_notification_callback(self)"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def run_sync(self, mode\u003dNone):"},{"line_number":129,"context_line":"        if mode \u003d\u003d \u0027full_sync\u0027:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_dcc2b1e8","line":126,"range":{"start_line":123,"start_character":0,"end_line":126,"end_character":64},"updated":"2017-02-14 13:24:46.000000000","message":"After a quick look I think maybe we can drop sync_finished variable altogether, and do db_change_callback(None, None, \u0027sync\u0027, \u0027start_sync\u0027) at the end of run_db_poll?","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"},{"author":{"_account_id":22060,"name":"jingting","email":"kangjingting@huawei.com","username":"jingting"},"change_message_id":"8f1d9a7ec39370564736b7ceb63695d76001cd7f","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    def db_sync_loop(self):"},{"line_number":122,"context_line":"        while True:"},{"line_number":123,"context_line":"            time.sleep(1)"},{"line_number":124,"context_line":"            self.nb_api.db_change_callback(None, None, \u0027sync\u0027, \u0027start_sync\u0027)"},{"line_number":125,"context_line":"            if self.nb_api.support_publish_subscribe():"},{"line_number":126,"context_line":"                self.nb_api.register_notification_callback(self)"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def run_sync(self, mode\u003dNone):"},{"line_number":129,"context_line":"        if mode \u003d\u003d \u0027full_sync\u0027:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_42814f8e","line":126,"range":{"start_line":123,"start_character":0,"end_line":126,"end_character":64},"in_reply_to":"fa31d9ce_dcc2b1e8","updated":"2017-02-15 08:48:59.000000000","message":"Yes","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"a27bb7145f52a653f2bb261035b32814458ce6fd","unresolved":false,"context_lines":[{"line_number":140,"context_line":"    def run_db_poll(self):"},{"line_number":141,"context_line":"        try:"},{"line_number":142,"context_line":"            self.register_chassis()"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"            topics \u003d self.topology.get_subscribed_topics()"},{"line_number":145,"context_line":"            df_db_objects_refresh.sync_local_cache_from_nb_db(topics)"},{"line_number":146,"context_line":"            self.sync_finished \u003d True"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_a88117fd","line":143,"updated":"2017-02-15 02:37:30.000000000","message":"If there is any fundamental flows, can we just add them here?","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"},{"author":{"_account_id":22060,"name":"jingting","email":"kangjingting@huawei.com","username":"jingting"},"change_message_id":"8f1d9a7ec39370564736b7ceb63695d76001cd7f","unresolved":false,"context_lines":[{"line_number":140,"context_line":"    def run_db_poll(self):"},{"line_number":141,"context_line":"        try:"},{"line_number":142,"context_line":"            self.register_chassis()"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"            topics \u003d self.topology.get_subscribed_topics()"},{"line_number":145,"context_line":"            df_db_objects_refresh.sync_local_cache_from_nb_db(topics)"},{"line_number":146,"context_line":"            self.sync_finished \u003d True"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa31d9ce_e2ea4373","line":143,"in_reply_to":"fa31d9ce_a88117fd","updated":"2017-02-15 08:48:59.000000000","message":"I thinks we can\u0027t place fundamental flows here, bucause this method could be invoked by \u0027full_sync\u0027 message from reconnecting to ryu controller.","commit_id":"d6ff932c5f36f281dcc2b2e45229153d3deee9e4"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0fcd2bf6b4ad004100eab62a2f7c7bdb90ed369d","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    def db_sync_loop(self):"},{"line_number":121,"context_line":"        while True:"},{"line_number":122,"context_line":"            time.sleep(1)"},{"line_number":123,"context_line":"            self.nb_api.db_change_callback(None, None, \u0027sync\u0027)"},{"line_number":124,"context_line":"            if self.nb_api.support_publish_subscribe():"},{"line_number":125,"context_line":"                self.nb_api.register_notification_callback(self)"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"da36d5c6_25830e06","line":123,"range":{"start_line":123,"start_character":0,"end_line":123,"end_character":62},"updated":"2017-02-21 10:35:38.000000000","message":"I don\u0027t think you can do this before line 125","commit_id":"d8bd06b52b09d1815faa40f0e560c51acd58c651"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0fcd2bf6b4ad004100eab62a2f7c7bdb90ed369d","unresolved":false,"context_lines":[{"line_number":132,"context_line":"            self.db_store.clear()"},{"line_number":133,"context_line":"        while True:"},{"line_number":134,"context_line":"            time.sleep(1)"},{"line_number":135,"context_line":"            self.run_db_poll()"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    def run_db_poll(self):"},{"line_number":138,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":5,"id":"da36d5c6_a577fe38","line":135,"updated":"2017-02-21 10:35:38.000000000","message":"I think this would cause an infinite loop","commit_id":"d8bd06b52b09d1815faa40f0e560c51acd58c651"}]}
