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

Make auth_sharding_cmd_metadata.js start shards as replica sets

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.1, 4.7.0
    • Component/s: Sharding
    • Labels:
      None

      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

            Assignee:
            tommaso.tocci Tommaso Tocci
            Reporter:
            cheahuychou.mao Cheahuychou Mao
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: