)]}'
{"devstack/plugin.sh":[{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"ff0acb3881265448181d93f8ab0a0d9057217f4b","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        iniset $NEUTRON_CONF df local_ip \"$HOST_IP\""},{"line_number":90,"context_line":"        iniset $NEUTRON_CONF df tunnel_type \"$TUNNEL_TYPE\""},{"line_number":91,"context_line":"        iniset $NEUTRON_CONF df apps_list \"$DF_APPS_LIST\""},{"line_number":92,"context_line":"        iniset $NEUTRON_CONF df enable_df_pub_sub \"$DF_ENABLE_DF_PUB_SUB\""},{"line_number":93,"context_line":"        iniset $NEUTRON_CONF df is_monitor_tables \"$DF_IS_MONITOR_TABLES\""},{"line_number":94,"context_line":"        iniset $NEUTRON_CONF df monitor_tables \"$DF_MONITOR_TABLES\""},{"line_number":95,"context_line":"        iniset $NEUTRON_CONF df monitor_table_poll_time \"$DF_MONITOR_TABLE_POLL_TIME\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"dae33548_e9bad7bf","line":92,"range":{"start_line":92,"start_character":32,"end_line":92,"end_character":49},"updated":"2016-02-15 08:04:18.000000000","message":"this is already set below","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"793317dbf410b95c14379ebf699fdab2a0d37cc8","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        iniset $NEUTRON_CONF df local_ip \"$HOST_IP\""},{"line_number":90,"context_line":"        iniset $NEUTRON_CONF df tunnel_type \"$TUNNEL_TYPE\""},{"line_number":91,"context_line":"        iniset $NEUTRON_CONF df apps_list \"$DF_APPS_LIST\""},{"line_number":92,"context_line":"        iniset $NEUTRON_CONF df enable_df_pub_sub \"$DF_ENABLE_DF_PUB_SUB\""},{"line_number":93,"context_line":"        iniset $NEUTRON_CONF df is_monitor_tables \"$DF_IS_MONITOR_TABLES\""},{"line_number":94,"context_line":"        iniset $NEUTRON_CONF df monitor_tables \"$DF_MONITOR_TABLES\""},{"line_number":95,"context_line":"        iniset $NEUTRON_CONF df monitor_table_poll_time \"$DF_MONITOR_TABLE_POLL_TIME\""}],"source_content_type":"text/x-sh","patch_set":1,"id":"dae33548_04828252","line":92,"range":{"start_line":92,"start_character":32,"end_line":92,"end_character":49},"in_reply_to":"dae33548_e9bad7bf","updated":"2016-02-15 08:29:06.000000000","message":"Done. Probably missed it in the rebase.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"}],"devstack/settings":[{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"ff0acb3881265448181d93f8ab0a0d9057217f4b","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"export PYTHONPATH\u003d$PYTHONPATH:$DRAGONFLOW_DIR"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DF_ENABLE_DF_PUB_SUB\u003d${DF_ENABLE_DF_PUB_SUB:-\u0027True\u0027}"},{"line_number":23,"context_line":"DF_IS_MONITOR_TABLES\u003d${DF_IS_MONITOR_TABLES:-\"$DF_ENABLE_DF_PUB_SUB\"}"},{"line_number":24,"context_line":"MONITOR_TABLES\u003d${MONITOR_TABLES:-\"chassis\"}"},{"line_number":25,"context_line":"DF_MONITOR_TABLE_POLL_TIME\u003d${DF_MONITOR_TABLE_POLL_TIME:-10}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"dae33548_a9c1ef30","line":22,"range":{"start_line":22,"start_character":0,"end_line":22,"end_character":20},"updated":"2016-02-15 08:04:18.000000000","message":"already set above","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"793317dbf410b95c14379ebf699fdab2a0d37cc8","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"export PYTHONPATH\u003d$PYTHONPATH:$DRAGONFLOW_DIR"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DF_ENABLE_DF_PUB_SUB\u003d${DF_ENABLE_DF_PUB_SUB:-\u0027True\u0027}"},{"line_number":23,"context_line":"DF_IS_MONITOR_TABLES\u003d${DF_IS_MONITOR_TABLES:-\"$DF_ENABLE_DF_PUB_SUB\"}"},{"line_number":24,"context_line":"MONITOR_TABLES\u003d${MONITOR_TABLES:-\"chassis\"}"},{"line_number":25,"context_line":"DF_MONITOR_TABLE_POLL_TIME\u003d${DF_MONITOR_TABLE_POLL_TIME:-10}"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"dae33548_e4867e64","line":22,"range":{"start_line":22,"start_character":0,"end_line":22,"end_character":20},"in_reply_to":"dae33548_a9c1ef30","updated":"2016-02-15 08:29:06.000000000","message":"Done. Probably missed it in the rebase.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"d282b8f5b3922830552c7fdbe5d9577d6b65c4b7","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DF_IS_MONITOR_TABLES\u003d${DF_IS_MONITOR_TABLES:-\"$DF_PUB_SUB\"}"},{"line_number":23,"context_line":"MONITOR_TABLES\u003d${MONITOR_TABLES:-\"chassis\"}"},{"line_number":24,"context_line":"DF_MONITOR_TABLE_POLL_TIME\u003d${DF_MONITOR_TABLE_POLL_TIME:-10}"}],"source_content_type":"application/octet-stream","patch_set":4,"id":"dae33548_134bbc88","line":24,"range":{"start_line":24,"start_character":57,"end_line":24,"end_character":59},"updated":"2016-02-16 06:42:37.000000000","message":"Consider changing it here to 30  as well","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"ec8785e45b0fc825d85bf2eedcfcdfab4d2f23da","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DF_IS_MONITOR_TABLES\u003d${DF_IS_MONITOR_TABLES:-\"$DF_PUB_SUB\"}"},{"line_number":23,"context_line":"MONITOR_TABLES\u003d${MONITOR_TABLES:-\"chassis\"}"},{"line_number":24,"context_line":"DF_MONITOR_TABLE_POLL_TIME\u003d${DF_MONITOR_TABLE_POLL_TIME:-10}"}],"source_content_type":"application/octet-stream","patch_set":4,"id":"dae33548_cef3679d","line":24,"range":{"start_line":24,"start_character":57,"end_line":24,"end_character":59},"in_reply_to":"dae33548_134bbc88","updated":"2016-02-16 07:06:17.000000000","message":"Done","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"}],"dragonflow/common/common_params.py":[{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"b8e00b4c5262b6494446a2ca12d91617add07a23","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                default\u003d[\u0027chassis\u0027],"},{"line_number":59,"context_line":"                help\u003d_(\u0027Monitor these tables for chages in DF database\u0027)),"},{"line_number":60,"context_line":"    cfg.FloatOpt(\u0027monitor_table_poll_time\u0027,"},{"line_number":61,"context_line":"                default\u003d10,"},{"line_number":62,"context_line":"                help\u003d_(\u0027Poll monitored tables every this number of seconds\u0027)),"},{"line_number":63,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_c4341ae0","line":61,"range":{"start_line":61,"start_character":24,"end_line":61,"end_character":26},"updated":"2016-02-15 08:05:42.000000000","message":"Maybe this is too low as a default","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"793317dbf410b95c14379ebf699fdab2a0d37cc8","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                default\u003d[\u0027chassis\u0027],"},{"line_number":59,"context_line":"                help\u003d_(\u0027Monitor these tables for chages in DF database\u0027)),"},{"line_number":60,"context_line":"    cfg.FloatOpt(\u0027monitor_table_poll_time\u0027,"},{"line_number":61,"context_line":"                default\u003d10,"},{"line_number":62,"context_line":"                help\u003d_(\u0027Poll monitored tables every this number of seconds\u0027)),"},{"line_number":63,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_44f3ea0a","line":61,"range":{"start_line":61,"start_character":24,"end_line":61,"end_character":26},"in_reply_to":"dae33548_c4341ae0","updated":"2016-02-15 08:29:06.000000000","message":"Will increase to 30.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"d282b8f5b3922830552c7fdbe5d9577d6b65c4b7","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                default\u003d8866,"},{"line_number":53,"context_line":"                help\u003d_(\u0027Neutron Server Publishers Port\u0027)),"},{"line_number":54,"context_line":"    cfg.BoolOpt(\u0027is_monitor_tables\u0027,"},{"line_number":55,"context_line":"                default\u003dTrue,"},{"line_number":56,"context_line":"                help\u003d_(\u0027Manually monitor Dragonflow database tables\u0027)),"},{"line_number":57,"context_line":"    cfg.ListOpt(\u0027monitor_tables\u0027,"},{"line_number":58,"context_line":"                default\u003d[\u0027chassis\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_533c24e2","line":55,"range":{"start_line":55,"start_character":24,"end_line":55,"end_character":28},"updated":"2016-02-16 06:42:37.000000000","message":"You can set it to be $enable_df_pub_sub","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"ec8785e45b0fc825d85bf2eedcfcdfab4d2f23da","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                default\u003d8866,"},{"line_number":53,"context_line":"                help\u003d_(\u0027Neutron Server Publishers Port\u0027)),"},{"line_number":54,"context_line":"    cfg.BoolOpt(\u0027is_monitor_tables\u0027,"},{"line_number":55,"context_line":"                default\u003dTrue,"},{"line_number":56,"context_line":"                help\u003d_(\u0027Manually monitor Dragonflow database tables\u0027)),"},{"line_number":57,"context_line":"    cfg.ListOpt(\u0027monitor_tables\u0027,"},{"line_number":58,"context_line":"                default\u003d[\u0027chassis\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_aeeee3b1","line":55,"range":{"start_line":55,"start_character":24,"end_line":55,"end_character":28},"in_reply_to":"dae33548_533c24e2","updated":"2016-02-16 07:06:17.000000000","message":"Done","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"}],"dragonflow/db/api_nb.py":[{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"a7c3b0c6d98ccda21505b974d4230635e6cd5fa4","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        table_monitor \u003d TableMonitor("},{"line_number":82,"context_line":"            table_name,"},{"line_number":83,"context_line":"            self.driver,"},{"line_number":84,"context_line":"            self.publisher,"},{"line_number":85,"context_line":"            cfg.CONF.df.monitor_table_poll_time,"},{"line_number":86,"context_line":"        )"},{"line_number":87,"context_line":"        table_monitor.daemonize()"}],"source_content_type":"text/x-python","patch_set":5,"id":"dae33548_8ac5c13d","line":84,"range":{"start_line":84,"start_character":13,"end_line":84,"end_character":26},"updated":"2016-02-16 10:36:05.000000000","message":"I think that we should not use the Plugin publisher.\n\nWe should get a new instance  but do not call daemonize,\n\nIt will create another inproc connection in lazy mode\n\nOn top of that you could introduce the throttling proxy,\n\n(IMO) at the moment the throttling could be implemented in a simple way by random sleep in the Monitor send_event but it is up to you","commit_id":"f3e4c629fe3dac6e4c4f05d9197748d0a4d21c24"}],"dragonflow/db/pub_sub_api.py":[{"author":{"_account_id":2023,"name":"Saggi Mizrahi","email":"ficoos+osreview@gmail.com","username":"ficoos"},"change_message_id":"c0bf97e929ab88eced13df7bc8f63068b2432ba4","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        self.uri_list.remove(topic)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"class DatabasePollingTableMonitorPublisher(object):"},{"line_number":239,"context_line":"    def __init__(self, table_name, driver, publisher, polling_time\u003d10):"},{"line_number":240,"context_line":"        self.driver \u003d driver"},{"line_number":241,"context_line":"        self.publisher \u003d publisher"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_ee1db867","line":238,"range":{"start_line":238,"start_character":6,"end_line":238,"end_character":42},"updated":"2016-02-15 09:22:16.000000000","message":"Why isn\u0027t this just TableMonitor.\nThe fact that it\u0027s doing it through polling is an implementation detail and the fact that is publishing events might be implied from the monitor.\n\nYou could put some of this information in a docstring if you think it\u0027s important.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        self.uri_list.remove(topic)"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"class DatabasePollingTableMonitorPublisher(object):"},{"line_number":239,"context_line":"    def __init__(self, table_name, driver, publisher, polling_time\u003d10):"},{"line_number":240,"context_line":"        self.driver \u003d driver"},{"line_number":241,"context_line":"        self.publisher \u003d publisher"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_42b0f5f4","line":238,"range":{"start_line":238,"start_character":6,"end_line":238,"end_character":42},"in_reply_to":"dae33548_ee1db867","updated":"2016-02-16 05:52:12.000000000","message":"Done","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"8c26f0272aa5c18dc47b90cc982b8f16b04ca671","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        self.driver \u003d driver"},{"line_number":241,"context_line":"        self.publisher \u003d publisher"},{"line_number":242,"context_line":"        self.polling_time \u003d polling_time"},{"line_number":243,"context_line":"        self.daemon \u003d df_utils.DFDaemon()"},{"line_number":244,"context_line":"        self.table_name \u003d table_name"},{"line_number":245,"context_line":"        self.cache \u003d {}"},{"line_number":246,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_5803ce73","line":243,"updated":"2016-02-15 08:56:51.000000000","message":"We want to use the DB driver publish/subscribe capability, probably with timeout and regular polling process like you did, but we can lower the polling time when we use it","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        self.driver \u003d driver"},{"line_number":241,"context_line":"        self.publisher \u003d publisher"},{"line_number":242,"context_line":"        self.polling_time \u003d polling_time"},{"line_number":243,"context_line":"        self.daemon \u003d df_utils.DFDaemon()"},{"line_number":244,"context_line":"        self.table_name \u003d table_name"},{"line_number":245,"context_line":"        self.cache \u003d {}"},{"line_number":246,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_fb761c3d","line":243,"in_reply_to":"dae33548_5803ce73","updated":"2016-02-16 05:52:12.000000000","message":"Yes. This should be added when the support for the DB-provided pub/sub support is added.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":2023,"name":"Saggi Mizrahi","email":"ficoos+osreview@gmail.com","username":"ficoos"},"change_message_id":"c0bf97e929ab88eced13df7bc8f63068b2432ba4","unresolved":false,"context_lines":[{"line_number":237,"context_line":""},{"line_number":238,"context_line":"class DatabasePollingTableMonitorPublisher(object):"},{"line_number":239,"context_line":"    def __init__(self, table_name, driver, publisher, polling_time\u003d10):"},{"line_number":240,"context_line":"        self.driver \u003d driver"},{"line_number":241,"context_line":"        self.publisher \u003d publisher"},{"line_number":242,"context_line":"        self.polling_time \u003d polling_time"},{"line_number":243,"context_line":"        self.daemon \u003d df_utils.DFDaemon()"},{"line_number":244,"context_line":"        self.table_name \u003d table_name"},{"line_number":245,"context_line":"        self.cache \u003d {}"},{"line_number":246,"context_line":"        pass"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def daemonize(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_fb81fc90","line":245,"range":{"start_line":240,"start_character":8,"end_line":245,"end_character":23},"updated":"2016-02-15 09:22:16.000000000","message":"are all of these really public?","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":237,"context_line":""},{"line_number":238,"context_line":"class DatabasePollingTableMonitorPublisher(object):"},{"line_number":239,"context_line":"    def __init__(self, table_name, driver, publisher, polling_time\u003d10):"},{"line_number":240,"context_line":"        self.driver \u003d driver"},{"line_number":241,"context_line":"        self.publisher \u003d publisher"},{"line_number":242,"context_line":"        self.polling_time \u003d polling_time"},{"line_number":243,"context_line":"        self.daemon \u003d df_utils.DFDaemon()"},{"line_number":244,"context_line":"        self.table_name \u003d table_name"},{"line_number":245,"context_line":"        self.cache \u003d {}"},{"line_number":246,"context_line":"        pass"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def daemonize(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_4287550f","line":245,"range":{"start_line":240,"start_character":8,"end_line":245,"end_character":23},"in_reply_to":"dae33548_fb81fc90","updated":"2016-02-16 05:52:12.000000000","message":"Done","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"8c26f0272aa5c18dc47b90cc982b8f16b04ca671","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        pass"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def daemonize(self):"},{"line_number":249,"context_line":"        return self.daemon.daemonize(self.run)"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"    def stop(self):"},{"line_number":252,"context_line":"        return self.daemon.stop()"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_f8c46241","line":249,"updated":"2016-02-15 08:56:51.000000000","message":"This thread is going to run for every Neutron worker/thread while we really need only one thread (other wise we keep this cache few times and send events few times for every worker","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        pass"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def daemonize(self):"},{"line_number":249,"context_line":"        return self.daemon.daemonize(self.run)"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"    def stop(self):"},{"line_number":252,"context_line":"        return self.daemon.stop()"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_0819c788","line":249,"in_reply_to":"dae33548_f8c46241","updated":"2016-02-16 05:52:12.000000000","message":"True. Avoiding this behaviour is an important optimisation. However I don\u0027t feel it\u0027s imperative to be fixed in this patch. The daemon implementation can easily be replaced later by an implementation that verifies the daemon is unique across the server (e.g. forks a single process, and only if another such process doesn\u0027t already exist).","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":2023,"name":"Saggi Mizrahi","email":"ficoos+osreview@gmail.com","username":"ficoos"},"change_message_id":"c0bf97e929ab88eced13df7bc8f63068b2432ba4","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        return self.daemon.stop()"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def run(self):"},{"line_number":255,"context_line":"        eventlet.sleep(0)"},{"line_number":256,"context_line":"        while True:"},{"line_number":257,"context_line":"            try:"},{"line_number":258,"context_line":"                eventlet.sleep(self.polling_time)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_3b0524c2","line":255,"range":{"start_line":255,"start_character":8,"end_line":255,"end_character":25},"updated":"2016-02-15 09:22:16.000000000","message":"I assume this is on purpose so you better comment in why you need to sleep(0) and than immediately sleep(self.polling_time)","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        return self.daemon.stop()"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    def run(self):"},{"line_number":255,"context_line":"        eventlet.sleep(0)"},{"line_number":256,"context_line":"        while True:"},{"line_number":257,"context_line":"            try:"},{"line_number":258,"context_line":"                eventlet.sleep(self.polling_time)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_4813cf66","line":255,"range":{"start_line":255,"start_character":8,"end_line":255,"end_character":25},"in_reply_to":"dae33548_3b0524c2","updated":"2016-02-16 05:52:12.000000000","message":"Removed. The polling sleep is the first thing in the loop anyway.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":2023,"name":"Saggi Mizrahi","email":"ficoos+osreview@gmail.com","username":"ficoos"},"change_message_id":"c0bf97e929ab88eced13df7bc8f63068b2432ba4","unresolved":false,"context_lines":[{"line_number":257,"context_line":"            try:"},{"line_number":258,"context_line":"                eventlet.sleep(self.polling_time)"},{"line_number":259,"context_line":"                # NOTE(oanson) Make sure we get a copy"},{"line_number":260,"context_line":"                all_entry_keys \u003d list("},{"line_number":261,"context_line":"                    self.driver.get_all_keys(self.table_name))"},{"line_number":262,"context_line":"                new_cache \u003d {}"},{"line_number":263,"context_line":"                for entry_key in all_entry_keys:"},{"line_number":264,"context_line":"                    entry_value \u003d self.driver.get_key("}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_5be2a804","line":261,"range":{"start_line":260,"start_character":33,"end_line":261,"end_character":62},"updated":"2016-02-15 09:22:16.000000000","message":"You turn it into a list just to iterate on it. Why not just iterate on whatever comes back for this function?","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":257,"context_line":"            try:"},{"line_number":258,"context_line":"                eventlet.sleep(self.polling_time)"},{"line_number":259,"context_line":"                # NOTE(oanson) Make sure we get a copy"},{"line_number":260,"context_line":"                all_entry_keys \u003d list("},{"line_number":261,"context_line":"                    self.driver.get_all_keys(self.table_name))"},{"line_number":262,"context_line":"                new_cache \u003d {}"},{"line_number":263,"context_line":"                for entry_key in all_entry_keys:"},{"line_number":264,"context_line":"                    entry_value \u003d self.driver.get_key("}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_880dd740","line":261,"range":{"start_line":260,"start_character":33,"end_line":261,"end_character":62},"in_reply_to":"dae33548_5be2a804","updated":"2016-02-16 05:52:12.000000000","message":"Removed. I don\u0027t need a copy, either.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"ff0acb3881265448181d93f8ab0a0d9057217f4b","unresolved":false,"context_lines":[{"line_number":268,"context_line":"                        if self.cache[entry_key] !\u003d entry_value:"},{"line_number":269,"context_line":"                            self._send_event(\u0027update\u0027, entry_key, entry_value)"},{"line_number":270,"context_line":"                        del self.cache[entry_key]"},{"line_number":271,"context_line":"                    except KeyError:"},{"line_number":272,"context_line":"                        self._send_event(\u0027create\u0027, entry_key, entry_value)"},{"line_number":273,"context_line":"                    new_cache[entry_key] \u003d entry_value"},{"line_number":274,"context_line":"                for entry_key in self.cache:"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_8977cbd3","line":271,"range":{"start_line":271,"start_character":20,"end_line":271,"end_character":36},"updated":"2016-02-15 08:04:18.000000000","message":"In my opinion you should not use Exceptions For Flow Control\n\nI would use \n\nif entry_key in cache","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"793317dbf410b95c14379ebf699fdab2a0d37cc8","unresolved":false,"context_lines":[{"line_number":268,"context_line":"                        if self.cache[entry_key] !\u003d entry_value:"},{"line_number":269,"context_line":"                            self._send_event(\u0027update\u0027, entry_key, entry_value)"},{"line_number":270,"context_line":"                        del self.cache[entry_key]"},{"line_number":271,"context_line":"                    except KeyError:"},{"line_number":272,"context_line":"                        self._send_event(\u0027create\u0027, entry_key, entry_value)"},{"line_number":273,"context_line":"                    new_cache[entry_key] \u003d entry_value"},{"line_number":274,"context_line":"                for entry_key in self.cache:"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_44e80a7d","line":271,"range":{"start_line":271,"start_character":20,"end_line":271,"end_character":36},"in_reply_to":"dae33548_8977cbd3","updated":"2016-02-15 08:29:06.000000000","message":"Done","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":2023,"name":"Saggi Mizrahi","email":"ficoos+osreview@gmail.com","username":"ficoos"},"change_message_id":"c0bf97e929ab88eced13df7bc8f63068b2432ba4","unresolved":false,"context_lines":[{"line_number":287,"context_line":"            action,"},{"line_number":288,"context_line":"            entry_value,"},{"line_number":289,"context_line":"        )"},{"line_number":290,"context_line":"        self.publisher.send_event(db_update)"},{"line_number":291,"context_line":"        self._sleep_randomly()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _sleep_randomly(self, sleep_time\u003d0.5):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_db9078ef","line":290,"range":{"start_line":290,"start_character":13,"end_line":290,"end_character":22},"updated":"2016-02-15 09:22:16.000000000","message":"I think throttling is the publishers responsibility and not the the algorithm.\n\nMaybe have a throttling publisher proxy that wraps a publisher and provides throttling features.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":287,"context_line":"            action,"},{"line_number":288,"context_line":"            entry_value,"},{"line_number":289,"context_line":"        )"},{"line_number":290,"context_line":"        self.publisher.send_event(db_update)"},{"line_number":291,"context_line":"        self._sleep_randomly()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _sleep_randomly(self, sleep_time\u003d0.5):"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_a8025b09","line":290,"range":{"start_line":290,"start_character":13,"end_line":290,"end_character":22},"in_reply_to":"dae33548_db9078ef","updated":"2016-02-16 05:52:12.000000000","message":"Agreed. Removed from here. Will check if pub/sub API has an option for throttling and bulk updates.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":2023,"name":"Saggi Mizrahi","email":"ficoos+osreview@gmail.com","username":"ficoos"},"change_message_id":"c0bf97e929ab88eced13df7bc8f63068b2432ba4","unresolved":false,"context_lines":[{"line_number":288,"context_line":"            entry_value,"},{"line_number":289,"context_line":"        )"},{"line_number":290,"context_line":"        self.publisher.send_event(db_update)"},{"line_number":291,"context_line":"        self._sleep_randomly()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _sleep_randomly(self, sleep_time\u003d0.5):"},{"line_number":294,"context_line":"        sleep_time \u003d random.uniform(0, sleep_time)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_7b832ccd","line":291,"range":{"start_line":291,"start_character":8,"end_line":291,"end_character":30},"updated":"2016-02-15 09:22:16.000000000","message":"I think this merits a comment.\n\nAlso, do you really want to sleep randomly? don\u0027t you just want to either space messages or make sure no more than X are sent in bulk.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":288,"context_line":"            entry_value,"},{"line_number":289,"context_line":"        )"},{"line_number":290,"context_line":"        self.publisher.send_event(db_update)"},{"line_number":291,"context_line":"        self._sleep_randomly()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _sleep_randomly(self, sleep_time\u003d0.5):"},{"line_number":294,"context_line":"        sleep_time \u003d random.uniform(0, sleep_time)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_330d2038","line":291,"range":{"start_line":291,"start_character":8,"end_line":291,"end_character":30},"in_reply_to":"dae33548_7b832ccd","updated":"2016-02-16 05:52:12.000000000","message":"See above.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":2023,"name":"Saggi Mizrahi","email":"ficoos+osreview@gmail.com","username":"ficoos"},"change_message_id":"c0bf97e929ab88eced13df7bc8f63068b2432ba4","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        self.publisher.send_event(db_update)"},{"line_number":291,"context_line":"        self._sleep_randomly()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _sleep_randomly(self, sleep_time\u003d0.5):"},{"line_number":294,"context_line":"        sleep_time \u003d random.uniform(0, sleep_time)"},{"line_number":295,"context_line":"        eventlet.sleep(sleep_time)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_fb49fcd1","line":293,"range":{"start_line":293,"start_character":30,"end_line":293,"end_character":40},"updated":"2016-02-15 09:22:16.000000000","message":"max_sleep_time","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"366ee403ceac2c9e95b665e4656d2c5b5533655e","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        self.publisher.send_event(db_update)"},{"line_number":291,"context_line":"        self._sleep_randomly()"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _sleep_randomly(self, sleep_time\u003d0.5):"},{"line_number":294,"context_line":"        sleep_time \u003d random.uniform(0, sleep_time)"},{"line_number":295,"context_line":"        eventlet.sleep(sleep_time)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_730fa82e","line":293,"range":{"start_line":293,"start_character":30,"end_line":293,"end_character":40},"in_reply_to":"dae33548_fb49fcd1","updated":"2016-02-16 05:52:12.000000000","message":"See above.","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"d282b8f5b3922830552c7fdbe5d9577d6b65c4b7","unresolved":false,"context_lines":[{"line_number":235,"context_line":""},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"class TableMonitor(object):"},{"line_number":238,"context_line":"    def __init__(self, table_name, driver, publisher, polling_time\u003d10):"},{"line_number":239,"context_line":"        self._driver \u003d driver"},{"line_number":240,"context_line":"        self._publisher \u003d publisher"},{"line_number":241,"context_line":"        self._polling_time \u003d polling_time"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_4e6f57c5","line":238,"range":{"start_line":238,"start_character":16,"end_line":238,"end_character":71},"updated":"2016-02-16 06:42:37.000000000","message":"I think that we should add topic\u003d here in the initialization","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"ec8785e45b0fc825d85bf2eedcfcdfab4d2f23da","unresolved":false,"context_lines":[{"line_number":235,"context_line":""},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"class TableMonitor(object):"},{"line_number":238,"context_line":"    def __init__(self, table_name, driver, publisher, polling_time\u003d10):"},{"line_number":239,"context_line":"        self._driver \u003d driver"},{"line_number":240,"context_line":"        self._publisher \u003d publisher"},{"line_number":241,"context_line":"        self._polling_time \u003d polling_time"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_ee7c6bed","line":238,"range":{"start_line":238,"start_character":16,"end_line":238,"end_character":71},"in_reply_to":"dae33548_4e6f57c5","updated":"2016-02-16 07:06:17.000000000","message":"I want to add topic support as a different patch. Topic should be the tenant id as it appears in the modified (created/updated/deleted) record (field tenant_id, or one provided). A default topic in case the record doesn\u0027t have tenant_id, or an overriding topic, will be added as well.","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"d282b8f5b3922830552c7fdbe5d9577d6b65c4b7","unresolved":false,"context_lines":[{"line_number":253,"context_line":"        cache \u003d {}"},{"line_number":254,"context_line":"        while True:"},{"line_number":255,"context_line":"            try:"},{"line_number":256,"context_line":"                eventlet.sleep(self._polling_time)"},{"line_number":257,"context_line":"                cache \u003d self._update_cache(cache)"},{"line_number":258,"context_line":"            except Exception as e:"},{"line_number":259,"context_line":"                LOG.warning(_LW(\"Error when polling table {}: {}\").format("}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_ae30a3e9","line":256,"range":{"start_line":256,"start_character":16,"end_line":256,"end_character":24},"updated":"2016-02-16 06:42:37.000000000","message":"I think that we should sleep only if we actually sent an even.","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"ec8785e45b0fc825d85bf2eedcfcdfab4d2f23da","unresolved":false,"context_lines":[{"line_number":253,"context_line":"        cache \u003d {}"},{"line_number":254,"context_line":"        while True:"},{"line_number":255,"context_line":"            try:"},{"line_number":256,"context_line":"                eventlet.sleep(self._polling_time)"},{"line_number":257,"context_line":"                cache \u003d self._update_cache(cache)"},{"line_number":258,"context_line":"            except Exception as e:"},{"line_number":259,"context_line":"                LOG.warning(_LW(\"Error when polling table {}: {}\").format("}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_eecaab19","line":256,"range":{"start_line":256,"start_character":16,"end_line":256,"end_character":24},"in_reply_to":"dae33548_ae30a3e9","updated":"2016-02-16 07:06:17.000000000","message":"This will cause a tight-loop with no sleep until a change is detected. And even then, after _polling_time, the tight-loop will recur.","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"d282b8f5b3922830552c7fdbe5d9577d6b65c4b7","unresolved":false,"context_lines":[{"line_number":261,"context_line":"                    repr(e)"},{"line_number":262,"context_line":"                ))"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"    def _update_cache(self, old_cache):"},{"line_number":265,"context_line":"        \"\"\"Create a new cache and send events for changes from the old cache\"\"\""},{"line_number":266,"context_line":"        new_cache \u003d {}"},{"line_number":267,"context_line":"        for entry_key in self._driver.get_all_keys(self._table_name):"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_6e3dfbba","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":21},"updated":"2016-02-16 06:42:37.000000000","message":"Consider changing this func to return BOOL","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"ec8785e45b0fc825d85bf2eedcfcdfab4d2f23da","unresolved":false,"context_lines":[{"line_number":261,"context_line":"                    repr(e)"},{"line_number":262,"context_line":"                ))"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"    def _update_cache(self, old_cache):"},{"line_number":265,"context_line":"        \"\"\"Create a new cache and send events for changes from the old cache\"\"\""},{"line_number":266,"context_line":"        new_cache \u003d {}"},{"line_number":267,"context_line":"        for entry_key in self._driver.get_all_keys(self._table_name):"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_cefd273c","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":21},"in_reply_to":"dae33548_6e3dfbba","updated":"2016-02-16 07:06:17.000000000","message":"This method returns the new cache. Since this is a private method, and the caller doesn\u0027t care whether a change actually happened as long as the cache is updated, I think this is better.","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"d282b8f5b3922830552c7fdbe5d9577d6b65c4b7","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            action,"},{"line_number":286,"context_line":"            entry_value,"},{"line_number":287,"context_line":"        )"},{"line_number":288,"context_line":"        self._publisher.send_event(db_update)"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_8e695fc1","line":288,"range":{"start_line":288,"start_character":35,"end_line":288,"end_character":44},"updated":"2016-02-16 06:42:37.000000000","message":"we should send it with topic","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"ec8785e45b0fc825d85bf2eedcfcdfab4d2f23da","unresolved":false,"context_lines":[{"line_number":285,"context_line":"            action,"},{"line_number":286,"context_line":"            entry_value,"},{"line_number":287,"context_line":"        )"},{"line_number":288,"context_line":"        self._publisher.send_event(db_update)"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_6e85fbab","line":288,"range":{"start_line":288,"start_character":35,"end_line":288,"end_character":44},"in_reply_to":"dae33548_8e695fc1","updated":"2016-02-16 07:06:17.000000000","message":"See above re: topics.","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"a7c3b0c6d98ccda21505b974d4230635e6cd5fa4","unresolved":false,"context_lines":[{"line_number":278,"context_line":"            self._send_event(\u0027delete\u0027, entry_key, None)"},{"line_number":279,"context_line":"        return new_cache"},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"    def _send_event(self, action, entry_id, entry_value):"},{"line_number":282,"context_line":"        db_update \u003d db_common.DbUpdate("},{"line_number":283,"context_line":"            self._table_name,"},{"line_number":284,"context_line":"            entry_id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"dae33548_4ab0d943","line":281,"range":{"start_line":281,"start_character":8,"end_line":281,"end_character":19},"updated":"2016-02-16 10:36:05.000000000","message":"I understand that you want a throttling publisher proxy ?\ninstead of the sleep, \n\nremember that you are using the same publisher as the Neutron Plugin that we do not want throttling on that path.\n\nI think that what you need to do is Instantiate a new Publisher but do not daemonise it.\n\nYou could have a wrapper throttling publisher On top of it with the rate per second","commit_id":"f3e4c629fe3dac6e4c4f05d9197748d0a4d21c24"}],"dragonflow/tests/fullstack/test_pub_sub.py":[{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"ff0acb3881265448181d93f8ab0a0d9057217f4b","unresolved":false,"context_lines":[{"line_number":261,"context_line":"    def _create_publisher(self):"},{"line_number":262,"context_line":"        publisher \u003d self.pub_sub_driver.get_publisher()"},{"line_number":263,"context_line":"        endpoint \u003d \u0027*:%s\u0027 % 6666"},{"line_number":264,"context_line":"        cfg.CONF.df.publisher_port \u003d 6666"},{"line_number":265,"context_line":"        publisher.initialize("},{"line_number":266,"context_line":"            multiprocessing_queue\u003dFalse,"},{"line_number":267,"context_line":"            endpoint\u003dendpoint,"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_240ea634","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":35},"updated":"2016-02-15 08:04:18.000000000","message":"i would set this in the setup \n\nYou assume that create publisher is called first","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"793317dbf410b95c14379ebf699fdab2a0d37cc8","unresolved":false,"context_lines":[{"line_number":261,"context_line":"    def _create_publisher(self):"},{"line_number":262,"context_line":"        publisher \u003d self.pub_sub_driver.get_publisher()"},{"line_number":263,"context_line":"        endpoint \u003d \u0027*:%s\u0027 % 6666"},{"line_number":264,"context_line":"        cfg.CONF.df.publisher_port \u003d 6666"},{"line_number":265,"context_line":"        publisher.initialize("},{"line_number":266,"context_line":"            multiprocessing_queue\u003dFalse,"},{"line_number":267,"context_line":"            endpoint\u003dendpoint,"}],"source_content_type":"text/x-python","patch_set":1,"id":"dae33548_84b0528d","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":35},"in_reply_to":"dae33548_240ea634","updated":"2016-02-15 08:29:06.000000000","message":"Done","commit_id":"42beef6e1a2b400e72e2324b9f43fd423a1e61d1"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"d282b8f5b3922830552c7fdbe5d9577d6b65c4b7","unresolved":false,"context_lines":[{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    def _create_publisher(self):"},{"line_number":263,"context_line":"        publisher \u003d self.pub_sub_driver.get_publisher()"},{"line_number":264,"context_line":"        endpoint \u003d \u0027*:%s\u0027 % 6666"},{"line_number":265,"context_line":"        publisher.initialize("},{"line_number":266,"context_line":"            multiprocessing_queue\u003dFalse,"},{"line_number":267,"context_line":"            endpoint\u003dendpoint,"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_4ea63711","line":264,"range":{"start_line":264,"start_character":28,"end_line":264,"end_character":32},"updated":"2016-02-16 06:42:37.000000000","message":"use         cfg.CONF.df.publisher_port","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"ec8785e45b0fc825d85bf2eedcfcdfab4d2f23da","unresolved":false,"context_lines":[{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    def _create_publisher(self):"},{"line_number":263,"context_line":"        publisher \u003d self.pub_sub_driver.get_publisher()"},{"line_number":264,"context_line":"        endpoint \u003d \u0027*:%s\u0027 % 6666"},{"line_number":265,"context_line":"        publisher.initialize("},{"line_number":266,"context_line":"            multiprocessing_queue\u003dFalse,"},{"line_number":267,"context_line":"            endpoint\u003dendpoint,"}],"source_content_type":"text/x-python","patch_set":4,"id":"dae33548_ae8f03cb","line":264,"range":{"start_line":264,"start_character":28,"end_line":264,"end_character":32},"in_reply_to":"dae33548_4ea63711","updated":"2016-02-16 07:06:17.000000000","message":"Done","commit_id":"2a604b138cf3c7a428d0ad248771a40f70fc9fee"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"a31d6be1b1ed21af1e8e58b6bdc03805c6822707","unresolved":false,"context_lines":[{"line_number":246,"context_line":"            cfg.CONF.df.pub_sub_driver,"},{"line_number":247,"context_line":"            df_utils.DF_PUBSUB_DRIVER_NAMESPACE"},{"line_number":248,"context_line":"        )"},{"line_number":249,"context_line":"        cfg.CONF.df.publisher_port \u003d 6666"},{"line_number":250,"context_line":"        self.namespace \u003d Namespace()"},{"line_number":251,"context_line":"        self.namespace.events \u003d []"},{"line_number":252,"context_line":"        self.publisher \u003d self._create_publisher()"}],"source_content_type":"text/x-python","patch_set":5,"id":"dae33548_6a8f9dcc","line":249,"range":{"start_line":249,"start_character":37,"end_line":249,"end_character":41},"updated":"2016-02-16 10:40:36.000000000","message":"Use a different Port  Number, 6666 and  7777 are used in the other pub_sub test that are being run in parallel  (we get ZMQ bind error port in use )","commit_id":"f3e4c629fe3dac6e4c4f05d9197748d0a4d21c24"}]}
