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

Fast initial split algorithm produces corrupted routing info if passed unsorted zones list

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.5, 4.1.5
    • Affects Version/s: 4.0.3
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Sharding 2018-11-19

      The fast initial split algorithm operates by iterating the set of zones for a collection and writing chunks for each zone and for each "hole" between zones. However, the main assumption of this logic is that the set of zones comes in sorted order. Otherwise, the results are unpredictable.

      The current caller of the algorhtm doesn't pass a sort based on the min key of the tags, which means tags could come in the order in which they were inserted, which is not necessarily sorted.

      This is not a data-loss bug, but it renders the Geo sharding feature unusable in random cases.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: