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

Investigate potential issues due to lack of ordering in onInitialDataAvailable calls

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • v8.0
    • CAR Team 2024-09-30, CAR Team 2024-10-14, CAR Team 2024-10-28
    • 1

      SERVER-89285 recently introduced a local catalog view reload in one of the ReplicaSetAwareService::onInitialDataAvailable hooks. However, other onInitialDataAvailable hooks might depend on the the local catalog being already reloaded (e.g. ShardingRecoveryService), but there is no ordering enforcement in how we call the hooks of each registered ReplicaSetAwareService.

      We should audit if this is an actual issue, and also implement a mechanism to prevent this kind of dependency issues being inadvertently introduced in the future.

      We should also check if there might be other dependencies between hooks other than the local catalog.

            Assignee:
            daniel.gomezferro@mongodb.com Daniel Gomez Ferro
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: