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

output of padding factor is not deterministic, uses globals

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.2
    • Internal Code
    • None

    Description

      test padding.js fails for me quite often when using parallel tests.
      Running single test seems to pass fairly reliably.
      Failure is for line 61:
      assert(p.stats().paddingFactor > ps + 0.05);

      See below for padding numbers during tests.
      Basically it seems that the padding numbers are close but narrowly miss the target.
      Is there a chance that padding is affected by other things happening on global / db / other collection?
      Or maybe test runs slower in parallel and doesnt hit the threshold, seems like the room for error is small.

      Good run:
      1
      1.1000000000000036
      1.1980000000000075
      1.3010000000000113
      1.400000000000015
      1.4980000000000189
      1.6010000000000226
      1.7000000000000264
      1.7980000000000302
      1.901000000000034
      1.9960000000000377
      1.9620000000000415
      1.9290000000000451
      1.8960000000000488
      1.8620000000000525
      1.8290000000000561
      1.7960000000000598
      1.7620000000000635
      1.7290000000000671
      1.6960000000000708
      1.6620000000000745
      1.6930000000000782
      1.728000000000082
      1.7580000000000857
      1.7570000000000894
      1.760000000000093
      1.7580000000000968
      1.7570000000001005
      1.7600000000001041
      1.758000000000108
      1.7570000000001116
      1.7510000000001154
      1.738000000000119
      1.7290000000001227
      1.7150000000001264
      1.70600000000013
      1.7210000000001338
      1.7560000000001375
      1.7860000000001413
      1.813000000000145

      Bad run:
      1
      1.105000000000003
      1.2040000000000068
      1.3060000000000107
      1.4020000000000148
      1.4940000000000193
      1.5930000000000235
      1.6920000000000273
      1.7900000000000311
      1.8940000000000348
      1.9920000000000386
      1.9590000000000423
      1.925000000000046
      1.8920000000000496
      1.8580000000000534
      1.826000000000057
      1.7920000000000607
      1.761000000000064
      1.7270000000000678
      1.6950000000000713
      1.661000000000075
      1.6930000000000787
      1.7330000000000818
      1.7660000000000853
      1.7670000000000887
      1.7680000000000922
      1.7710000000000958
      1.774000000000099
      1.7750000000001025
      1.780000000000106
      1.7790000000001096
      1.7750000000001127
      1.7660000000001164
      1.7570000000001196
      1.7450000000001236
      1.7470000000001256
      1.7660000000001292
      1.797000000000133
      1.813000000000137
      1.8160000000001406

      Attachments

        Activity

          People

            Unassigned Unassigned
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: