Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

fix panic on shutdown: stop double closing the index #1748

Merged
merged 2 commits into from
Apr 13, 2020

Conversation

robert-milan
Copy link
Contributor

@robert-milan robert-milan commented Apr 3, 2020

I decided to remove the Stop() call on the index from apiServer instead of from the main. Main performs checks to determine whether or not it is a query pod, and it makes more sense to stop it here.

@robert-milan robert-milan requested a review from Dieterbe April 3, 2020 16:00
@Dieterbe
Copy link
Contributor

Dieterbe commented Apr 3, 2020

The interesting thing about this PR is that this should fix a panic (ugly although harmless) on shutdown, correct @robert-milan ?

@robert-milan
Copy link
Contributor Author

The interesting thing about this PR is that this should fix a panic (ugly although harmless) on shutdown, correct @robert-milan ?

Yes this should fix the panic on shutdown

Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

LGTM

@Dieterbe Dieterbe changed the title stop double closing the index fix panic on shutdown: stop double closing the index Apr 13, 2020
@Dieterbe Dieterbe merged commit 082486a into master Apr 13, 2020
@Dieterbe Dieterbe deleted the fix-double-close-channel-panic branch April 13, 2020 08:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants