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

Add explicit initializing constructors to the sharding type_* classes

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding

    Description

      The sharding metadata management classes under mongo/s/catalog/type_* all use setters and validators, which makes them prone to errors due to being partially constructed and require the callers to invariant on their validity.

      It would be much cleaner if we added an explicit construction functions so we can never have partially constructed objects apart from the cases where this is necessary for backwards compatibility.

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: