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

DatabaseVersion idl type should not use lexicographic comparison

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.7.3
    • Fix Version/s: 3.7.4
    • Component/s: Sharding
    • Labels:
      None

      Description

      This is because the DatabaseVersion is a (UUID, int) pair.

      We want "<" to check if the UUIDs are the same, and the int is less than the other int. But today, it will do a lexicographic comparison of the UUIDs, which leads to unpredictable behavior.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: