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

[v6.0] Avoid resetting AuthorizationManager in AuthorizationSessionTestFixture

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.0
    • Component/s: None
    • None
    • Server Security
    • Server Security 2025-04-14
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      AuthorizationSessionTestFixture inherits from ServiceContextMongodTest. The ServiceContextMongodTest constructor runs first and launches a separate thread for the JournalFlusher. The AuthorizationSessionTestFixture::setup() implementation runs after that and resets the AuthorizationManager to a separate instance. This can cause race conditions which result in transient failures.

      We should avoid resetting AuthorizationManager altogether in AuthorizationSessionTestFixture. If we have to, then we should ensure that the JournalFlusher is not started until the authorization manager has been fully reset.

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            varun.ravichandran@mongodb.com Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None