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

Prevent "back-in-time" change stream resume token on MongoS

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0, 6.0.7
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • QE 2023-03-20, QE 2023-04-03

    Description

      mongoS will crash with an invariant failure when:

      1. The initial resume token expected by mongoS is the split event fragment.
      2. On the shards, DSCSCheckResumability lets the base event through expecting it to be split.
      3. But there is no split stage, and the base event is returned to mongoS directly as-is.
      4. But the event's resume token is BEFORE the split, so mongoS has gone back-in-time.

      Attachments

        Activity

          People

            romans.kasperovics@mongodb.com Romans Kasperovics
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: