)]}'
{"swift/cli/manage_shard_ranges.py":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"864e1d05d71cb16db589aacd8ab726778da02cfb","unresolved":true,"context_lines":[{"line_number":329,"context_line":"def show_shard_ranges(broker, args):"},{"line_number":330,"context_line":"    shard_ranges \u003d broker.get_shard_ranges("},{"line_number":331,"context_line":"        includes\u003dargs.includes,"},{"line_number":332,"context_line":"        include_deleted\u003dargs.include_deleted)"},{"line_number":333,"context_line":"    shard_data \u003d [dict(sr, state\u003dsr.state_text)"},{"line_number":334,"context_line":"                  for sr in shard_ranges]"},{"line_number":335,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"4e52808b_c4181a96","line":332,"updated":"2021-05-20 19:53:44.000000000","message":"these attrs may not be in the args namespace when show_shard_ranges is called from delete...not saying that is great but feels like a different issue:\n\n  $ swift-manage-shard-ranges ~/pbss_data/nvetl-data-prod/279daf6b8d468224380b8727b66c2ec1_1574994301.55946.db delete\nLoaded db broker for AUTH_nvetl/nvetl-data-prod\nThis will delete existing 3130 shard ranges.\nWARNING: Be very cautious about deleting existing shard ranges. Deleting all ranges in this db does not guarantee deletion of all ranges on all replicas of the db.\n  - this db is in state sharded\n  - 3130 existing shard ranges have started sharding\nDo you want to show the existing ranges [s], delete the existing ranges [yes] or quit without deleting [q]? s\nTraceback (most recent call last):\n  File \"/Users/acoles/.pyenv/versions/swift-3.6.9/bin/swift-manage-shard-ranges\", line 10, in \u003cmodule\u003e\n    sys.exit(main())\n  File \"/Users/acoles/0dev/openstack/swift/swift/cli/manage_shard_ranges.py\", line 936, in main\n    return args.func(broker, args)\n  File \"/Users/acoles/0dev/openstack/swift/swift/cli/manage_shard_ranges.py\", line 388, in delete_shard_ranges\n    show_shard_ranges(broker, args)\n  File \"/Users/acoles/0dev/openstack/swift/swift/cli/manage_shard_ranges.py\", line 331, in show_shard_ranges\n    includes\u003dargs.includes,#getattr(args, \u0027includes\u0027, None),\nAttributeError: \u0027Namespace\u0027 object has no attribute \u0027includes\u0027","commit_id":"807a3b1b1f765479bcd09a2cf2b50c07cacc6077"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"864e1d05d71cb16db589aacd8ab726778da02cfb","unresolved":true,"context_lines":[{"line_number":916,"context_line":"    for k, v in vars(args).items():"},{"line_number":917,"context_line":"        # set any None-value args from conf_args"},{"line_number":918,"context_line":"        if v is USE_SHARDER_DEFAULT:"},{"line_number":919,"context_line":"            setattr(args, k, getattr(conf_args, k))"},{"line_number":920,"context_line":""},{"line_number":921,"context_line":"    if args.func in (analyze_shard_ranges,):"},{"line_number":922,"context_line":"        args.input \u003d args.path_to_file"}],"source_content_type":"text/x-python","patch_set":1,"id":"e8737b67_62e88346","line":919,"updated":"2021-05-20 19:53:44.000000000","message":"yeah that is better, thanks","commit_id":"807a3b1b1f765479bcd09a2cf2b50c07cacc6077"}]}
