This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
fix input (particularly kafka-mdm) exit flow #748
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
woodsaj
approved these changes
Oct 24, 2017
Dieterbe
force-pushed
the
better-kafka-message
branch
from
January 2, 2018 15:02
0a6499a
to
80835a3
Compare
Dieterbe
force-pushed
the
better-kafka-message
branch
from
January 24, 2018 18:20
80835a3
to
374c247
Compare
I was able to trigger the failure scenario in the this is the output I got:
|
@woodsaj please re-review because since last time I added two commits. |
woodsaj
approved these changes
Jan 25, 2018
when an input plugin runs into a fatal error, it should signal this to the caller (main routine) so that it can clean up any resources, announce its departure to the cluster, etc, before shutting down. also when kafka consumer closes (due to offset problem typically), exit cleaner with better error message. fix #520
* the mdm plugin closing the fatal chan in Start() was not preventing it from keep trying to initialize (while it already failed and while main would try to clean up) * simpler approach to just return error * cleaner exit flow for Carbon.Start() failure note: this now requires the ability to trigger shutdown from earlier in main, which meant making a standalone function, which meant moving some parameters to globals, which meant store is now a Store, not a CassandraStore, and all other stores needed a new SetTracer function
Dieterbe
force-pushed
the
better-kafka-message
branch
from
January 30, 2018 21:45
15f1963
to
b3267c8
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I want to test this by introducing a kafka failure and watching the exit flow in action,
but before i spend time on that, want to get a code sanity check.