[Propagating ShardId] Send ShardId to Extensions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The $search extension will eventually need the shardId in order to pass it to external infrastructure (see context below). Currently, the only shard information that an extension has access to is the inRouter flag to distinguish between mongos and mongod, but this does not identify which shard a mongod belongs to.

      Goal: Add a shardId field to the context that is passed to an extension during the AstNode to LogicalStage transformation (bind).

      Context: https://docs.google.com/document/d/18VUMkOxYZl8g350eSEZ2Pwsv3MOjePmKanjdtwDiock/edit?disco=AAAB0uH_AUU

       

            Assignee:
            Josh Siegel
            Reporter:
            Alexander Lukyanchikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: