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

Make auth_sharding_cmd_metadata.js start shards as replica sets

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.1, 4.7.0
    • None
    • Sharding
    • None
    • Fully Compatible
    • v4.4
    • Sharding 2020-06-29

    Description

      When starting shards as replica sets, this test fails to create user on the shard. The solution is to use st.rs0.getPrimary() instead of st.shard0. However, we want to investigate why doing this fixes the auth issue.

      Also, when starting shards as replica sets, we need to log user "internal" out by doing st.s.getDB('admin').logout(); before st.stop(). Otherwise, the test will hang when ReplSetTest keeps trying to run isMaster against the admin db and failing with "too many users are authenticated".

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: