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

ShardingTest tries to perform write without proper auth

    XMLWordPrintableJSON

Details

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

    Description

      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\" }"}}
      

      Attachments

        Activity

          People

            sanika.phanse@mongodb.com Sanika Phanse (Inactive)
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: