)]}'
{"swift/container/backend.py":[{"author":{"_account_id":6198,"name":"Peter Portante","email":"peter.a.portante@gmail.com","username":"peter-a-portante"},"change_message_id":"a1f60ddafeb2ea3ec6797dd1c2cf5bf90538a016","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        Not a part of Pluggable Back-ends, internal to the baseline code."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        :param conn: DB connection object"},{"line_number":101,"context_line":"        :param put_timestamp: put timestamp"},{"line_number":102,"context_line":"        \"\"\""},{"line_number":103,"context_line":"        if put_timestamp is None:"},{"line_number":104,"context_line":"            put_timestamp \u003d normalize_timestamp(0)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2Fe7k%3D","line":101,"updated":"2014-03-05 21:09:14.000000000","message":"Should we add a parameter doc line for the new index?\n\nAnd if so, should we update the three \"pre*_create_container_stat_table\" test harness methods to match the signatures with the keyword parameter drops?","commit_id":"0960c312e63d94404ded0d7e62ad6b6cf13ac88e"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"b6ce679140b513f808419470650af82b0c500326","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        Not a part of Pluggable Back-ends, internal to the baseline code."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        :param conn: DB connection object"},{"line_number":101,"context_line":"        :param put_timestamp: put timestamp"},{"line_number":102,"context_line":"        \"\"\""},{"line_number":103,"context_line":"        if put_timestamp is None:"},{"line_number":104,"context_line":"            put_timestamp \u003d normalize_timestamp(0)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAWH%2F%2F69E%3D","line":101,"in_reply_to":"AAAAVn%2F%2Fe7k%3D","updated":"2014-03-12 23:09:49.000000000","message":"Yes to the doc string; for the others, I updated their signatures so they didn\u0027t crash when fed the new arg, but other than that I left them alone. I can go update the signatures if you think it improves things, though.","commit_id":"0960c312e63d94404ded0d7e62ad6b6cf13ac88e"},{"author":{"_account_id":6198,"name":"Peter Portante","email":"peter.a.portante@gmail.com","username":"peter-a-portante"},"change_message_id":"a1f60ddafeb2ea3ec6797dd1c2cf5bf90538a016","unresolved":false,"context_lines":[{"line_number":289,"context_line":"                        trailing_sync \u003d \u0027-1 AS x_container_sync_point1, \u0027 \\"},{"line_number":290,"context_line":"                                        \u0027-1 AS x_container_sync_point2\u0027"},{"line_number":291,"context_line":"                    elif \u0027no such column: storage_policy_index\u0027 in str(err):"},{"line_number":292,"context_line":"                        trailing_pol \u003d \u00270 AS storage_policy_index\u0027"},{"line_number":293,"context_line":"                    else:"},{"line_number":294,"context_line":"                        raise"},{"line_number":295,"context_line":"            data \u003d dict(data)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2Ffkw%3D","line":292,"updated":"2014-03-05 21:09:14.000000000","message":"if we have both a missing storage policy index column and missing x_container_sync_point1 or point2 columns, does this work?","commit_id":"0960c312e63d94404ded0d7e62ad6b6cf13ac88e"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"b6ce679140b513f808419470650af82b0c500326","unresolved":false,"context_lines":[{"line_number":289,"context_line":"                        trailing_sync \u003d \u0027-1 AS x_container_sync_point1, \u0027 \\"},{"line_number":290,"context_line":"                                        \u0027-1 AS x_container_sync_point2\u0027"},{"line_number":291,"context_line":"                    elif \u0027no such column: storage_policy_index\u0027 in str(err):"},{"line_number":292,"context_line":"                        trailing_pol \u003d \u00270 AS storage_policy_index\u0027"},{"line_number":293,"context_line":"                    else:"},{"line_number":294,"context_line":"                        raise"},{"line_number":295,"context_line":"            data \u003d dict(data)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAWH%2F%2F68M%3D","line":292,"in_reply_to":"AAAAVn%2F%2Ffkw%3D","updated":"2014-03-12 23:09:49.000000000","message":"Yep. It\u0027s `while not data`, so as long as conn.execute() blows up, we\u0027ll keep right on retrying.\n\nFor giggles, I changed that to `if not data`, and the unit tests started failing.","commit_id":"0960c312e63d94404ded0d7e62ad6b6cf13ac88e"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"3636d026b5f6cfa91d9ea0f06abd08789144367d","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                metadata TEXT DEFAULT \u0027\u0027,"},{"line_number":121,"context_line":"                x_container_sync_point1 INTEGER DEFAULT -1,"},{"line_number":122,"context_line":"                x_container_sync_point2 INTEGER DEFAULT -1"},{"line_number":123,"context_line":"            );"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"            INSERT INTO container_stat (object_count, bytes_used)"},{"line_number":126,"context_line":"                VALUES (0, 0);"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAWH%2F%2FoQE%3D","side":"PARENT","line":123,"updated":"2014-03-14 21:57:21.000000000","message":"Rather than modify the existing constructor, I would like to maintain the old schema for historical purposes (i.e. create_container_stat_table \u003d create_container_stat_table_v2).  It would be *awesome* if I have a test that could create an a container on disk with the old schema and then run some tests to make sure we still work.","commit_id":"888e7b330de91ddb16688e5179d337bc72099b02"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"bf9b1d65e23e44c129d1dd7508c800e5ab9159b7","unresolved":false,"context_lines":[{"line_number":120,"context_line":"                metadata TEXT DEFAULT \u0027\u0027,"},{"line_number":121,"context_line":"                x_container_sync_point1 INTEGER DEFAULT -1,"},{"line_number":122,"context_line":"                x_container_sync_point2 INTEGER DEFAULT -1"},{"line_number":123,"context_line":"            );"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"            INSERT INTO container_stat (object_count, bytes_used)"},{"line_number":126,"context_line":"                VALUES (0, 0);"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAWH%2F%2FoDg%3D","side":"PARENT","line":123,"in_reply_to":"AAAAWH%2F%2FoQE%3D","updated":"2014-03-14 22:33:29.000000000","message":"That\u0027s what the container-backend tests do. All the tests in there run 4 times, once with each rev of the schema that we\u0027ve ever had.","commit_id":"888e7b330de91ddb16688e5179d337bc72099b02"}],"swift/container/server.py":[{"author":{"_account_id":7479,"name":"paul luse","email":"paul.e.luse@intel.com","username":"peluse"},"change_message_id":"097fadbe56ed56358781cabef9e71db3fbb7ca73","unresolved":false,"context_lines":[{"line_number":272,"context_line":"                return HTTPBadRequest(err)"},{"line_number":273,"context_line":"        if self.mount_check and not check_mount(self.root, drive):"},{"line_number":274,"context_line":"            return HTTPInsufficientStorage(drive\u003ddrive, request\u003dreq)"},{"line_number":275,"context_line":"        requested_policy_index \u003d self.get_and_validate_policy_index(req)"},{"line_number":276,"context_line":"        if requested_policy_index is None:"},{"line_number":277,"context_line":"            new_container_policy \u003d self.policies.default.idx"},{"line_number":278,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUX%2F%2FrqI%3D","line":275,"updated":"2014-02-11 14:46:07.000000000","message":"I like how this has evolved, are the changes here are equivalent wrt functionality (looks that way but I might be missing a detail)?","commit_id":"bce031ad1d267127f7e1cfd9b6b8557378730129"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"d0b374ddf159bb59c88845f6d4fd69c7a65bf1e1","unresolved":false,"context_lines":[{"line_number":272,"context_line":"                return HTTPBadRequest(err)"},{"line_number":273,"context_line":"        if self.mount_check and not check_mount(self.root, drive):"},{"line_number":274,"context_line":"            return HTTPInsufficientStorage(drive\u003ddrive, request\u003dreq)"},{"line_number":275,"context_line":"        requested_policy_index \u003d self.get_and_validate_policy_index(req)"},{"line_number":276,"context_line":"        if requested_policy_index is None:"},{"line_number":277,"context_line":"            new_container_policy \u003d self.policies.default.idx"},{"line_number":278,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUX%2F%2FqwM%3D","line":275,"in_reply_to":"AAAAUX%2F%2FrqI%3D","updated":"2014-02-11 17:02:54.000000000","message":"I\u0027m pretty sure they\u0027re equivalent; this was just a little more convenient to work with.","commit_id":"bce031ad1d267127f7e1cfd9b6b8557378730129"},{"author":{"_account_id":6198,"name":"Peter Portante","email":"peter.a.portante@gmail.com","username":"peter-a-portante"},"change_message_id":"a1f60ddafeb2ea3ec6797dd1c2cf5bf90538a016","unresolved":false,"context_lines":[{"line_number":289,"context_line":"                    pass"},{"line_number":290,"context_line":"            if not os.path.exists(broker.db_file):"},{"line_number":291,"context_line":"                return HTTPNotFound()"},{"line_number":292,"context_line":"            broker.put_object(obj, timestamp, int(req.headers[\u0027x-size\u0027]),"},{"line_number":293,"context_line":"                              req.headers[\u0027x-content-type\u0027],"},{"line_number":294,"context_line":"                              req.headers[\u0027x-etag\u0027])"},{"line_number":295,"context_line":"            return HTTPCreated(request\u003dreq)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAVn%2F%2FfMc%3D","line":292,"updated":"2014-03-05 21:09:14.000000000","message":"Should we be checking that the new_container_policy value matches the value of the created database?","commit_id":"0960c312e63d94404ded0d7e62ad6b6cf13ac88e"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"b6ce679140b513f808419470650af82b0c500326","unresolved":false,"context_lines":[{"line_number":289,"context_line":"                    pass"},{"line_number":290,"context_line":"            if not os.path.exists(broker.db_file):"},{"line_number":291,"context_line":"                return HTTPNotFound()"},{"line_number":292,"context_line":"            broker.put_object(obj, timestamp, int(req.headers[\u0027x-size\u0027]),"},{"line_number":293,"context_line":"                              req.headers[\u0027x-content-type\u0027],"},{"line_number":294,"context_line":"                              req.headers[\u0027x-etag\u0027])"},{"line_number":295,"context_line":"            return HTTPCreated(request\u003dreq)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAWH%2F%2F68o%3D","line":292,"in_reply_to":"AAAAVn%2F%2FfMc%3D","updated":"2014-03-12 23:09:49.000000000","message":"That\u0027s taken care of in a subsequent change at https://review.openstack.org/79731","commit_id":"0960c312e63d94404ded0d7e62ad6b6cf13ac88e"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"3636d026b5f6cfa91d9ea0f06abd08789144367d","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                not os.path.exists(broker.db_file):"},{"line_number":232,"context_line":"            try:"},{"line_number":233,"context_line":"                broker.initialize(normalize_timestamp("},{"line_number":234,"context_line":"                    req.headers.get(\u0027x-timestamp\u0027) or time.time()), -1)"},{"line_number":235,"context_line":"            except DatabaseAlreadyExists:"},{"line_number":236,"context_line":"                pass"},{"line_number":237,"context_line":"        if not os.path.exists(broker.db_file):"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAWH%2F%2FoSM%3D","line":234,"updated":"2014-03-14 21:57:21.000000000","message":"so this default can\u0027t be right, it should get it from the DELETE request or if the delete request doesn\u0027t have one it should set it to zero because we\u0027re in the middle of an upgrade.\n\nAlso we should send the storage-policy-index up from the object server/updater on DELETE requests :P","commit_id":"436e689cb332b4918e9cb5e1282c164f7497f26c"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"bf9b1d65e23e44c129d1dd7508c800e5ab9159b7","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                not os.path.exists(broker.db_file):"},{"line_number":232,"context_line":"            try:"},{"line_number":233,"context_line":"                broker.initialize(normalize_timestamp("},{"line_number":234,"context_line":"                    req.headers.get(\u0027x-timestamp\u0027) or time.time()), -1)"},{"line_number":235,"context_line":"            except DatabaseAlreadyExists:"},{"line_number":236,"context_line":"                pass"},{"line_number":237,"context_line":"        if not os.path.exists(broker.db_file):"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAWH%2F%2Fn%2FM%3D","line":234,"in_reply_to":"AAAAWH%2F%2FoSM%3D","updated":"2014-03-14 22:33:29.000000000","message":"You mean for object DELETE requests? If someone\u0027s deleting the container, who cares what the storage policy index is?","commit_id":"436e689cb332b4918e9cb5e1282c164f7497f26c"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"35fffba651fd43da27a15b019a900d1c47b92c35","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                not os.path.exists(broker.db_file):"},{"line_number":232,"context_line":"            try:"},{"line_number":233,"context_line":"                broker.initialize(normalize_timestamp("},{"line_number":234,"context_line":"                    req.headers.get(\u0027x-timestamp\u0027) or time.time()), -1)"},{"line_number":235,"context_line":"            except DatabaseAlreadyExists:"},{"line_number":236,"context_line":"                pass"},{"line_number":237,"context_line":"        if not os.path.exists(broker.db_file):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAWH%2F%2FniQ%3D","line":234,"updated":"2014-03-15 00:04:49.000000000","message":"swift: ERROR Unhandled exception in request: #012Traceback (most recent call last):#012  File \"/vagrant/swift/swift/proxy/server.py\", line 377, in handle_request#012    return handler(req)#012  File \"/vagrant/swift/swift/common/utils.py\", line 2176, in wrapped#012    return func(*a, **kw)#012  File \"/vagrant/swift/swift/proxy/controllers/base.py\", line 96, in wrapped#012    return func(*a, **kw)#012  File \"/vagrant/swift/swift/proxy/controllers/base.py\", line 249, in wrapped#012    return func(*a, **kw)#012  File \"/vagrant/swift/swift/proxy/controllers/container.py\", line 104, in GET#012    return self.GETorHEAD(req)#012  File \"/vagrant/swift/swift/proxy/controllers/container.py\", line 87, in GETorHEAD#012    req.swift_entity_path)#012  File \"/vagrant/swift/swift/proxy/controllers/base.py\", line 1201, in GETorHEAD_base#012    POLICIES.get_by_index(res.headers[POLICY_INDEX]).name#012AttributeError: \u0027NoneType\u0027 object has no attribute \u0027name\u0027 (txn: tx33cf718385ef4db8b4a21-0053239798)\nswift: ERROR Unhandled exception in request: #012Traceback (most recent call last):#012  File \"/vagrant/swift/swift/proxy/server.py\", line 377, in handle_request#012    return handler(req)#012  File \"/vagrant/swift/swift/common/utils.py\", line 2176, in wrapped#012    return func(*a, **kw)#012  File \"/vagrant/swift/swift/proxy/controllers/base.py\", line 249, in wrapped#012    return func(*a, **kw)#012  File \"/vagrant/swift/swift/proxy/controllers/base.py\", line 96, in wrapped#012    return func(*a, **kw)#012  File \"/vagrant/swift/swift/proxy/controllers/obj.py\", line 751, in DELETE#012    obj_ring \u003d self.app.get_object_ring(policy_idx)#012  File \"/vagrant/swift/swift/proxy/server.py\", line 237, in get_object_ring#012    return self.policies.get_object_ring(policy_idx, self.swift_dir)#012  File \"/vagrant/swift/swift/common/storage_policy.py\", line 122, in get_object_ring#012    raise ValueError(\"No policy with index %d\" % policy_idx)#012ValueError: No policy with index -1 (txn: tx89c323d1a244445c94cc0-0053239798)\n\n\nSo I had the container server turned off on the .expiring_objects PUT that created the container, and turned on when the expirer ran and issued the DELETE that created the container - and it blew up.","commit_id":"3a0c19b311481c4e7534e5a1c02dba595b919b2c"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"7b84e243a6bd7a532a6547e8bf7a76927ad25621","unresolved":false,"context_lines":[{"line_number":306,"context_line":"                if ((current_policy_index is not None) and"},{"line_number":307,"context_line":"                        (requested_policy_index !\u003d current_policy_index)):"},{"line_number":308,"context_line":"                    # Modifying a storage policy is prohibited"},{"line_number":309,"context_line":"                    return HTTPConflict(request\u003dreq)"},{"line_number":310,"context_line":"                elif POLICY_INDEX not in broker.metadata:"},{"line_number":311,"context_line":"                    metadata[POLICY_INDEX] \u003d (requested_policy_index,"},{"line_number":312,"context_line":"                                              timestamp)"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAWH%2F%2FnSo%3D","side":"PARENT","line":309,"updated":"2014-03-15 04:35:39.000000000","message":"I know this better than what you started with - but I would greatly prefer if this block was moved up just a little above the req.headers metadata construction so it\u0027s closer to the create/is_deleted/already_exists/what_the_how_many_different_situations_do_we_have_to_handle_for_the_love_of... \"logic\"","commit_id":"849a5c8e78c4ca900c15ab2920c4773e431b6d64"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"59912449d161b93be6695e7f9c6ae03d06c46436","unresolved":false,"context_lines":[{"line_number":306,"context_line":"                if ((current_policy_index is not None) and"},{"line_number":307,"context_line":"                        (requested_policy_index !\u003d current_policy_index)):"},{"line_number":308,"context_line":"                    # Modifying a storage policy is prohibited"},{"line_number":309,"context_line":"                    return HTTPConflict(request\u003dreq)"},{"line_number":310,"context_line":"                elif POLICY_INDEX not in broker.metadata:"},{"line_number":311,"context_line":"                    metadata[POLICY_INDEX] \u003d (requested_policy_index,"},{"line_number":312,"context_line":"                                              timestamp)"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAWH%2F%2FcBY%3D","side":"PARENT","line":309,"in_reply_to":"AAAAWH%2F%2FnSo%3D","updated":"2014-03-17 22:14:43.000000000","message":"Sure, I can hoist that up above the metadata stuff. It\u0027s only down here because stuff used to live in metadata, so we had to wait until we had metadata to go poking at it.","commit_id":"849a5c8e78c4ca900c15ab2920c4773e431b6d64"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"7b84e243a6bd7a532a6547e8bf7a76927ad25621","unresolved":false,"context_lines":[{"line_number":510,"context_line":"        broker \u003d self._get_container_broker(drive, part, account, container)"},{"line_number":511,"context_line":"        if broker.is_deleted():"},{"line_number":512,"context_line":"            return HTTPNotFound(request\u003dreq)"},{"line_number":513,"context_line":"        requested_policy_index \u003d self.get_and_validate_policy_index(req)"},{"line_number":514,"context_line":"        timestamp \u003d normalize_timestamp(req.headers[\u0027x-timestamp\u0027])"},{"line_number":515,"context_line":"        metadata \u003d {}"},{"line_number":516,"context_line":"        metadata.update("}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAWH%2F%2FnTY%3D","line":513,"updated":"2014-03-15 04:35:39.000000000","message":"I think we don\u0027t even need to *look* at this header on POST?!  If it\u0027s not in the API as something you can update - why do the extra get_info call just to blow up?  If you POST to change storage policy and see it does nothing - then you read the api spec that says you can only set it on PUT - what\u0027s the problem?","commit_id":"cc2243e277b25b00af789fcd11ba6964ef734879"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"59912449d161b93be6695e7f9c6ae03d06c46436","unresolved":false,"context_lines":[{"line_number":510,"context_line":"        broker \u003d self._get_container_broker(drive, part, account, container)"},{"line_number":511,"context_line":"        if broker.is_deleted():"},{"line_number":512,"context_line":"            return HTTPNotFound(request\u003dreq)"},{"line_number":513,"context_line":"        requested_policy_index \u003d self.get_and_validate_policy_index(req)"},{"line_number":514,"context_line":"        timestamp \u003d normalize_timestamp(req.headers[\u0027x-timestamp\u0027])"},{"line_number":515,"context_line":"        metadata \u003d {}"},{"line_number":516,"context_line":"        metadata.update("}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAWH%2F%2FcA8%3D","line":513,"in_reply_to":"AAAAWH%2F%2FnTY%3D","updated":"2014-03-17 22:14:43.000000000","message":"sure","commit_id":"cc2243e277b25b00af789fcd11ba6964ef734879"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"174b768e853ab8465ae196ab19b1d60c129e544c","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                not os.path.exists(broker.db_file):"},{"line_number":232,"context_line":"            try:"},{"line_number":233,"context_line":"                broker.initialize(normalize_timestamp("},{"line_number":234,"context_line":"                    req.headers.get(\u0027x-timestamp\u0027) or time.time()), -1)"},{"line_number":235,"context_line":"            except DatabaseAlreadyExists:"},{"line_number":236,"context_line":"                pass"},{"line_number":237,"context_line":"        if not os.path.exists(broker.db_file):"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAAWH%2F%2FYWM%3D","line":234,"updated":"2014-03-18 09:01:33.000000000","message":"with a quick merge on master I was able to get this probe test going on this branch:\nhttps://review.openstack.org/#/c/81205/\n\nIt show\u0027s how an autocreated container that starts out \"empty\" can get objects put into it and become completely invalid. Inspecting the logs after it fails reveals the internal_client hitting an AttributeError on POLICIES.\n\nfix:\nhttps://gist.github.com/clayg/9616127","commit_id":"b2855266dbbe9c128ed82539989502bd7ca75449"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"8355514beb1e42c10d66924ce3ea6c5177dea901","unresolved":false,"context_lines":[{"line_number":231,"context_line":"                not os.path.exists(broker.db_file):"},{"line_number":232,"context_line":"            try:"},{"line_number":233,"context_line":"                broker.initialize(normalize_timestamp("},{"line_number":234,"context_line":"                    req.headers.get(\u0027x-timestamp\u0027) or time.time()), -1)"},{"line_number":235,"context_line":"            except DatabaseAlreadyExists:"},{"line_number":236,"context_line":"                pass"},{"line_number":237,"context_line":"        if not os.path.exists(broker.db_file):"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAAWH%2F%2FTGg%3D","line":234,"in_reply_to":"AAAAWH%2F%2FYWM%3D","updated":"2014-03-18 19:14:53.000000000","message":"Done","commit_id":"b2855266dbbe9c128ed82539989502bd7ca75449"}],"test/unit/container/test_backend.py":[{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"3636d026b5f6cfa91d9ea0f06abd08789144367d","unresolved":false,"context_lines":[{"line_number":1203,"context_line":"        broker \u003d ContainerBroker(\u0027:memory:\u0027, account\u003d\u0027a\u0027, container\u003d\u0027c\u0027)"},{"line_number":1204,"context_line":"        broker.initialize(normalize_timestamp(\u00271\u0027), 0)"},{"line_number":1205,"context_line":"        with broker.get() as conn:"},{"line_number":1206,"context_line":"            conn.execute(\u0027SELECT x_container_sync_point1 FROM container_stat\u0027)"},{"line_number":1207,"context_line":""},{"line_number":1208,"context_line":""},{"line_number":1209,"context_line":"def prespi_create_container_stat_table(self, conn, put_timestamp,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAWH%2F%2FoN4%3D","line":1206,"updated":"2014-03-14 21:57:21.000000000","message":"is this cruft or does it need a comment or am I just stupid.","commit_id":"436e689cb332b4918e9cb5e1282c164f7497f26c"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"bf9b1d65e23e44c129d1dd7508c800e5ab9159b7","unresolved":false,"context_lines":[{"line_number":1203,"context_line":"        broker \u003d ContainerBroker(\u0027:memory:\u0027, account\u003d\u0027a\u0027, container\u003d\u0027c\u0027)"},{"line_number":1204,"context_line":"        broker.initialize(normalize_timestamp(\u00271\u0027), 0)"},{"line_number":1205,"context_line":"        with broker.get() as conn:"},{"line_number":1206,"context_line":"            conn.execute(\u0027SELECT x_container_sync_point1 FROM container_stat\u0027)"},{"line_number":1207,"context_line":""},{"line_number":1208,"context_line":""},{"line_number":1209,"context_line":"def prespi_create_container_stat_table(self, conn, put_timestamp,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAWH%2F%2Fn%2Bk%3D","line":1206,"in_reply_to":"AAAAWH%2F%2FoN4%3D","updated":"2014-03-14 22:33:29.000000000","message":"I just copied and pasted the one above; maybe mine doesn\u0027t need it? (The way Gerrit shows this, it makes it look like I added it to *this* test case, but I really copied it to the *next* one)\n\nI guess it\u0027s ensuring that the column got added. Dunno.","commit_id":"436e689cb332b4918e9cb5e1282c164f7497f26c"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"7b84e243a6bd7a532a6547e8bf7a76927ad25621","unresolved":false,"context_lines":[{"line_number":1201,"context_line":"        broker \u003d ContainerBroker(\u0027:memory:\u0027, account\u003d\u0027a\u0027, container\u003d\u0027c\u0027)"},{"line_number":1202,"context_line":"        broker.initialize(normalize_timestamp(\u00271\u0027))"},{"line_number":1203,"context_line":"        with broker.get() as conn:"},{"line_number":1204,"context_line":"            conn.execute(\u0027SELECT x_container_sync_point1 FROM container_stat\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAWH%2F%2FnRQ%3D","side":"PARENT","line":1204,"updated":"2014-03-15 04:35:39.000000000","message":"This teardown clause looks like it should be checking that the _imported_create_container_stat_table still creates a *storage_policy_index* (and that\u0027s it\u0027s 0).  I don\u0027t think the x_container_sync_point1 column check has any value in this TestCase.","commit_id":"849a5c8e78c4ca900c15ab2920c4773e431b6d64"},{"author":{"_account_id":2622,"name":"Samuel Merritt","email":"spam+launchpad@andcheese.org","username":"torgomatic"},"change_message_id":"59912449d161b93be6695e7f9c6ae03d06c46436","unresolved":false,"context_lines":[{"line_number":1201,"context_line":"        broker \u003d ContainerBroker(\u0027:memory:\u0027, account\u003d\u0027a\u0027, container\u003d\u0027c\u0027)"},{"line_number":1202,"context_line":"        broker.initialize(normalize_timestamp(\u00271\u0027))"},{"line_number":1203,"context_line":"        with broker.get() as conn:"},{"line_number":1204,"context_line":"            conn.execute(\u0027SELECT x_container_sync_point1 FROM container_stat\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAWH%2F%2FcAU%3D","side":"PARENT","line":1204,"in_reply_to":"AAAAWH%2F%2FnRQ%3D","updated":"2014-03-17 22:14:43.000000000","message":"Right, I guess this was testing that create_container_stat_table (the real one, not these test ones) was really creating this column. I\u0027ll change mine to be storage_policy_index, since that\u0027s the relevant one here.","commit_id":"849a5c8e78c4ca900c15ab2920c4773e431b6d64"}],"test/unit/container/test_server.py":[{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"3636d026b5f6cfa91d9ea0f06abd08789144367d","unresolved":false,"context_lines":[{"line_number":712,"context_line":"        resp \u003d req.get_response(self.controller)"},{"line_number":713,"context_line":"        self.assertEquals(resp.status_int, 204)"},{"line_number":714,"context_line":"        req \u003d Request.blank(\u0027/sda1/p/a/c\u0027, environ\u003d{\u0027REQUEST_METHOD\u0027: \u0027HEAD\u0027})"},{"line_number":715,"context_line":"        resp \u003d req.get_response(self.controller)"},{"line_number":716,"context_line":"        self.assertEquals(resp.status_int, 204)"},{"line_number":717,"context_line":"        self.assert_(key.lower() not in resp.headers)"},{"line_number":718,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAWH%2F%2FoNM%3D","line":715,"updated":"2014-03-14 21:57:21.000000000","message":"love these!  (should do on master)","commit_id":"436e689cb332b4918e9cb5e1282c164f7497f26c"}]}
