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

Audit time-series unit tests for places where we could validate buckets

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Storage Execution 2025-04-14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have a good deal of unit tests for time-series collections, and it could be beneficial to audit existing tests for places where we can validate the buckets collections that we're operating on in the tests.

      For example, if we had validated our buckets collection for the tests around measurement-level deletes, we potentially could have detected that it was possible for the control.min time to change, since validation would have detected that the control.min time did not match with the timestamp embedded in the bucket id.

      The most straightforward way to approach this could be to add some validation in the teardown function of the test fixtures that we use in our time-series unit tests.

            Assignee:
            stephanie.eristoff@mongodb.com Stephanie Eristoff
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None