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

Incorrectly coded chunk/shard version comparison

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.4.4, 2.5.0
    • Component/s: Internal Code, Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      The "<=" comparison operator for chunk/shard versions is incorrectly coded to execute a "<" comparison.

      Limited testing suggests minimal impact; adding a "fatal assert" on the missed case (where the values compared are equal) showed that a test for reload failed, leading to unnecessary reloads, but did not reveal other symptoms.

      For 2.5 and 2.4, the affected code is in src/mongo/s/chunk_version.h.
      For 2.2, the affected code is in src/mongo/s/util.h.

        Attachments

          Activity

            People

            • Assignee:
              tad Tad Marshall
              Reporter:
              tad Tad Marshall
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: