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

Fix histogram generation on MacOs

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • QO 2022-12-26

      Builds on MacOs create a different histogram from the same data than the histogram on Linux and Windows builds.
      The data set in MinValueMixedHistogramFromData test

      100 1000 "abc" "xyz" ObjectId("63340d8d27afef2de7357e8d") 1506777923000 1516864323000 Timestamp(1516864323, 0) Timestamp(1526864323, 0)

      creates a 6-bucket histogram on Linux

       

      {{100, 1, 0, 0},
      {1000, 1, 0, 0},
      {"abc", 1, 0, 0},
      {ObjectId("63340d8d27afef2de7357e8d"), 1, 1, 1},
      {1516864323000, 1, 1, 1},
      {Timestamp(1526864323, 0), 1, 1, 1},
      }
      

       
      On MacOs the same data produce

      {{100, 1, 0, 0},
      {1000, 1, 0, 0},
      {ObjectId("63340d8d27afef2de7357e8d"), 1, 2, 2},
      {1506777923000, 1, 0, 0},
      {1516864323000, 1, 0, 0},
      {Timestamp(1526864323, 0), 1, 1, 1},
      }
      

       
      In other words, on MacOs both string values are packed inside the bucket for the ObjectId values. This enables an extra histogram bucket for the dates, and that results in different CE.

            Assignee:
            alya.berciu@mongodb.com Alya Berciu
            Reporter:
            milena.ivanova@mongodb.com Milena Ivanova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: