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

JaegerReceiver: Do not try to stop if failed to start. Collector service will do that #1434

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

bogdandrutu
Copy link
Member

Fixes #437

@codecov
Copy link

codecov bot commented Jul 24, 2020

Codecov Report

Merging #1434 into master will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1434      +/-   ##
==========================================
- Coverage   90.31%   90.29%   -0.03%     
==========================================
  Files         232      232              
  Lines       16392    16385       -7     
==========================================
- Hits        14805    14795      -10     
- Misses       1134     1136       +2     
- Partials      453      454       +1     
Impacted Files Coverage Δ
receiver/jaegerreceiver/trace_receiver.go 79.13% <100.00%> (-0.20%) ⬇️
translator/internaldata/resource_to_oc.go 83.72% <0.00%> (-2.33%) ⬇️
...ceiver/hostmetricsreceiver/hostmetrics_receiver.go 86.88% <0.00%> (-1.64%) ⬇️

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 dc65e8a...f7d9ba2. Read the comment docs.

return jr.stopTraceReceptionLocked()
}

func (jr *jReceiver) stopTraceReceptionLocked() error {
var err = componenterror.ErrAlreadyStopped
jr.stopOnce.Do(func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't need to block this PR but Is this stopOnce needed? I believe we decided that collector guarantees Shutdown is only called once. Right now there are a mixture of components with stopOnce so we should probably get rid of all of them if not needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Would address in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

Given you removed mu from Shutdown in this PR, I would recommend removing this from Start as well (and may as well remove startOnce / stopOnce as well while you're at it 😄 )

Copy link
Member Author

Choose a reason for hiding this comment

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

Did I? It is just moved the next line.

return jr.stopTraceReceptionLocked()
}

func (jr *jReceiver) stopTraceReceptionLocked() error {
var err = componenterror.ErrAlreadyStopped
jr.stopOnce.Do(func() {
Copy link
Member

Choose a reason for hiding this comment

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

Given you removed mu from Shutdown in this PR, I would recommend removing this from Start as well (and may as well remove startOnce / stopOnce as well while you're at it 😄 )

@bogdandrutu bogdandrutu merged commit fdfe497 into open-telemetry:master Jul 27, 2020
@bogdandrutu bogdandrutu deleted the jaegerstop branch September 14, 2020 17:19
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* Add a Config/Option for histogram

* Just one option here

* Test fixes

* Support and test int64 histograms

* Changelog

* Lint

* Un-export three things.
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
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.

Nil exception/Race condition in Jaeger Receiver startup
4 participants