{"action":"created","issue":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1110","labels_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1110/labels{/name}","comments_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1110/comments","events_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1110/events","html_url":"https://github.com/Graylog2/graylog2-server/pull/1110","id":68132277,"number":1110,"title":"Fix cluster event bus","user":{"login":"joschi","id":43951,"avatar_url":"https://avatars.githubusercontent.com/u/43951?v=3","gravatar_id":"","url":"https://api.github.com/users/joschi","html_url":"https://github.com/joschi","followers_url":"https://api.github.com/users/joschi/followers","following_url":"https://api.github.com/users/joschi/following{/other_user}","gists_url":"https://api.github.com/users/joschi/gists{/gist_id}","starred_url":"https://api.github.com/users/joschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joschi/subscriptions","organizations_url":"https://api.github.com/users/joschi/orgs","repos_url":"https://api.github.com/users/joschi/repos","events_url":"https://api.github.com/users/joschi/events{/privacy}","received_events_url":"https://api.github.com/users/joschi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"dennisoelkers","id":41929,"avatar_url":"https://avatars.githubusercontent.com/u/41929?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisoelkers","html_url":"https://github.com/dennisoelkers","followers_url":"https://api.github.com/users/dennisoelkers/followers","following_url":"https://api.github.com/users/dennisoelkers/following{/other_user}","gists_url":"https://api.github.com/users/dennisoelkers/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisoelkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisoelkers/subscriptions","organizations_url":"https://api.github.com/users/dennisoelkers/orgs","repos_url":"https://api.github.com/users/dennisoelkers/repos","events_url":"https://api.github.com/users/dennisoelkers/events{/privacy}","received_events_url":"https://api.github.com/users/dennisoelkers/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/milestones/33","html_url":"https://github.com/Graylog2/graylog2-server/milestones/1.1.0","labels_url":"https://api.github.com/repos/Graylog2/graylog2-server/milestones/33/labels","id":934861,"number":33,"title":"1.1.0","description":"","creator":{"login":"kroepke","id":52014,"avatar_url":"https://avatars.githubusercontent.com/u/52014?v=3","gravatar_id":"","url":"https://api.github.com/users/kroepke","html_url":"https://github.com/kroepke","followers_url":"https://api.github.com/users/kroepke/followers","following_url":"https://api.github.com/users/kroepke/following{/other_user}","gists_url":"https://api.github.com/users/kroepke/gists{/gist_id}","starred_url":"https://api.github.com/users/kroepke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroepke/subscriptions","organizations_url":"https://api.github.com/users/kroepke/orgs","repos_url":"https://api.github.com/users/kroepke/repos","events_url":"https://api.github.com/users/kroepke/events{/privacy}","received_events_url":"https://api.github.com/users/kroepke/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":25,"state":"open","created_at":"2015-01-14T10:41:21Z","updated_at":"2015-04-13T15:55:56Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-04-13T15:55:56Z","updated_at":"2015-04-14T10:00:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/pulls/1110","html_url":"https://github.com/Graylog2/graylog2-server/pull/1110","diff_url":"https://github.com/Graylog2/graylog2-server/pull/1110.diff","patch_url":"https://github.com/Graylog2/graylog2-server/pull/1110.patch"},"body":"Documents in capped collections cannot be updated if their size would change by the update, which is exactly what happened with the \"consumers\" array.\r\n\r\nReplaced the logic with a simple timestamp check (only process cluster events if they are \"new\", i. e. their timestamp is greater or equal to the current timestamp). This means that old cluster events won't be processed after startup even if they haven't been processed before."},"comment":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/comments/92732672","html_url":"https://github.com/Graylog2/graylog2-server/pull/1110#issuecomment-92732672","issue_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1110","id":92732672,"user":{"login":"joschi","id":43951,"avatar_url":"https://avatars.githubusercontent.com/u/43951?v=3","gravatar_id":"","url":"https://api.github.com/users/joschi","html_url":"https://github.com/joschi","followers_url":"https://api.github.com/users/joschi/followers","following_url":"https://api.github.com/users/joschi/following{/other_user}","gists_url":"https://api.github.com/users/joschi/gists{/gist_id}","starred_url":"https://api.github.com/users/joschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joschi/subscriptions","organizations_url":"https://api.github.com/users/joschi/orgs","repos_url":"https://api.github.com/users/joschi/repos","events_url":"https://api.github.com/users/joschi/events{/privacy}","received_events_url":"https://api.github.com/users/joschi/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T10:00:01Z","updated_at":"2015-04-14T10:00:01Z","body":"@kroepke @bernd Having played around with it, I tend to agree with you. The problem with this is, that [tailable cursors](http://docs.mongodb.org/manual/tutorial/create-tailable-cursor/) can only be used with capped collections in MongoDB.\r\n\r\nThis means that we would have to resort to stupid polling of the `cluster_events` collection."}}