ShardingTest tries to perform write without proper auth

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2022-06-27
    • 15
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      here. It should probably be wrapped inside the authutil.asCluster like the few lines below it or maybe just remove it? Not sure if it's needed given that initiating a replica set should generate writes on the primary.

      Resulting with the logs:

      2021-11-11T08:25:38.953+00:00 I  ACCESS   20436   [conn1] "Checking authorization failed","attr":{"error":{"code":13,"codeName":"Unauthorized","errmsg":"not authorized on admin to execute command { insert: \"foo\", ordered: true, lsid: { id: UUID(\"8fa5388e-c828-4fe1-9328-ff9a12105b95\") }, $readPreference: { mode: \"secondaryPreferred\" }, $db: \"admin\" }"}}
      

            Assignee:
            Sanika Phanse (Inactive)
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: