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

PrepareConflictTracker shouldn't assume TickSource is monotonically increasing

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2022-02-21
    • 160

      In PrepareConflictTracker we assume TickSource is monotonically increasing and invariant when the clock goes back in time: https://github.com/mongodb/mongo/blob/c7bfbfeefcce9c73997e61d19c5efd7d57cf8971/src/mongo/db/prepare_conflict_tracker.cpp#L52-L62

      In some platforms (MacOS) the clock is not monotonically increasing, we shouldn't rely on that.

            Assignee:
            daniel.gomezferro@mongodb.com Daniel Gomez Ferro
            Reporter:
            daniel.gomezferro@mongodb.com Daniel Gomez Ferro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: