)]}'
{"gnocchi/indexer/sqlalchemy.py":[{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"c74b3030319c1f140241255b99971213601cb086","unresolved":false,"context_lines":[{"line_number":254,"context_line":"                self._RESOURCE_TYPE_MANAGER.map_and_create_tables("},{"line_number":255,"context_line":"                    rt, connection)"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    @retry_on_deadlock"},{"line_number":258,"context_line":"    def create_resource_type(self, resource_type):"},{"line_number":259,"context_line":"        # NOTE(sileht): mysql have a stupid and small length limitation on the"},{"line_number":260,"context_line":"        # foreign key and index name, so we can\u0027t use the resource type name as"}],"source_content_type":"text/x-python","patch_set":4,"id":"bab6814e_d3592200","line":257,"updated":"2016-05-19 14:20:29.000000000","message":"This should be around the session.add() and not around the map_and_create_tables().\n\nmap_and_create_tables already have retry_on_deadlock. If the max_retries is reached, create_resource_type will restart from the begin, the next session.add will raise DBDuplicateEntry().","commit_id":"28e5288d3b6bdd3967fa61554ea88192ec8483f2"}]}
