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 bug in setting the correct collector state after a config change event. #5896

Merged
merged 3 commits into from
Aug 15, 2022
Merged

Conversation

kovrus
Copy link
Member

@kovrus kovrus commented Aug 11, 2022

Description:
After configuration is updated the collector state will be stuck at Starting even tho the collector has started completely.

Link to tracking Issue:
Fixes #5830.

Testing:
Unit tests.

@kovrus kovrus requested review from a team and bogdandrutu August 11, 2022 12:05
@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

Merging #5896 (1eb9dd8) into main (e89786d) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5896      +/-   ##
==========================================
+ Coverage   91.44%   91.47%   +0.03%     
==========================================
  Files         195      195              
  Lines       11933    11933              
==========================================
+ Hits        10912    10916       +4     
+ Misses        811      804       -7     
- Partials      210      213       +3     
Impacted Files Coverage Δ
service/collector.go 78.87% <100.00%> (+2.81%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kovrus kovrus requested a review from bogdandrutu August 11, 2022 20:55
@bogdandrutu
Copy link
Member

@kovrus
Copy link
Member Author

kovrus commented Aug 15, 2022

Looks like tests are not passing https://github.com/open-telemetry/opentelemetry-collector/runs/7811347371?check_suite_focus=true#step:6:3292

Closing collector properly in tests via collector api, seems to fix the race condition. (at least, I couldn't reproduce it locally any longer)

@kovrus kovrus requested a review from bogdandrutu August 15, 2022 11:09
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 state won't be set to Running state after watch is triggered
2 participants