[SERVER-71376] Fix histogram generation on MacOs Created: 15/Nov/22  Updated: 30/Nov/22  Resolved: 30/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Milena Ivanova Assignee: Alya Berciu
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-71205 Fix the way we convert types to doubl... Closed
Related
related to SERVER-71725 Complete TODO listed in SERVER-71376 Closed
Operating System: ALL
Sprint: QO 2022-12-26
Participants:

 Description   

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.


Generated at Thu Feb 08 06:18:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.