Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59666

Renaming system.buckets collection should be disallowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.4, 5.1.0-rc0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0
    • Steps To Reproduce:
      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
    • Sprint:
      Execution Team 2021-09-20, Execution Team 2021-10-04

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              reo.kimura Reo Kimura
              Reporter:
              arun.banala Arun Banala
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: