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: do not panic on cleaning up failed iterators #21666

Merged
merged 3 commits into from
Jun 11, 2021

Conversation

davidby-influx
Copy link
Contributor

@davidby-influx davidby-influx commented Jun 11, 2021

We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes #19579
Closes #19476

We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes #19579
Closes #19476
@davidby-influx davidby-influx self-assigned this Jun 11, 2021
@davidby-influx davidby-influx changed the title fix: Do not panic on cleaning up failed iterators fix: do not panic on cleaning up failed iterators Jun 11, 2021
query/iterator.go Outdated Show resolved Hide resolved
This was linked to issues Jun 11, 2021
@davidby-influx davidby-influx merged commit acc4105 into master-1.x Jun 11, 2021
@davidby-influx davidby-influx deleted the DSB_itr_close branch June 11, 2021 18:29
davidby-influx added a commit that referenced this pull request Jun 15, 2021
We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes #19579
Closes #19476

(cherry picked from commit acc4105)
davidby-influx added a commit that referenced this pull request Jun 15, 2021
We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes #19579
Closes #19476

(cherry picked from commit acc4105)

Closes #21667
davidby-influx added a commit that referenced this pull request Apr 29, 2022
We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes #19579
Closes #19476

(cherry picked from commit acc4105)

closes #23271
davidby-influx added a commit that referenced this pull request Apr 29, 2022
We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes #19579
Closes #19476

(cherry picked from commit acc4105)

closes #23271
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 11, 2024
We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes influxdata#19579
Closes influxdata#19476
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 27, 2024
We have seen occasional panics in Iterators.Close()
when cleaning up after failed iterator creation.
This commit checks for nil on any iterator to be
closed, and now returns any errors generated by
that Close().

Closes influxdata#19579
Closes influxdata#19476
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.

Influxdb 1.8.2 segmentation violation Panic in 1.8.2
2 participants