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(storage): fix wrong parameter of hit_sstable_bloom_filter #6400

Merged
merged 3 commits into from
Nov 16, 2022

Conversation

Li0k
Copy link
Contributor

@Li0k Li0k commented Nov 16, 2022

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

After merge #6130, we found some wrong when using state_store_v1 backend.

This PR fix wrong parameter of hit_sstable_bloom_filter and reduce UserKey::encode times

Please explain IN DETAIL what the changes are in this PR and why they are needed:

  • fix wrong parameter of hit_sstable_bloom_filter
  • remove UserKey::for_test in state_store
  • reduce UserKey::encode times

Checklist

  • [ ] I have written necessary rustdoc comments
  • [ ] I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

@github-actions github-actions bot added the type/fix Bug fix label Nov 16, 2022
Copy link
Contributor

@Gun9niR Gun9niR left a comment

Choose a reason for hiding this comment

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

LGTM. Sorry for the trouble!!

Copy link
Contributor

@wenym1 wenym1 left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@codecov
Copy link

codecov bot commented Nov 16, 2022

Codecov Report

Merging #6400 (bd27323) into main (ddae931) will decrease coverage by 0.20%.
The diff coverage is 45.70%.

@@            Coverage Diff             @@
##             main    #6400      +/-   ##
==========================================
- Coverage   74.28%   74.07%   -0.21%     
==========================================
  Files         960      966       +6     
  Lines      156525   157887    +1362     
==========================================
+ Hits       116277   116962     +685     
- Misses      40248    40925     +677     
Flag Coverage Δ
rust 74.07% <45.70%> (-0.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/common/src/types/chrono_wrapper.rs 46.66% <0.00%> (-15.91%) ⬇️
src/common/src/types/interval.rs 72.10% <0.00%> (-7.47%) ⬇️
src/common/src/types/mod.rs 72.40% <0.00%> (ø)
src/ctl/src/cmd_impl/table/scan.rs 0.00% <0.00%> (ø)
src/expr/src/expr/build_expr_from_prost.rs 53.76% <0.00%> (-1.91%) ⬇️
src/expr/src/expr/expr_binary_nonnull.rs 62.80% <0.00%> (-8.89%) ⬇️
src/expr/src/expr/mod.rs 47.91% <0.00%> (-1.02%) ⬇️
src/expr/src/vector_op/date_trunc.rs 0.00% <0.00%> (ø)
...ntend/src/catalog/system_catalog/pg_catalog/mod.rs 0.00% <0.00%> (ø)
src/frontend/src/observer/observer_manager.rs 0.00% <0.00%> (ø)
... and 77 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mergify mergify bot merged commit ab6fad3 into main Nov 16, 2022
@mergify mergify bot deleted the li0k/storage_fix_hit_sstable_bloom_filter branch November 16, 2022 11:42
xxchan pushed a commit that referenced this pull request Nov 19, 2022
* fix(storage): fix wrong parameter of hit_sstable_bloom_filter

* fix(storage): fix typo

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants