Time-series collections can only remove documents whose _id is an ObjectId

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Hide
      > db.createCollection('system.buckets.c', {clusteredIndex: true})
      > db.system.buckets.c.insertOne({_id:1})
      { "acknowledged" : true, "insertedId" : 1 }
      > db.system.buckets.c.remove({_id:1})
      WriteResult({WriteResult({ "nRemoved" : 0, "writeError" : { "code" : 13111, "errmsg" : "wrong type for field (_id) double != objectId" }})
      Show
      > db.createCollection('system.buckets.c', {clusteredIndex: true}) > db.system.buckets.c.insertOne({_id:1}) { "acknowledged" : true, "insertedId" : 1 } > db.system.buckets.c.remove({_id:1}) WriteResult({WriteResult({ "nRemoved" : 0, "writeError" : { "code" : 13111, "errmsg" : "wrong type for field (_id) double != objectId" }})
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      On clustered collections, the remove path seems to assume that the _id of a document is always an ObjectId.

            Assignee:
            Unassigned
            Reporter:
            Josef Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: