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

Hide API complexity about sharded collections

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Catalog and Routing

    Description

      We can find throughout the code several instances where we check whether the collection is sharded in order to take a decision, now that we're setting the groundwork for PM-3338, we should change the API to hide some details about the collection, so there are no wrong assumptions about data placement.

      We could for the pointed case, for example, expose documentBelongsToMe directly inside the ChunkManager but internally making it a no-op for non splitable collections, considering, there won't be any need to filter results from an unsplittable collection.

      The purpose of this ticket is to remove the isSharded function from the collection description and properly handle the places where the function is called.

      Attachments

        Activity

          People

            backlog-server-catalog-and-routing Backlog - Catalog and Routing
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: