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

Future continuations must capture vector clock as shared pointer

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0, 6.0.15, 7.0.8, 5.0.27, 7.3.2
    • Affects Version/s: 5.0.0, 6.0.0, 7.0.0, 7.3.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v7.3, v7.0, v6.0, v5.0
    • CAR Team 2024-04-01
    • 7
    • 1

      All vector clock related future chains capture a non-shared reference to this (e.g. here or here). This can be problematic when a continuation executes during shutdown because the vector clock may be cleared up before a thread tries to access it.

      The solution will be to always pass "this, self = shared_from_this()" to continuations.

            Assignee:
            adam.farkas@mongodb.com Wolfee Farkas
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: