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

Tests which write to ConfigServer collections are not safe to run in the sharding_csrs_continuous_config_stepdown suite

    XMLWordPrintable

Details

    • ALL
    • Sharding 2021-07-12, Sharding 2021-07-26, Sharding 2021-08-09
    • 0

    Description

      The changes from SERVER-51070 removed a special-cased logic on MongoS which was automatically retrying writes against the config server in exchange for them going through the regular write path.

      The original logic was parsing the internal requests and bubbling up the embedded errors, which were automatically retried, but this was only correct if the writes were actually idempotent (which is the case of our tests, but not safe for general writes to the config server).

      The regular write path uses a RetryPolicy::kNoRetry policy, which means NotPrimary errors for example will be passed directly back to the client. It should be the client (in this case the tests), which perform retries rather than MongoS doing it unconditionally.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-sharding-nyc Backlog - Sharding NYC
              kaloian.manassiev@mongodb.com Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: