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: return and respect cursor errors #24791

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Conversation

davidby-influx
Copy link
Contributor

@davidby-influx davidby-influx commented Mar 20, 2024

ArrayCursors were ignoring errors, which led to panics when nil
cursors were operated on. This fix passes errors back up the stack
and uses them to enforce healthy cursor creation.

Closes #24789

@davidby-influx davidby-influx marked this pull request as ready for review March 21, 2024 17:40
@davidby-influx
Copy link
Contributor Author

Originally spurred by #24536

stuartcarnie
stuartcarnie previously approved these changes Mar 26, 2024
Copy link
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

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

Looks great.

Some nits for spaces → tabs in the .tmpl files

storage/reads/array_cursor.gen.go.tmpl Outdated Show resolved Hide resolved
tsdb/engine/tsm1/array_cursor.gen.go.tmpl Outdated Show resolved Hide resolved
tsdb/engine/tsm1/array_cursor.gen.go.tmpl Outdated Show resolved Hide resolved
tsdb/engine/tsm1/array_cursor_iterator.gen.go.tmpl Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻 great to see coverage

@davidby-influx davidby-influx merged commit fe6c64b into master-1.x Mar 26, 2024
9 checks passed
@davidby-influx davidby-influx deleted the DSB_cursor_err_fix branch March 26, 2024 00:22
davidby-influx added a commit that referenced this pull request Mar 26, 2024
ArrayCursors were ignoring errors, which led to panics when nil
cursors were operated on. This fix passes errors back up the stack
and uses them to enforce healthy cursor creation.

Closes #24789
---------
Co-authored-by: Stuart Carnie <[email protected]>

(cherry picked from commit fe6c64b)

closes #24836
davidby-influx added a commit that referenced this pull request Mar 26, 2024
ArrayCursors were ignoring errors, which led to panics when nil
cursors were operated on. This fix passes errors back up the stack
and uses them to enforce healthy cursor creation.

Closes #24789
---------
Co-authored-by: Stuart Carnie <[email protected]>

(cherry picked from commit fe6c64b)

closes #24836
davidby-influx added a commit that referenced this pull request Mar 27, 2024
ArrayCursors were ignoring errors, which led to panics when nil
cursors were operated on. This fix passes errors back up the stack
and uses them to enforce healthy cursor creation.

Closes #24789
---------
Co-authored-by: Stuart Carnie <[email protected]>

(cherry picked from commit fe6c64b)

closes #24836

(cherry picked from commit 49d0bef)

closes #24826
davidby-influx added a commit that referenced this pull request Mar 27, 2024
ArrayCursors were ignoring errors, which led to panics when nil
cursors were operated on. This fix passes errors back up the stack
and uses them to enforce healthy cursor creation.

Closes #24789
---------
Co-authored-by: Stuart Carnie <[email protected]>

(cherry picked from commit fe6c64b)

closes #24836

(cherry picked from commit 49d0bef)

closes #24826
davidby-influx added a commit that referenced this pull request Apr 5, 2024
ArrayCursors were ignoring errors, which led to panics when nil
cursors were operated on. This fix passes errors back up the stack
and uses them to enforce healthy cursor creation.

Closes #24789
---------
Co-authored-by: Stuart Carnie <[email protected]>

(cherry picked from commit fe6c64b)

closes #24824
davidby-influx added a commit that referenced this pull request Apr 8, 2024
ArrayCursors were ignoring errors, which led to panics when nil
cursors were operated on. This fix passes errors back up the stack
and uses them to enforce healthy cursor creation.

Closes #24789

Co-authored-by: Stuart Carnie <[email protected]>

(cherry picked from commit fe6c64b)

closes #24824
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.

2 participants