Consider using kIdempotent in SessionsCollectionConfigServer::_generateIndexesIfNeeded

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 1
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      The command send to shard in this function is safe to retry with the kIdempotent policy. The command sent is always {createIndex: "config.sessions", indexes: {lastUse: 1}}. We should consider a looser retry policy in this case.

      See src/mongo/db/global_catalog/ddl/sessions_collection_config_server.cpp:162 for more detail.

            Assignee:
            Unassigned
            Reporter:
            Guillaume Racicot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: