Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1546

Need option to filter out BSON shard meta data

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • 3.7.1, 3.6.0-rc5
    • None
    • mongoreplay
    • None

    Description

      Use cases:

      We are using mongoreplay to replay data in sys-perf. The data is collected against one shard, but we need replay it against a non-shard replset (to reduce test complexity). Shard meta data failed all writes. Would like to have a way to let mongoreply ignore shard meta data.

      Example:

      2/17 17:34:17.679 (Connection: 9:83898371) +152┬Ás op_command insert buildlogs Request:{"command_args":{"documents":{"_id":{"$oid":"5804f9219041307e0d06cc46"},"build_id":"f4e1c4e166ae1b1d5165fc069df0d32c","build_name":"MCI_enterprise-rhel-62-64-bit_job2 #4442...0000000000000"},"writeConcern":{"getLastError":1}},"input_docs":[],"metadata":{"configsvr":{"opTime":{"t":{"$numberLong":"9"},"ts":{"$timestamp":{"t":1476720928,"i":2}}}}}} Response:{"command_reply":{"code":193,"codeName":"NoShardingEnabled","errmsg":"Cannot accept sharding commands if not started with --shardsvr","ok":0.0},"metadata":{},"output_docs":null}

      Attachments

        Activity

          People

            william.banfield William Banfield
            rui.zhang Rui Zhang (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: