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

Verify window_functions_on_timeseries_coll.js correctness

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Hide

      See failure log attached (as the current assert doesn't print anything, I generated this locally).

      Base off SERVER-68710 PR to verify directly.

      Show
      See failure log attached (as the current assert doesn't print anything, I generated this locally). Base off SERVER-68710 PR to verify directly.

      jstests\aggregation\sources\setWindowFields\window_functions_on_timeseries_coll.js

      SERVER-68710 is addressing an issue with arrayEq (and related helpers in jstests/aggregation/extras/utils.js), where comparison of Object subtypes (NumberLong, ObjectId, ...) always evaluated to true.

      And this test fails on patch runs:

      https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_windows_all_feature_flags_required_cqf_passthrough_patch_007aef8fa15b3c54019708ddaa36098d61462e06_637cd0f5e3c331777896fa42_22_11_22_13_40_03/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Also consider use of assertArrayEq, which will print the expected vs actual objects.
      Example:

          assertArrayEq({expected: expectedResults, actual: coll.aggregate(pipeline).toArray()});
      

      In this particular instance, it might only be a typo, but please check.
      https://github.com/10gen/mongo/blob/master/jstests/aggregation/sources/setWindowFields/window_functions_on_timeseries_coll.js#L190

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: