{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/944","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/944/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/944/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/944/events","html_url":"https://github.com/meteor/meteor/issues/944","id":13057753,"number":944,"title":"Multiple manual publication of the same document causes \"Exception in queued task: Error: Removed nonexistent document\"","user":{"login":"tmeasday","id":132554,"avatar_url":"https://avatars.githubusercontent.com/u/132554?v=3","gravatar_id":"","url":"https://api.github.com/users/tmeasday","html_url":"https://github.com/tmeasday","followers_url":"https://api.github.com/users/tmeasday/followers","following_url":"https://api.github.com/users/tmeasday/following{/other_user}","gists_url":"https://api.github.com/users/tmeasday/gists{/gist_id}","starred_url":"https://api.github.com/users/tmeasday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmeasday/subscriptions","organizations_url":"https://api.github.com/users/tmeasday/orgs","repos_url":"https://api.github.com/users/tmeasday/repos","events_url":"https://api.github.com/users/tmeasday/events{/privacy}","received_events_url":"https://api.github.com/users/tmeasday/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2013-04-11T08:44:15Z","updated_at":"2016-06-02T03:40:27Z","closed_at":"2013-04-11T17:36:59Z","body":"If I have two `observeChanges()` listeners both sending `remove()` changes to a subscription on the same document, when that document is removed, the second fails, repeatedly outputting: \r\n\r\n```\r\nException in queued task: Error: Removed nonexistent document AvPkPDGDt6AxTWvsX\r\n``` \r\n\r\nIt's quite bad as it basically kills the Meteor server.\r\n\r\n**Reproduction:**\r\n\r\n1. `git clone https://github.com/tmeasday/meteor-double-publication-remove-bug.git`\r\n2. `cd meteor-double-publication-remove-bug; meteor`\r\n\r\nIn console, type:\r\n\r\n3. `Posts.insert({foo: 'bar'});`\r\n4. `Meteor.call('removePosts');`\r\n\r\n**Observed behaviour:**\r\n\r\n5. Server console spews out errors, app becomes unresponsive.\r\n\r\n**Expected behaviour:**\r\n\r\n5. Document is removed from subscription.\r\n\r\nThe code might seem a little weird but it can happen in complex use cases of https://github.com/erundook/meteor-publish-with-relations. Although it probably should be avoided, it shouldn't kill your server if you do do it I would have thought :)"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/223187793","html_url":"https://github.com/meteor/meteor/issues/944#issuecomment-223187793","issue_url":"https://api.github.com/repos/meteor/meteor/issues/944","id":223187793,"user":{"login":"tmeasday","id":132554,"avatar_url":"https://avatars.githubusercontent.com/u/132554?v=3","gravatar_id":"","url":"https://api.github.com/users/tmeasday","html_url":"https://github.com/tmeasday","followers_url":"https://api.github.com/users/tmeasday/followers","following_url":"https://api.github.com/users/tmeasday/following{/other_user}","gists_url":"https://api.github.com/users/tmeasday/gists{/gist_id}","starred_url":"https://api.github.com/users/tmeasday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmeasday/subscriptions","organizations_url":"https://api.github.com/users/tmeasday/orgs","repos_url":"https://api.github.com/users/tmeasday/repos","events_url":"https://api.github.com/users/tmeasday/events{/privacy}","received_events_url":"https://api.github.com/users/tmeasday/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T03:40:27Z","updated_at":"2016-06-02T03:40:27Z","body":"@patrickml I'm not sure you are seeing the same error -- the issue I was describing blows up the server, which is quite different to what you describe here..?"}}
{"actor":{"display_login":"tmeasday"}}