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

Mongodump not working after upgrade to 4.4

    • Type: Icon: Investigation Investigation
    • Resolution: Works as Designed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Mongodump with query not working after upgrading to 4.4

      mongodump --host tiger:27018 --authenticationDatabase admin --username admin --password odsfsdgfdt --out /tmp/stgopl -d local -c oplog.rs --gzip --query '{ "ts":{ "$gt" :Timestamp(1617745839,1)}}'
      2021-04-23T14:25:33.113-0700 Failed: error parsing query as Extended JSON: error decoding key ts: invalid JSON input. Position: 16. Character: T

       

      Also further checking seems like using $timestamp yields different results

      st:PRIMARY> db.oplog.rs.find({"ts" : { "$gt" : Timestamp(1617745839,1)}}).count()
      172305
      st:PRIMARY> db.oplog.rs.find({"ts" : { "$gt" : {"$timestamp":

      {"t":1617745839,"i":1}

      }}}).count()
      0
      st:PRIMARY>

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            tanveerm@xilinx.com Tanveer Madan Marate
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: