Skip to content

Conversation

FGasper
Copy link
Collaborator

@FGasper FGasper commented Sep 18, 2025

This changeset adds basic time-series support.

Because of the verifier’s _id dependency, this verifies buckets rather than logical measurements. This implies a requirement that the migration copy time-series collections via buckets as well since a logical replication would not preserve artifacts like bucket _id, and possibly not even the grouping of measurements.

Because of the bucket-level verification, details in mismatch reports are not very useful for time-series because they reference bucket-level fields that the logical API doesn’t expose.

This works with per-shard verification (i.e., it can verify with or without a view). It does not currently support namespace filtering.

@FGasper FGasper requested a review from tdq45gj September 19, 2025 18:16
@FGasper FGasper marked this pull request as ready for review September 19, 2025 18:16
@FGasper FGasper changed the title Add time-series support REP-6634 Add time-series support Sep 19, 2025
Copy link
Collaborator

@tdq45gj tdq45gj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

switch srcSpec.Type {
case "collection":
canCompareData = true
case "view":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would prefer canCompareData being set to false explicitly.

)

// TestTimeSeries_BucketsOnly confirms the verifier’s time-series coverage
// when only the buckets exist. This is important when verifying shard-to-shard.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is important when verifying shard-to-shard.

Do we test shard-to-shard? Just curious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shard-to-shard verification has been tested, yeah. Nothing is automated, though.

@FGasper FGasper merged commit 439fc9d into mongodb-labs:main Sep 22, 2025
98 checks passed
@FGasper FGasper deleted the felipe_timeseries_provisional branch September 22, 2025 19:29
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