Make auth_sharding_cmd_metadata.js start shards as replica sets

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.1, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • v4.4
    • Sharding 2020-06-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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".

            Assignee:
            Tommaso Tocci
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: