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 race condition #103

Merged
merged 6 commits into from
Apr 13, 2017
Merged

Fix race condition #103

merged 6 commits into from
Apr 13, 2017

Conversation

black-adder
Copy link
Contributor

There's a race condition in TestAgentStartStop and a deadlock in TestQueue.

@coveralls
Copy link

coveralls commented Apr 12, 2017

Coverage Status

Coverage remained the same at 98.941% when pulling c5accee on fix_baaaaad_tests into 7e6aa97 on master.

@@ -88,6 +88,6 @@ func TestAgentStartStop(t *testing.T) {
body, err := ioutil.ReadAll(resp.Body)
assert.NoError(t, err)
assert.Equal(t, "tcollector error: no peers available\n", string(body))
agent.Stop()
assert.NoError(t, <-ch)
Copy link
Member

Choose a reason for hiding this comment

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

isn't this going to deadlock? Nothing writing to this channel until we call Stop

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.297% when pulling 58b8114 on fix_baaaaad_tests into 7e6aa97 on master.

@black-adder black-adder changed the title [WIP] Fix race condition and dead lock in tests Fix race condition Apr 13, 2017
@black-adder
Copy link
Contributor Author

I gave up on the DeadLock fix, there's some pretty arcane logic there. We'll probably rip it out for something else.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 99.029% when pulling 5326c80 on fix_baaaaad_tests into 7e6aa97 on master.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 26b768b on fix_baaaaad_tests into ** on master**.

@black-adder black-adder merged commit 7a55f71 into master Apr 13, 2017
@black-adder black-adder deleted the fix_baaaaad_tests branch April 13, 2017 18:29
ideepika pushed a commit to ideepika/jaeger that referenced this pull request Oct 22, 2017
chlunde added a commit to chlunde/jaeger that referenced this pull request Oct 30, 2020
Make a tiny state machine to detect the transition init -> stopped (not via serving)

Fixes jaegertracing#2601
Related jaegertracing#103

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
yurishkuro pushed a commit that referenced this pull request Oct 30, 2020
Make a tiny state machine to detect the transition init -> stopped (not via serving)

Fixes #2601
Related #103

Signed-off-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
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.

3 participants