Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Propagate db delete event to changes callback#139

Merged
asfgit merged 2 commits into
apache:masterfrom
cloudant:should_end_changes_when_db_deleted
Feb 17, 2016
Merged

Propagate db delete event to changes callback#139
asfgit merged 2 commits into
apache:masterfrom
cloudant:should_end_changes_when_db_deleted

Conversation

@iilyak
Copy link
Copy Markdown
Contributor

@iilyak iilyak commented Feb 11, 2016

Not propagating the delete event to the changes callback causes
db to stay open when it is deleted in the presence of continuous
requests to _changes feed. This in its turn causes couch_file to stay
open until the connection is closed by the client.

@davisp
Copy link
Copy Markdown
Member

davisp commented Feb 11, 2016

Ahhh, took me two readings of your commit message before I put the whole thing together. I kept trying to figure out how we introduced the bug during the merge and got confused by the work on view changes. Rereading your commit message it appears to not be a new bug, just one we hadn't noticed yet.

+1

@davisp
Copy link
Copy Markdown
Member

davisp commented Feb 11, 2016

I looked at that test failure and it appears unrelated, but we might also want to verify that as well.

@kxepal
Copy link
Copy Markdown
Member

kxepal commented Feb 16, 2016

+1

@iilyak iilyak force-pushed the should_end_changes_when_db_deleted branch from d6f5bb7 to 4e6d2d6 Compare February 17, 2016 02:04
Not propagating the `delete` event to the changes callback causes
db to stay open when it is deleted in the presence of `continuous`
requests to _changes feed. This in its turn causes couch_file to stay
open until the connection is closed by the client.
While working on the issue test suite was re-enabled. It passes locally.
However one of the test cases fails in other environments so commenting out
that flaky test for now.
@asfgit asfgit merged commit 4e6d2d6 into apache:master Feb 17, 2016
@iilyak iilyak deleted the should_end_changes_when_db_deleted branch February 17, 2016 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants