-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Collector Run should exit quickly if shutdown was called prior #4946
Comments
cc @djaglowski |
Could you please assign this to me? |
@Chinwendu20 This ticket is to basically make a short circuit path in I think there's a valid question on if |
@dmitryax Can you assign @Chinwendu20 to this issue please? |
Signed-off-by: Maureen <amaka013@gmail.com>
Signed-off-by: Maureen <amaka013@gmail.com>
Signed-off-by: Maureen <amaka013@gmail.com>
Is this even what we want? I was under the impression that we should be able to stop/start the collector whenever we wanted. @tigrannajaryan, I'm pretty sure I got this from you a few years ago :-) Do you think that's still valid to this day? |
@jpkrohling I was under the impression you could start multiple instance of the collector per process but not a single instance over and over. This would make sure a single instance exits early rather than doing a full startup before closing. |
The comment on
See opentelemetry-collector/otelcol/collector.go Line 227 in ecd837e
I believe this means the use case you describe is not supported. I propose to close this issue as not planned, please comment or reopen the issue if you disagree. |
Describe the bug
Currently if
Shutdown
is called beforeRun
all this startup code runs beforerunAndWaitForShutdownEvent
which will then process the shutdown.Steps to reproduce
Shutdown
Run
What did you expect to see?
Collector not attempt to run startup/configure code and exit early.
What did you see instead?
Startup code was run then exited.
What version did you use?
Version: v0.45.0
What config did you use?
Config: any valid config
Environment
OS: MacOS 12.2
Compiler(if manually compiled): go 1.17.6
Additional context
Action item from #4878
The text was updated successfully, but these errors were encountered: