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

dropping a collection with long index names via rename fails under MMAPv1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 3.6.7, 4.0.2
    • Fix Version/s: 3.6.8, 4.0.3, 4.1.3
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Storage NYC 2018-09-10, Storage NYC 2018-09-24
    • Case:

      Description

      In a replica set running with the storage engine MMAPv1, a collection rename with the dropTarget option set to true may fail when the destination namespace refers to a collection with long index names approaching the MMAP namespace limit of 127 characters.

      The renameCollection operation would return an error with the code 10080 and a message containing the target namespace (the collection being replaced):

      {
          "errmsg" : "ns name test.system.drop.1536175136i10t1.t.$aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (size: 155) too long, max size is 127 bytes",
          "code" : 10080,
          ....
      }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: