Skip to content

Create validation runner #3360

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

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

ohadzeliger
Copy link
Contributor

@ohadzeliger ohadzeliger commented May 20, 2025

This PR introduces the RecordValidationRunner that combines the various pieces of the record validation framework.
This represents the externally visible API that we expect users to leverage in order to repair corrupt records in stores.
The repair runner has 2 main entry points:

  • runValidationStats that returns an aggregation of the errors found
  • runValidationAndRepair that returns (and optionally repairs) individual record state

Note that in this PR, repair option is not yet supported.

Resolves #3359

…record-validation-phase-2

# Conflicts:
#	fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/provider/foundationdb/cursors/throttled/ThrottledRetryingIterator.java
#	fdb-record-layer-core/src/test/java/com/apple/foundationdb/record/provider/foundationdb/cursors/throttled/ThrottledIteratorTest.java
- Added comments to tests
- extracted increaLimit and decreaseLimit methods, added tests
- Fixed issue with increase limit being stuck under 4
- Increase increment to 4
- make class EXPERIMENTAL
- added executor to whileTrue call
- always clearWeakReadSemantics=true
- improve close cursors
- catch `RunnerClosed` exception, don't retry
- Remove row limit controls
- Fix tests
- add deleteLimit to tests
- fix delete limit off-by-one bug
@ohadzeliger ohadzeliger self-assigned this May 20, 2025
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.

Create a record validation and repair runner
1 participant