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

Delay between user creation / update and access rights being updated in sharded clusters

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • None
    • None
    • None
    • None
    • ALL

    Description

      Since Mongo 4.4, we are getting spurious errors in our test suite because there is a delay between the creation of a mongo user and the access rights being actually available, but only in sharded clusters.

      Our test creates a user that has a read only role to a single database and then instantly tries reading from the database using this user. On 4.4 this test fails about 90% of the time. It seems like there is a delay in the propagation of access rights.

      I tried adding a delay of 10 seconds between the call to create the user and the call that tests the access rights and the issue no longer appears.

      So it seems like in Mongo 4.4 user creation and/or propagation is asynchronous, but I could not find anything in the docs about this. I tried setting the write concern to all nodes but that does not fix it.

      Attachments

        Activity

          People

            eric.sedor@mongodb.com Eric Sedor
            simon.bernier-st-pierre@ubisoft.com Simon Bernier St-Pierre
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: