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

Mongodump not working after upgrade to 4.4

    XMLWordPrintable

    Details

    • Type: Investigation
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: No versions
    • Component/s: None
    • Labels:
      None

      Description

      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>

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: