Renaming system.buckets collection should be disallowed

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v5.0
    • Hide

      MongoDB Enterprise > db.createCollection("ts", {timeseries: {timeField: 't'}})

      { "ok" : 1 }

      MongoDB Enterprise > db.adminCommand(

      {renameCollection: "test.system.buckets.ts", to: "test.otherColl", dropTarget: false}

      )

      { "ok" : 1 }

      MongoDB Enterprise > db.getCollectionInfos()
      uncaught exception: Error: error doing query: failed: network error while attempting to run command 'listCollections' on host '127.0.0.1:27017' :
      DB.prototype.runCommand@src/mongo/shell/db.js:177:19
      DB.prototype._getCollectionInfosCommand@src/mongo/shell/db.js:691:17
      DB.prototype.getCollectionInfos@src/mongo/shell/db.js:741:16
      @(shell):1:1

      Show
      MongoDB Enterprise > db.createCollection("ts", {timeseries: {timeField: 't'}}) { "ok" : 1 } MongoDB Enterprise > db.adminCommand( {renameCollection: "test.system.buckets.ts", to: "test.otherColl", dropTarget: false} ) { "ok" : 1 } MongoDB Enterprise > db.getCollectionInfos() uncaught exception: Error: error doing query: failed: network error while attempting to run command 'listCollections' on host '127.0.0.1:27017' : DB.prototype.runCommand@src/mongo/shell/db.js:177:19 DB.prototype._getCollectionInfosCommand@src/mongo/shell/db.js:691:17 DB.prototype.getCollectionInfos@src/mongo/shell/db.js:741:16 @(shell):1:1
    • Execution Team 2021-09-20, Execution Team 2021-10-04
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Renaming system.buckets seems to corrupt the collection metadata, causing a server crash when listCollections command is issue.

              Assignee:
              Reo Kimura (Inactive)
              Reporter:
              Arun Banala
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: