Skip to content

chore(shell-api): accept viewless timeseries bucketsNs in sharded stats test MONGOSH-2680 - #2767

Merged
ivandevp merged 2 commits into
mainfrom
MONGOSH-2680-sharded-timeseries-bucketsns
Jul 9, 2026
Merged

chore(shell-api): accept viewless timeseries bucketsNs in sharded stats test MONGOSH-2680#2767
ivandevp merged 2 commits into
mainfrom
MONGOSH-2680-sharded-timeseries-bucketsns

Conversation

@ivandevp

@ivandevp ivandevp commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

MONGOSH-2680

The sharded timeseries collection.stats() test hard-coded the legacy <db>.system.buckets.<coll> namespace for timeseries.bucketsNs. Newer (viewless timeseries) servers no longer expose the explicit buckets namespace and report <db>.<coll>, so the assertion fails on the tests_win32-mlatest variant.

Accept both namespace forms via oneOf, mirroring the non-sharded fix from MONGOSH-1967 (#2635) which missed this sharded case. Product code already passes bucketsNs through 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).

ivandevp added 2 commits July 9, 2026 10:39
… 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.
@ivandevp
ivandevp merged commit 8f657eb into main Jul 9, 2026
150 of 156 checks passed
@ivandevp
ivandevp deleted the MONGOSH-2680-sharded-timeseries-bucketsns branch July 9, 2026 22:19
@Anemy Anemy changed the title fix(shell-api): accept viewless timeseries bucketsNs in sharded stats test MONGOSH-2680 chore(shell-api): accept viewless timeseries bucketsNs in sharded stats test MONGOSH-2680 Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants