)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"6e2dc7048d7b8e94b9526d013e53c9082c163341","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Remove DBDuplicateEntry columns check"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"DBDuplicateEntry exception does not provide columns. Remove this"},{"line_number":10,"context_line":"check in neutron/db/agents_db.py"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I00d7b7c64de2912dda9fa57c08d90b1ef1c3aed7"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5a890539_83eddbf1","line":9,"updated":"2014-11-13 15:18:59.000000000","message":"Need to clarify that DBDuplicateEntry exception does not provide columns for db2.   I assume that it does provide columns for other DB types.","commit_id":"b21442f73233544cac6fe47fc896a39d336fd073"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"effd287fa953b21da7d5250f988f5ac70313deab","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Remove DBDuplicateEntry columns check"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"DBDuplicateEntry exception does not provide columns. Remove this"},{"line_number":10,"context_line":"check in neutron/db/agents_db.py"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I00d7b7c64de2912dda9fa57c08d90b1ef1c3aed7"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5a890539_10c91dac","line":9,"in_reply_to":"5a890539_83eddbf1","updated":"2014-11-14 01:30:06.000000000","message":"OK, will add them in next patch. From the comment in https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221. Seems other DBDuplicateEntry exception can support columns.","commit_id":"b21442f73233544cac6fe47fc896a39d336fd073"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"016503fb434c6566f060375f6df87484550eb6a7","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"DBDuplicateEntry exception does not provide columns for db2."},{"line_number":10,"context_line":"we have to remove this exception columns check in neutron/"},{"line_number":11,"context_line":"db/agents_db.py."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"See the comments in"},{"line_number":14,"context_line":"https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"5a890539_9d2aa18e","line":11,"updated":"2014-11-21 09:55:15.000000000","message":"explain why we can remove it","commit_id":"fc2af57dd82525d4a789dac9d676900e5614ccae"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"5b108613a0f84a774c10b4192e532e195c8dfe44","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"DBDuplicateEntry exception does not provide columns for db2."},{"line_number":10,"context_line":"we have to remove this exception columns check in neutron/"},{"line_number":11,"context_line":"db/agents_db.py."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"See the comments in"},{"line_number":14,"context_line":"https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"5a890539_f97f3064","line":11,"in_reply_to":"5a890539_80c4f640","updated":"2014-11-21 14:44:44.000000000","message":"DB2 does not provide any columns for this exception, I wondering another path is just the same with this one. Can you provide a good idea for this special path. I also want to let this code more precise. :) Also, see the former reply msg, I think it is safe to remove the column check here. There are so many same error are raised in some other places, but none of them checked column.","commit_id":"fc2af57dd82525d4a789dac9d676900e5614ccae"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"5b108613a0f84a774c10b4192e532e195c8dfe44","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"DBDuplicateEntry exception does not provide columns for db2."},{"line_number":10,"context_line":"we have to remove this exception columns check in neutron/"},{"line_number":11,"context_line":"db/agents_db.py."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"See the comments in"},{"line_number":14,"context_line":"https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"5a890539_d4b07bdf","line":11,"in_reply_to":"5a890539_9d2aa18e","updated":"2014-11-21 14:44:44.000000000","message":"I think it is safe to remove the column check here. See https://github.com/openstack/neutron/blob/master/neutron/db/agents_db.py#L47. I think the id duplicate is not possible. See https://github.com/openstack/neutron/blob/master/neutron/db/models_v2.py#L31. It is generated by uuid. So the only way that can raise this error is the duplicate of host and agent_type. Correct me, if I missed some other conditions, thanks. Commit msg will be updated if you can accept my explanation.","commit_id":"fc2af57dd82525d4a789dac9d676900e5614ccae"},{"author":{"_account_id":7930,"name":"jun xie","email":"easonxie160@163.com","username":"jeffreycoho"},"change_message_id":"977e6ad79ffb17c254d788ce1dd783a6034e1a37","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"DBDuplicateEntry exception does not provide columns for db2."},{"line_number":10,"context_line":"we have to remove this exception columns check in neutron/"},{"line_number":11,"context_line":"db/agents_db.py."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"See the comments in"},{"line_number":14,"context_line":"https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"5a890539_80c4f640","line":11,"in_reply_to":"5a890539_9d2aa18e","updated":"2014-11-21 10:15:57.000000000","message":"i am wondering if u should just add a specific path for db2, while leaving the other databases un-touched.  because it seems this is db2-specific, and DBDuplicateEntry exception could provide columns for other databases, though not for db2.","commit_id":"fc2af57dd82525d4a789dac9d676900e5614ccae"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"f952316256ecb466e1da95b610498ca8384ffc95","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"See comments in"},{"line_number":16,"context_line":"https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I00d7b7c64de2912dda9fa57c08d90b1ef1c3aed7"},{"line_number":19,"context_line":"Closes-bug: #1391766"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3a961159_e645946f","line":17,"updated":"2015-01-07 05:30:30.000000000","message":"I dont think the above link is correct. Can you please double check?","commit_id":"7c7b905967f20a7fd4c3aadf8dee3c49d131659c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6eb7dab2243e718be2ca573d1ae05896c05f3d89","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"See comments in"},{"line_number":16,"context_line":"https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I00d7b7c64de2912dda9fa57c08d90b1ef1c3aed7"},{"line_number":19,"context_line":"Closes-bug: #1391766"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3a961159_bc31d85a","line":17,"in_reply_to":"3a961159_219306a4","updated":"2015-01-07 10:09:40.000000000","message":"you should use the older link as the master branch can change not the commit 0265...ddb","commit_id":"7c7b905967f20a7fd4c3aadf8dee3c49d131659c"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"c821af48aa174c505e2328a563e89e32debf8512","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"See comments in"},{"line_number":16,"context_line":"https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L221."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I00d7b7c64de2912dda9fa57c08d90b1ef1c3aed7"},{"line_number":19,"context_line":"Closes-bug: #1391766"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3a961159_219306a4","line":17,"in_reply_to":"3a961159_e645946f","updated":"2015-01-07 06:08:08.000000000","message":"Sorry, the link has already changed. I\u0027ll correct it, or maybe I should remove this link. Since the url in internet can be changed as time goes.\n\nNew:\nhttps://github.com/openstack/oslo.db/blob/master/oslo_db/sqlalchemy/exc_filters.py#L236\n\nOlder one:\nhttps://github.com/openstack/oslo.db/blob/0265aa4e01270b8fc7cab1266b8602e1921c9ddb/oslo/db/sqlalchemy/exc_filters.py#L236","commit_id":"7c7b905967f20a7fd4c3aadf8dee3c49d131659c"}],"neutron/db/agents_db.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"81872194188a1f755fd738ee1747ed65d162b552","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        try:"},{"line_number":197,"context_line":"            return self._create_or_update_agent(context, agent)"},{"line_number":198,"context_line":"        except db_exc.DBDuplicateEntry:"},{"line_number":199,"context_line":"            with excutils.save_and_reraise_exception() as ctxt:"},{"line_number":200,"context_line":"                # It might happen that two or more concurrent transactions"},{"line_number":201,"context_line":"                # are trying to insert new rows having the same value of"},{"line_number":202,"context_line":"                # (agent_type, host) pair at the same time (if there has"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_511006a8","line":199,"updated":"2014-11-14 06:27:48.000000000","message":"you don\u0027t need save_and_reraise_exception anymore","commit_id":"12ce6d3d3c5b6f6f0c767392ce9ebc5331c8bd98"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"1b3e59ccb8913fa60dd18a1f8cb34b3263f42e87","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        try:"},{"line_number":197,"context_line":"            return self._create_or_update_agent(context, agent)"},{"line_number":198,"context_line":"        except db_exc.DBDuplicateEntry:"},{"line_number":199,"context_line":"            with excutils.save_and_reraise_exception() as ctxt:"},{"line_number":200,"context_line":"                # It might happen that two or more concurrent transactions"},{"line_number":201,"context_line":"                # are trying to insert new rows having the same value of"},{"line_number":202,"context_line":"                # (agent_type, host) pair at the same time (if there has"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_14810cc4","line":199,"in_reply_to":"5a890539_511006a8","updated":"2014-11-14 07:31:17.000000000","message":"Done","commit_id":"12ce6d3d3c5b6f6f0c767392ce9ebc5331c8bd98"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"cfc98548535198b1c7865f038fca10e38aea659c","unresolved":false,"context_lines":[{"line_number":198,"context_line":"            return self._create_or_update_agent(context, agent)"},{"line_number":199,"context_line":"        except db_exc.DBDuplicateEntry as e:"},{"line_number":200,"context_line":"            with excutils.save_and_reraise_exception() as ctxt:"},{"line_number":201,"context_line":"                if e.columns \u003d\u003d [\u0027agent_type\u0027, \u0027host\u0027]:"},{"line_number":202,"context_line":"                    # It might happen that two or more concurrent transactions"},{"line_number":203,"context_line":"                    # are trying to insert new rows having the same value of"},{"line_number":204,"context_line":"                    # (agent_type, host) pair at the same time (if there has"}],"source_content_type":"text/x-python","patch_set":9,"id":"5a890539_07e24a2f","side":"PARENT","line":201,"updated":"2014-11-26 17:58:57.000000000","message":"This change is probably not harmful now but in future another unique constraint could be added to the table and nobody will remember this line and fix it. In my opinion the right way to go is to fix oslo.db to return the columns for db2 not to modify the check here.","commit_id":"d42055cf214355d57026405045488ff7faaf68b7"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"08f59d66471c6abacd981c44f4e08e9191b46235","unresolved":false,"context_lines":[{"line_number":198,"context_line":"            return self._create_or_update_agent(context, agent)"},{"line_number":199,"context_line":"        except db_exc.DBDuplicateEntry as e:"},{"line_number":200,"context_line":"            with excutils.save_and_reraise_exception() as ctxt:"},{"line_number":201,"context_line":"                if e.columns \u003d\u003d [\u0027agent_type\u0027, \u0027host\u0027]:"},{"line_number":202,"context_line":"                    # It might happen that two or more concurrent transactions"},{"line_number":203,"context_line":"                    # are trying to insert new rows having the same value of"},{"line_number":204,"context_line":"                    # (agent_type, host) pair at the same time (if there has"}],"source_content_type":"text/x-python","patch_set":9,"id":"5a890539_3b5d9916","side":"PARENT","line":201,"in_reply_to":"5a890539_07e24a2f","updated":"2014-11-27 02:14:37.000000000","message":"Yeah, that\u0027s a good idea. But I\u0027m not sure whether db2(not ibm_db_sa driver) can support provide the columns for this exception. But the other code where raise the same error also not check columns. The duplication error in db2 is SQL0803N. See http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.messages.sql.doc/doc/msql00803n.html. Also, from the comment in https://github.com/openstack/oslo.db/blob/master/oslo/db/sqlalchemy/exc_filters.py#L236, seems it is ibm_db_sa driver that not provide columns, but not oslo.db.","commit_id":"d42055cf214355d57026405045488ff7faaf68b7"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"01a627e2946fff76df51907477764199088009b6","unresolved":false,"context_lines":[{"line_number":198,"context_line":"            return self._create_or_update_agent(context, agent)"},{"line_number":199,"context_line":"        except db_exc.DBDuplicateEntry as e:"},{"line_number":200,"context_line":"            with excutils.save_and_reraise_exception() as ctxt:"},{"line_number":201,"context_line":"                if e.columns \u003d\u003d [\u0027agent_type\u0027, \u0027host\u0027]:"},{"line_number":202,"context_line":"                    # It might happen that two or more concurrent transactions"},{"line_number":203,"context_line":"                    # are trying to insert new rows having the same value of"},{"line_number":204,"context_line":"                    # (agent_type, host) pair at the same time (if there has"}],"source_content_type":"text/x-python","patch_set":9,"id":"5a890539_e96a5a1a","side":"PARENT","line":201,"in_reply_to":"5a890539_3b5d9916","updated":"2014-11-27 13:10:51.000000000","message":"Maybe you can contact some db2 expert to be sure that it\u0027s the DB that doesn\u0027t return the column. Anyway that would be weird, throwing an error without any info about the constraint violated.","commit_id":"d42055cf214355d57026405045488ff7faaf68b7"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"a14651191b4556bb1ac78f682f597a1871827046","unresolved":false,"context_lines":[{"line_number":198,"context_line":"            return self._create_or_update_agent(context, agent)"},{"line_number":199,"context_line":"        except db_exc.DBDuplicateEntry as e:"},{"line_number":200,"context_line":"            with excutils.save_and_reraise_exception() as ctxt:"},{"line_number":201,"context_line":"                if e.columns \u003d\u003d [\u0027agent_type\u0027, \u0027host\u0027]:"},{"line_number":202,"context_line":"                    # It might happen that two or more concurrent transactions"},{"line_number":203,"context_line":"                    # are trying to insert new rows having the same value of"},{"line_number":204,"context_line":"                    # (agent_type, host) pair at the same time (if there has"}],"source_content_type":"text/x-python","patch_set":9,"id":"5a890539_211fff5c","side":"PARENT","line":201,"in_reply_to":"5a890539_737c8fb6","updated":"2014-11-28 16:04:57.000000000","message":"Thank Neo for looking into it. I will remove my -1 but still I don\u0027t think the best solution is to relax the check here. Not sure if you can get the column that failed from the stacktrack of the exception. Let\u0027s hear other opinions.","commit_id":"d42055cf214355d57026405045488ff7faaf68b7"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"dd78c4ccf7676b6cd216549c66edb27bc06f2dc6","unresolved":false,"context_lines":[{"line_number":198,"context_line":"            return self._create_or_update_agent(context, agent)"},{"line_number":199,"context_line":"        except db_exc.DBDuplicateEntry as e:"},{"line_number":200,"context_line":"            with excutils.save_and_reraise_exception() as ctxt:"},{"line_number":201,"context_line":"                if e.columns \u003d\u003d [\u0027agent_type\u0027, \u0027host\u0027]:"},{"line_number":202,"context_line":"                    # It might happen that two or more concurrent transactions"},{"line_number":203,"context_line":"                    # are trying to insert new rows having the same value of"},{"line_number":204,"context_line":"                    # (agent_type, host) pair at the same time (if there has"}],"source_content_type":"text/x-python","patch_set":9,"id":"5a890539_737c8fb6","side":"PARENT","line":201,"in_reply_to":"5a890539_e96a5a1a","updated":"2014-11-28 02:21:02.000000000","message":"ibm_db_dbi.py does not provide the exception columns.See https://github.com/exedre/ibm-db/blob/master/IBM_DB/ibm_db/ibm_db_dbi.py#L115. I have contacted the author.","commit_id":"d42055cf214355d57026405045488ff7faaf68b7"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"879f7c6871f9e655fa65755ace67f7bb1a2d9bc5","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from oslo.config import cfg"},{"line_number":19,"context_line":"from oslo.db import exception as db_exc"},{"line_number":20,"context_line":"from oslo import messaging"},{"line_number":21,"context_line":"from oslo.serialization import jsonutils"},{"line_number":22,"context_line":"from oslo.utils import excutils"},{"line_number":23,"context_line":"from oslo.utils import timeutils"},{"line_number":24,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_349e2957","line":21,"updated":"2014-12-10 13:53:30.000000000","message":"to remove","commit_id":"ea6aa5b7694bc8efcb107126904f1506061112f5"},{"author":{"_account_id":8172,"name":"Wei Hu","email":"huwei.xtu@gmail.com","username":"WeiHu"},"change_message_id":"0255016dc0cd42fc9a981c93b3af8e8a775b0870","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from oslo.config import cfg"},{"line_number":19,"context_line":"from oslo.db import exception as db_exc"},{"line_number":20,"context_line":"from oslo import messaging"},{"line_number":21,"context_line":"from oslo.serialization import jsonutils"},{"line_number":22,"context_line":"from oslo.utils import excutils"},{"line_number":23,"context_line":"from oslo.utils import timeutils"},{"line_number":24,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_7647c0bc","line":21,"in_reply_to":"3a961159_349e2957","updated":"2014-12-11 00:37:01.000000000","message":"Sorry, but why should I remove this? I can not follow you.","commit_id":"ea6aa5b7694bc8efcb107126904f1506061112f5"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"b81f3da29c5f2c0d79e92fbdbfc382ae2d2ab3ab","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from oslo.config import cfg"},{"line_number":19,"context_line":"from oslo.db import exception as db_exc"},{"line_number":20,"context_line":"from oslo import messaging"},{"line_number":21,"context_line":"from oslo.serialization import jsonutils"},{"line_number":22,"context_line":"from oslo.utils import excutils"},{"line_number":23,"context_line":"from oslo.utils import timeutils"},{"line_number":24,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_0681ebfa","line":21,"in_reply_to":"3a961159_7647c0bc","updated":"2014-12-11 02:48:31.000000000","message":"I think Cedric means removing \"from oslo.utils import excutils\". pep8 fails.","commit_id":"ea6aa5b7694bc8efcb107126904f1506061112f5"}]}
