)]}'
{"swift/container/sharder.py":[{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ddd681d1e7778fc23823e60e7fff9c8a73c52ee4","unresolved":false,"context_lines":[{"line_number":601,"context_line":"                      self.shard_container_size):"},{"line_number":602,"context_line":"                    broker.update_sharding_info({\u0027Scan-Done\u0027: \u0027False\u0027})"},{"line_number":603,"context_line":"                    broker.set_sharding_state(epoch\u003dTimestamp.now())"},{"line_number":604,"context_line":"                    state \u003d SHARDING"},{"line_number":605,"context_line":""},{"line_number":606,"context_line":"            if state \u003d\u003d SHARDING:"},{"line_number":607,"context_line":"                num_found \u003d num_created \u003d 0"}],"source_content_type":"text/x-python","patch_set":1,"id":"df7087c5_352450c6","line":604,"updated":"2018-03-20 15:51:44.000000000","message":"Right, so this affects transitions to sharding state...","commit_id":"cb76ad65493495724af03b3dcf16dff90a40cd70"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ddd681d1e7778fc23823e60e7fff9c8a73c52ee4","unresolved":false,"context_lines":[{"line_number":608,"context_line":"                scan_complete \u003d config_true_value("},{"line_number":609,"context_line":"                    broker.get_sharding_info(\u0027Scan-Done\u0027))"},{"line_number":610,"context_line":"                if is_leader and not scan_complete:"},{"line_number":611,"context_line":"                    scan_complete, num_found \u003d self._find_shard_ranges(broker)"},{"line_number":612,"context_line":""},{"line_number":613,"context_line":"                if is_leader:"},{"line_number":614,"context_line":"                    # create shard containers for newly found ranges"}],"source_content_type":"text/x-python","patch_set":1,"id":"df7087c5_f52d78a8","line":611,"updated":"2018-03-20 15:51:44.000000000","message":"... identifying ranges ...","commit_id":"cb76ad65493495724af03b3dcf16dff90a40cd70"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ddd681d1e7778fc23823e60e7fff9c8a73c52ee4","unresolved":false,"context_lines":[{"line_number":616,"context_line":"                    # the shard container makes it safer to restrict this to"},{"line_number":617,"context_line":"                    # the leader; an improved container creation strategy might"},{"line_number":618,"context_line":"                    # allow this to run on any node"},{"line_number":619,"context_line":"                    num_created \u003d self._create_shard_containers(broker)"},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"                # TODO: what if this replication attempt fails? if we wrote the"},{"line_number":622,"context_line":"                # db then replicator should eventually find it, but what if we"}],"source_content_type":"text/x-python","patch_set":1,"id":"df7087c5_95167c55","line":619,"updated":"2018-03-20 15:51:44.000000000","message":"... creating shard containers ...\n\n(This part makes me a little nervous, but I guess they\u0027ll get created later anyway, as part of cleaving?)","commit_id":"cb76ad65493495724af03b3dcf16dff90a40cd70"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ddd681d1e7778fc23823e60e7fff9c8a73c52ee4","unresolved":false,"context_lines":[{"line_number":680,"context_line":""},{"line_number":681,"context_line":"            if (state \u003d\u003d SHARDED and broker.is_root_container() and"},{"line_number":682,"context_line":"                    is_leader):"},{"line_number":683,"context_line":"                self._find_shrinks(broker)"},{"line_number":684,"context_line":""},{"line_number":685,"context_line":"            if not broker.is_root_container():"},{"line_number":686,"context_line":"                # update the root container with this container\u0027s shard range"}],"source_content_type":"text/x-python","patch_set":1,"id":"df7087c5_15026c0c","line":683,"updated":"2018-03-20 15:51:44.000000000","message":"... and finding shards that should be shrunk.","commit_id":"cb76ad65493495724af03b3dcf16dff90a40cd70"}]}
