Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add out of order tests #25869

Merged
merged 2 commits into from
Jan 20, 2025
Merged

chore: add out of order tests #25869

merged 2 commits into from
Jan 20, 2025

Conversation

praveen-influx
Copy link
Contributor

  • assertions for what remains in the queryable buffer when out of order timestamps are encountered. This could be true for back filling, and in that case back filled data takes over the queryable buffer and moving all the recent data into parquet files (as part of snapshotting)
  • assertions to check last cache still retains the most recent values when out of order data is encountered

@@ -2439,6 +2471,378 @@ mod tests {
);
}

#[test_log::test(tokio::test)]
async fn test_check_mem_and_force_snapshot() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not a new test, just moved it up so that it's not between test helper functions at the bottom.

@praveen-influx praveen-influx requested a review from a team January 20, 2025 12:58
- assertions for what remains in the queryable buffer when out of order
  timestamps are encountered. This could be true for back filling, and
  in that case back filled data takes over the queryable buffer and
  moving all the recent data into parquet files (as part of snapshotting)
- assertions to check last cache still retains the most recent values
  when out of order data is encountered
@praveen-influx praveen-influx force-pushed the praveen/out-of-order-test branch from 83161ef to e7b4ee6 Compare January 20, 2025 12:58
influxdb3_write/src/write_buffer/mod.rs Outdated Show resolved Hide resolved
Co-authored-by: Trevor Hilton <[email protected]>
@praveen-influx praveen-influx force-pushed the praveen/out-of-order-test branch from 1ce7654 to 8e18f02 Compare January 20, 2025 16:15
@praveen-influx praveen-influx merged commit d3ad071 into main Jan 20, 2025
13 checks passed
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.

3 participants