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

listIndexes on config.system.sessions does not return correct indexes

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.16, 4.2.2, 4.0.14
    • Component/s: Sharding
    • Sharding
    • ALL

      The only sharded collection which has the config server as the primary shard is config.system.sessions. Unfortunately, the code path that the config server calls to create indexes on the sessions collection would currently invariant if one of the targeted shards was the config server itself. To get around this, index commands do not target the config shard, but as a result, listIndexes on config.system.sessions will not return the correct indexes. This bug existed prior to 4.4 as well, since the old code to create indexes on the sessions collection also did not build the index on the config server.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: