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

Move user cache invalidation from OpObserver to onCommit handlers

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0, v6.0, v5.0
    • Security 2024-08-19
    • 0

      We currently invalidate the user cache when we observe an operation that modifies a user's roles. This faces the problem that if we need to acquire the user before that observed operation actually gets committed, we fetch the old out-of-date data from disk. We will rectify this by moving invalidation to an onCommit handler, created inside of the OpObserver callback.

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            gabriel.marks@mongodb.com Gabriel Marks
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: