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

State set to closing when Collector Run encounters startup failure #4974

Merged
merged 2 commits into from
Mar 14, 2022

Conversation

cpheps
Copy link
Contributor

@cpheps cpheps commented Mar 8, 2022

Description:
Fixes: #4826

If the Run exited due to an error during startup the state would stay as Starting changed this to be set to Closed when any startup error occurs.

There might need to be a larger discussion on if Closed is the correct state or if we should introduce a Failed or Error state that would be more appropriate here.?

Link to tracking Issue: #4826

Testing: Added unit tests to valid state change

@cpheps cpheps requested review from a team and Aneurysm9 March 8, 2022 17:40
@codecov
Copy link

codecov bot commented Mar 8, 2022

Codecov Report

Merging #4974 (b102c65) into main (5ee716f) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4974      +/-   ##
==========================================
- Coverage   90.95%   90.94%   -0.01%     
==========================================
  Files         182      182              
  Lines       10672    10674       +2     
==========================================
+ Hits         9707     9708       +1     
- Misses        748      749       +1     
  Partials      217      217              
Impacted Files Coverage Δ
service/collector.go 77.10% <50.00%> (-0.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ee716f...b102c65. Read the comment docs.

@cpheps cpheps force-pushed the run-state-change-on-fail branch from acc5fa5 to fa6d8a4 Compare March 10, 2022 13:37
Signed-off-by: Corbin Phelps <corbin.phelps@bluemedora.com>
@cpheps cpheps force-pushed the run-state-change-on-fail branch from fa6d8a4 to e71e4b2 Compare March 14, 2022 12:08
Signed-off-by: Corbin Phelps <corbin.phelps@bluemedora.com>
@bogdandrutu bogdandrutu merged commit 26e67c3 into open-telemetry:main Mar 14, 2022
Nicholaswang pushed a commit to Nicholaswang/opentelemetry-collector that referenced this pull request Jun 7, 2022
…pen-telemetry#4974)

* When Run fails due to a startup issue it will set the state to closed

Signed-off-by: Corbin Phelps <corbin.phelps@bluemedora.com>

* Fixed changelog

Signed-off-by: Corbin Phelps <corbin.phelps@bluemedora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collector Lifecycle Inconsistencies
2 participants