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

Rename getCurrentMetadata to getCollectionDescription and change the return type

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.5
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2020-02-10, Sharding 2020-02-24, Sharding 2020-03-09

      Description

      As part of the Make Migration Commit Protocol Robust to Network Errors and Failovers Epic, the CollectionShardingState interface will change, and to ease out and track the changes we'll make some assurances to the usage of the interface. The getCurrentMetadata function is used in several parts of the code to check for collection keys format and limits. Renaming the function will help to logically group this usage and separate it from calls that filter information (there is another ticket to rename getOrphansFilter).

      The return type must also fit the intended usage of the function, that is, only information about the sharded key should be accessed from this interface.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tommaso.tocci Tommaso Tocci
              Reporter:
              marcos.grillo Marcos José Grillo Ramirez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: