Use KeyspaceSnapshotFile to filter range files#9511
Conversation
| if (params->matchFilters(keyRange)) { | ||
| files.push_back(rangeFile); | ||
| } | ||
| } |
There was a problem hiding this comment.
Break from the loop when there is no error?
There was a problem hiding this comment.
No. If there are two snapshots within the version range, we should gather all files for both. The filtering based on version is at line 858.
There was a problem hiding this comment.
How will the range files be used? Say there are multiple range files for the same key within the interested beginVersion and endVersion?
There was a problem hiding this comment.
It's up to the user to decide that. This tool just output all matching (version, key, value) tuples.
Result of foundationdb-pr-macos-m1 on macOS Monterey 12.x
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Monterey 12.x
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Doxense CI Report for Windows 10
|
| if (params->matchFilters(keyRange)) { | ||
| files.push_back(rangeFile); | ||
| } | ||
| } |
There was a problem hiding this comment.
How will the range files be used? Say there are multiple range files for the same key within the interested beginVersion and endVersion?
Set max length as well to avoid TraceEventOverflow.
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr-macos-m1 on macOS Monterey 12.x
|
Result of foundationdb-pr-macos on macOS Monterey 12.x
|
Doxense CI Report for Windows 10
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Monterey 12.x
|
Result of foundationdb-pr-macos-m1 on macOS Monterey 12.x
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Doxense CI Report for Windows 10
|
Replace this text with your description here...
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branchormainif this is the youngest branch)