chore(shell-api): accept viewless timeseries bucketsNs in sharded stats test MONGOSH-2680 - #2767
Merged
Merged
Conversation
… test MONGOSH-2680 The 'sharded timeseries collections returns the collection stats' test hard-coded the legacy '<db>.system.buckets.<coll>' namespace for timeseries.bucketsNs. Newer servers (viewless timeseries) no longer expose the explicit buckets namespace and report '<db>.<coll>' instead, so the assertion fails on the mlatest variant. Accept both namespace forms via oneOf, mirroring the non-sharded fix from MONGOSH-1967 (#2635) which missed this sharded case. Product code (collection.ts) already passes bucketsNs through from the server and looks up the config catalog by both namespaces, so no product change is required.
nbbeeken
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MONGOSH-2680
The sharded timeseries
collection.stats()test hard-coded the legacy<db>.system.buckets.<coll>namespace fortimeseries.bucketsNs. Newer (viewless timeseries) servers no longer expose the explicit buckets namespace and report<db>.<coll>, so the assertion fails on thetests_win32-mlatestvariant.Accept both namespace forms via
oneOf, mirroring the non-sharded fix from MONGOSH-1967 (#2635) which missed this sharded case. Product code already passesbucketsNsthrough from the server, so this is a test-only fix.Verification
The previously-failing task passes on this PR's patch (live latest-alpha server):
test_shell_api/tests_win32-mlatest_n24— success, 2078 passing / 0 failing (was 2077 / 1 failing on mainline).