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

Address bug spotted by RepositionLastSplitPointsTest

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0, 5.1.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.1
    • 164

      The RepositionLastSplitPointsTest test is very "sensible" as it expect the auto splitter behaviour to be very precise.

      It helped spotting the following bug that needs to be solved in order to avoid future failures: this strict gt comparison needs to be replaced by a >=, otherwise the generated chunks will always contain one key more than the expected size.

      Moreover, the size of the string inserted in the generated documents should be changed to 1024^2 - 24 in order to obtain documents of exactly 1MB (contrary to the calculation done under SERVER-60463, that was done by relying on a wrong estimated data size).

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: