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: discard excessive errors (#22379) #22397

Merged
merged 1 commit into from
Sep 3, 2021
Merged

Conversation

davidby-influx
Copy link
Contributor

The tsmBatchKeyIterator discards excessive errors to avoid
out-of-memory crashes when compacting very corrupt files.
Any error beyond DefaultMaxSavedErrors (100) will be
discarded instead of appended to the error slice.

closes #22328

(cherry picked from commit e53f75e)

Closes #22382

The tsmBatchKeyIterator discards excessive errors to avoid
out-of-memory crashes when compacting very corrupt files.
Any error beyond DefaultMaxSavedErrors (100) will be
discarded instead of appended to the error slice.

closes #22328

(cherry picked from commit e53f75e)
Copy link
Member

@gwossum gwossum left a comment

Choose a reason for hiding this comment

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

LGTM

@davidby-influx davidby-influx merged commit c0dd3d3 into 2.0 Sep 3, 2021
@davidby-influx davidby-influx deleted the DSB_append_error_2.0 branch September 3, 2021 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(*tsmBatchKeyIterator) should not store too many errors [port to 2.0]
2 participants