-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Pass rate_limiter_priority through filter block reader functions to FS #10251
Conversation
@gitbw95 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -454,12 +454,14 @@ class BlockBasedTable : public TableReader { | |||
const bool no_io, | |||
const SliceTransform* prefix_extractor, | |||
GetContext* get_context, | |||
BlockCacheLookupContext* lookup_context) const; | |||
BlockCacheLookupContext* lookup_context, | |||
Env::IOPriority rate_limiter_priority) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we ever have more than two parameters relating to when & how to do I/O if needed (currently no_io
and rate_limiter_priority
), then I think it would be worth wrapping those into one bundled parameter. But two is OK.
facebook#10251) Summary: With facebook#9996 , we can pass the rate_limiter_priority to FS for most cases. This PR is to update the code path for filter block reader. Pull Request resolved: facebook#10251 Test Plan: Current unit tests should pass. Reviewed By: pdillinger Differential Revision: D37427667 Pulled By: gitbw95 fbshipit-source-id: 1ce5b759b136efe4cfa48a6b97e2f837ff087433
#10251) Summary: With #9996 , we can pass the rate_limiter_priority to FS for most cases. This PR is to update the code path for filter block reader. Pull Request resolved: #10251 Test Plan: Current unit tests should pass. Reviewed By: pdillinger Differential Revision: D37427667 Pulled By: gitbw95 fbshipit-source-id: 1ce5b759b136efe4cfa48a6b97e2f837ff087433
Summary:
With #9996 , we can pass the rate_limiter_priority to FS for most cases. This PR is to update the code path for filter block reader.
Test Plan:
Current unit tests should pass.