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

fix: full_scan can't scan data completely in some occassions #825

Merged
merged 7 commits into from
Oct 13, 2021

Conversation

cauchy1988
Copy link
Contributor

What problem does this PR solve?
#824

What is changed and how does it work?
The previous server-side on_get_scanners function judged whether it is full_scan or non-full_scan by whether the start_key in the request structure is filled with hash_key, which will cause a bug in the issue; the way to fix here is to directly add a field to the request structure to determine

Test
manual test

@foreverneverer
Copy link
Contributor

Which client version when encounter the bug? Maybe you can see the replay and make sure if the problem has fixed:
#824 (comment)

@Smityz
Copy link
Contributor

Smityz commented Oct 13, 2021

I don't think it's the root cause of the bug. You can fix c++ client by XiaoMi/pegasus-java-client#156

@Smityz Smityz changed the title Fix full scan fix: full_scan can't scan data completely in some occassions Oct 13, 2021
@Smityz
Copy link
Contributor

Smityz commented Oct 13, 2021

Could you format your code? Otherwise, it can't pass the CI.
use ./scripts/format_files.sh

rd_opts.total_order_seek = true;
rd_opts.prefix_same_as_start = false;
}
if (_data_cf_opts.prefix_extractor && request.full_scan) {
Copy link
Contributor

@levy5307 levy5307 Oct 13, 2021

Choose a reason for hiding this comment

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

This will leads to compatibility issues. For example, if old version client calls new version server(which use request.full_scan to judge whether it is full scan), the full_scan will always be false in request. And full scan can't works well in this situation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, wait me to change a little

@Smityz
Copy link
Contributor

Smityz commented Oct 13, 2021

LGTM

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.

4 participants