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

Merged
merged 2 commits into from
Sep 3, 2021
Merged

fix: discard excessive errors #22379

merged 2 commits into from
Sep 3, 2021

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

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
tsdb/engine/tsm1/compact.go Outdated Show resolved Hide resolved
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.

Looks good! Glad you tested that the last error message was the proper error overflow message.

@davidby-influx davidby-influx merged commit e53f75e into master-1.x Sep 3, 2021
@davidby-influx davidby-influx deleted the DSB_append_error branch September 3, 2021 16:11
davidby-influx added a commit that referenced this pull request Sep 3, 2021
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)
davidby-influx added a commit that referenced this pull request Sep 3, 2021
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 #22380
davidby-influx added a commit that referenced this pull request Sep 3, 2021
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)
davidby-influx added a commit that referenced this pull request Sep 3, 2021
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)
davidby-influx added a commit that referenced this pull request Sep 3, 2021
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)
davidby-influx added a commit that referenced this pull request Sep 3, 2021
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 #22381
davidby-influx added a commit that referenced this pull request Sep 3, 2021
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
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.
2 participants