{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/758","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/758/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/758/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/758/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/758","id":85593603,"number":758,"title":"CBL 1.1 Mac: Stopping continuous replication consistently triggers timeout warning","user":{"login":"mdfw","id":1081338,"avatar_url":"https://avatars.githubusercontent.com/u/1081338?v=3","gravatar_id":"","url":"https://api.github.com/users/mdfw","html_url":"https://github.com/mdfw","followers_url":"https://api.github.com/users/mdfw/followers","following_url":"https://api.github.com/users/mdfw/following{/other_user}","gists_url":"https://api.github.com/users/mdfw/gists{/gist_id}","starred_url":"https://api.github.com/users/mdfw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdfw/subscriptions","organizations_url":"https://api.github.com/users/mdfw/orgs","repos_url":"https://api.github.com/users/mdfw/repos","events_url":"https://api.github.com/users/mdfw/events{/privacy}","received_events_url":"https://api.github.com/users/mdfw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/f:%20Replication","name":"f: Replication","color":"f8e100"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-05T17:58:30Z","updated_at":"2015-06-08T18:58:53Z","closed_at":null,"body":"I'm running replications from/to CBL Mac to CouchDB (Cloudant hosted). While testing this bug, the push and pull replications are **not** running concurrently, but at separate times.\r\n\r\nAfter updating to CBL 1.1 (built it myself from commit: 7949e8d59b9b30f7711be47a121dfbda9c82f2a8 on Yosemite, Xcode 6.3.2) . I'm consistently (every time) getting this warning when I stop a continuous replication:\r\n> WARNING: CBLReplication[to https://server/db]: Timeout waiting for background stop notification\r\nor\r\n> WARNING: CBLReplication[from https://server/db]: Timeout waiting for background stop notification\r\n\r\nI don't remember ever seeing this warning on 1.0.x but to be honest, I've just started working with replications so it's possible I just didn't run into it. I may roll back and see if it's there.\r\n\r\n*Steps to reproduce:*\r\n1. Create a CBL database\r\n2. Add a replication (`[db createPushReplication:url]`)\r\n3. Call `[self.pushreplication start]`\r\n4. After it drops to idle state, call `[self.pushreplication stop]`\r\n\r\n*Expected behavior:* no warnings. \r\n\r\n*Note:* The replication does appear to actually shut down and stop before or after the warning - it's hard to tell.\r\n\r\n*Note2:* I don't see this on one-shot replications.\r\n\r\n*Related:* It seems after I call stop, a replication runs again? To debug I attached a filter that just logs when the replication runs and returns `YES`. It seems that after the call to `[replication stop]` the replication runs again. Is this correct behavior?"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/110107783","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/758#issuecomment-110107783","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/758","id":110107783,"user":{"login":"pasin","id":801454,"avatar_url":"https://avatars.githubusercontent.com/u/801454?v=3","gravatar_id":"","url":"https://api.github.com/users/pasin","html_url":"https://github.com/pasin","followers_url":"https://api.github.com/users/pasin/followers","following_url":"https://api.github.com/users/pasin/following{/other_user}","gists_url":"https://api.github.com/users/pasin/gists{/gist_id}","starred_url":"https://api.github.com/users/pasin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasin/subscriptions","organizations_url":"https://api.github.com/users/pasin/orgs","repos_url":"https://api.github.com/users/pasin/repos","events_url":"https://api.github.com/users/pasin/events{/privacy}","received_events_url":"https://api.github.com/users/pasin/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T18:58:53Z","updated_at":"2015-06-08T18:58:53Z","body":"@mdfw Thanks for more info. Did the restart issue go away as well?\r\n\r\nThe first STOPPING... is from CBLReplication -stop method. The second are from the internal CBL_Replication when it's released or dealloc, which apparently doesn't do anything mostly as the CBL_Replication has already been stopped.\r\n\r\nPlease let me know if the issue happens again. If that happens again, we may need to add some diagnostic log messages and I may need your help for that. Now let keep our eyes on that."}}