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

Add configsvrRenameCollection that takes NamespaceSerializer locks and distributed locks on the database and collection

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2019-07-29

      These are the new files we need to add the new _configsvrRenameCollection command:

      The only thing the _configsvrRenameCollection command's run needs to do for this ticket is

      • parse the ConfigsvrRenameCollectionRequest (see an example)
      • take NamespaceSerializer locks on the database and collection names that were in the request (see an example)
      • take distributed locks on the database and collection names that were in the request(see an example)

      There is no need to add explicit tests of the new command, but several jstests that expect test cases for each command will fail. Luckily, the jstest you've been working with, database_and_shard_versioning_all_commands.js, is one such test that will fail, so you can run it locally and expect it to fail to check that you've compiled the new command in correctly.

            Assignee:
            jason.zhang@mongodb.com Jason Zhang
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: