-
Notifications
You must be signed in to change notification settings - Fork 139
Panic: send on closed channel when closing database #1554
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
Comments
Reran the test and it passed - http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests/113/ |
Going to rerun in a loop of 50 and see if it fails - http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests/114/ |
Given that it's intermittent, and a possible dup, I'm tagging as 1.3 + hotfix. Expect to close once we confirm that it's definitely a duplicate. |
@adamcfraser per the run of 50 above, it ran successfully 6 times and failed on the 7th - http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests/114/ |
I think the underlying issue here is that the TapFeed.output channel is being closed by the reader goroutine not the writer goroutine. This means the writer has no knowledge about the output channel state, so if it is processing an event when the output channel is closed by the reader it will try to write to that channel and panic. Instead of calling close(feed.output) in the TapFeed.Close() method (called by reader), we could call close(feed.output) when the feed.quit channel is closed and returns in the main select loop:
|
@ajres will review the Gerrit ticket this week. |
gerrit ticket has been opened NOTE: This ticket was abandoned after local repo was lost and could not retrieve code from gerrit. |
Add SG unit and functional test |
new gerrit ticket has been opened with original review feedback |
Merged to go-couchbase, just need to update SG manifest to pick it up. |
Picked up with #2041 |
I saw this test functional_tests.test_db_online_offline_resync.test_bucket_online_offline_resync_sanity[10-100-5] fail during this run. http://qa.sc.couchbase.com/view/mobile/job/centos-syncgateway-functional-tests/112/
Upon inspecting the logs, I noticed the below panic.
Using 1.2.0-77 with CBS 4.1.0. It looks go-couchbase related.
sync_gateway logs - https://gist.github.com/sethrosetter/bc3a171a3583e5f47595#file-sync_gateway_error-log-L2552-L2561
functional test output - https://gist.github.com/sethrosetter/c7dae515492169067488
Possibly related to or a duplicate of this - couchbase/go-couchbase#72
The text was updated successfully, but these errors were encountered: