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

Close errnotifier chan on err #2102

Closed
wants to merge 2 commits into from
Closed

Close errnotifier chan on err #2102

wants to merge 2 commits into from

Conversation

rht
Copy link
Contributor

@rht rht commented Dec 18, 2015

This 1. fixes the osx test build stalls, 2. temporarily reduce the count of auto gc test (until #2002 (comment) is handled).

Statistically tested in #2101.

@jbenet jbenet added the status/in-progress In progress label Dec 18, 2015
@rht rht force-pushed the fix/logwriter-stall branch 3 times, most recently from b3094ab to d72ffae Compare December 18, 2015 14:31
@rht rht added the RFCR label Dec 18, 2015
@ghost
Copy link

ghost commented Dec 22, 2015

  1. fixes the osx test build stalls

great 👍

  1. temporarily reduce the count of auto gc test (until Make master green again! #2002 (comment) is handled)

If there's a concrete way out of that test failure that's in progress, that's okay -- I wouldn't want to just work around failing tests though.

@ghost ghost added the topic/test failure Topic test failure label Dec 22, 2015
@rht
Copy link
Contributor Author

rht commented Dec 25, 2015

The stall could be a golang gc bug on osx. This could be tested by running the latest master on an earlier version of golang.

If there's a concrete way out of that test failure that's in progress

Indeed, already in 0.4.0, 7341486. Though it could be generalized for operations other than gc and pinning.

@whyrusleeping
Copy link
Member

@rht what is the status here?

@rht
Copy link
Contributor Author

rht commented Dec 31, 2015

@whyrusleeping this is ready to merge, the only RFCR needed is from yours.

rht added 2 commits December 31, 2015 01:43
License: MIT
Signed-off-by: rht <[email protected]>
To be increased later when auto-gc & pinning race condition are fixed

License: MIT
Signed-off-by: rht <[email protected]>
@@ -41,6 +42,7 @@ func (w *writeErrNotifier) Close() error {
case w.errs <- io.EOF:
default:
}
close(w.errs)
Copy link
Member

Choose a reason for hiding this comment

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

i'm concerned this might get called twice and panic, want to maybe nil it out after closing, and do the other appropriate checks on the nil value?

@whyrusleeping
Copy link
Member

@rht I had one comment here, otherwise its ready to go (after a rebase though)

@chriscool
Copy link
Contributor

@rht could you take a look at this?

@rht
Copy link
Contributor Author

rht commented Feb 2, 2016

If there's a concrete way out of that test failure that's in progress, that's okay -- I wouldn't want to just work around failing tests though.

If the pinning still stalls, then the gc lock 7341486 hasn't fixed the problem. This needs to be tested.



This PR's fix to stalling is orthogonal to that pin stall, and is not a workaround.

@rht rht closed this Feb 2, 2016
@Kubuxu Kubuxu deleted the fix/logwriter-stall branch February 27, 2017 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/in-progress In progress topic/test failure Topic test failure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants