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

Use unordered object comparison in aggregation for finding inconsistent sharded indexes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      The aggregation used to find sharded indexes that aren't on all shards with chunks (added by SERVER-44916 and modified by SERVER-46084) only considers a subset of the possible properties in an index specification when comparing them to work around the inability to cleanly compare BSON objects ignoring field order in aggregation. After SERVER-29425 adds official support for ordering an array, the pipeline should be updated to compare entire index specifications with unordered object comparisons using $objToArray, the new sort expression, and then $arrayToObj.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              jack.mulrow Jack Mulrow
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: