GenerateMaxBsonSizeQueryShape unittest is flaky

XMLWordPrintableJSON

    • Query Integration
    • Minor Change
    • ALL
    • v9.0
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This test asserts that an entry cannot be registered in the query stats store if the query shape is larger than BSON max limit. However, this test was wrong. The entry created is not larger than BSON max limit, and the test was always passing because the rate limit was 0. SERVER-116390 increase the default rate limit, so now this test will fail 1 in every 100 runs because the rate limit will allow the entry to be collected and the entry is not larger than BSON max, so it can be collected.

      Additionally, during investigation the test uncovered that query stats doesn't gracefully handle and can error with large query shapes. We should fix that in this test to skip registering query stats and skip returning entries that would make the entire command error.

            Assignee:
            Gil Alon
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: