-
Notifications
You must be signed in to change notification settings - Fork 185
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
Add requested sizes to memory exceptions and logs. #5346
Conversation
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.
Thanks for the changes! We also need to adapt the error message to match the format we expect in the case we cannot load tile offsets for sparse readers too:
@@ -346,26 +346,83 @@ SparseGlobalOrderReader<BitmapType>::create_result_tiles( | |||
// Get the number of fragments to process and compute per fragment memory. | |||
uint64_t num_fragments_to_process = | |||
tmp_read_state_.num_fragments_to_process(); | |||
per_fragment_memory_ = memory_budget_.total_budget() * | |||
memory_budget_.ratio_coords() / | |||
num_fragments_to_process; |
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.
This adds some more context to exceptions and logging when hitting cases where we have exceeded memory budgets.
TYPE: NO_HISTORY
DESC: Add requested sizes to memory exceptions and logs.