Skip to content

[SPARK-53105][Structured Streaming] Fix tests for checkpoint v2 in RocksDBSuite #51834

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bothra90
Copy link

@bothra90 bothra90 commented Aug 4, 2025

What changes were proposed in this pull request?

The current implementations of testWithStateStoreCheckpointIds and testWithStateStoreCheckpointIdsAndChangelogEnabled don't actually execute the passed test body. Instead, they just return a new closure and indicate successful execution, giving a false sense of security. This PR fixes these test wrappers to correctly execute the test body.

Additional change: Now that the tests are running correctly, we had to adjust the number of iterations in randomized snapshotting tests to reduce the duration for which we had to run the tests.

Why are the changes needed?

Since these tests were effectively no-ops, we had a chance of regressions in checkpoint v2 which would have passed undetected.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing and fixed unit tests now pass

Was this patch authored or co-authored using generative AI tooling?

No

@bothra90 bothra90 force-pushed the abhay/SPARK-53105 branch from 781c1ab to 9a92aec Compare August 5, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant