{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/687","repository_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/687/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/687/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/687/events","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/687","id":140336631,"number":687,"title":"Priority queue fails to synchronize after node restart.","user":{"login":"bharris47","id":631220,"avatar_url":"https://avatars.githubusercontent.com/u/631220?v=3","gravatar_id":"","url":"https://api.github.com/users/bharris47","html_url":"https://github.com/bharris47","followers_url":"https://api.github.com/users/bharris47/followers","following_url":"https://api.github.com/users/bharris47/following{/other_user}","gists_url":"https://api.github.com/users/bharris47/gists{/gist_id}","starred_url":"https://api.github.com/users/bharris47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bharris47/subscriptions","organizations_url":"https://api.github.com/users/bharris47/orgs","repos_url":"https://api.github.com/users/bharris47/repos","events_url":"https://api.github.com/users/bharris47/events{/privacy}","received_events_url":"https://api.github.com/users/bharris47/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Dzol","id":11424434,"avatar_url":"https://avatars.githubusercontent.com/u/11424434?v=3","gravatar_id":"","url":"https://api.github.com/users/Dzol","html_url":"https://github.com/Dzol","followers_url":"https://api.github.com/users/Dzol/followers","following_url":"https://api.github.com/users/Dzol/following{/other_user}","gists_url":"https://api.github.com/users/Dzol/gists{/gist_id}","starred_url":"https://api.github.com/users/Dzol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dzol/subscriptions","organizations_url":"https://api.github.com/users/Dzol/orgs","repos_url":"https://api.github.com/users/Dzol/repos","events_url":"https://api.github.com/users/Dzol/events{/privacy}","received_events_url":"https://api.github.com/users/Dzol/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-03-12T02:17:51Z","updated_at":"2016-04-25T21:30:14Z","closed_at":null,"body":"We are running a RabbitMQ cluster (3 nodes) with 3 mirrored, durable, priority queues. Restarting any of the nodes causes the priority queues to fall into an endless sync loop. \r\n\r\nThe management console shows the queue synchronization progress going from 0% to complete. After a few seconds, the synchronization starts again.\r\n\r\nWe have tried disabling automatic sync and manually triggering sync, but experience the same behavior.\r\n\r\nWe initially believed they were failing to sync because there were still messages being sent to the queue. When we stop the producer, the behavior stops momentarily, but resumes immediately upon re-enabling the producer.\r\n\r\nOur issue seems very similar to #366, but that is claimed to have been fixed in an earlier version.\r\n\r\nNon-priority, durable queues do not exhibit this behavior.\r\n\r\nAny help would be much appreciated.\r\n\r\nTechnical Details\r\n- OS: CentOS Linux release 7.2.1511\r\n- RabbitMQ: 3.6.1\r\n- Erlang 18.2\r\n\r\nCrash Details\r\n```\r\n** Reason for termination ==\r\n** {{badmatch,-1},\r\n    [{rabbit_mirror_queue_slave,update_delta,2,\r\n                                [{file,\"src/rabbit_mirror_queue_slave.erl\"},\r\n                                 {line,984}]},\r\n     {rabbit_mirror_queue_slave,process_instruction,2,\r\n                                [{file,\"src/rabbit_mirror_queue_slave.erl\"},\r\n                                 {line,917}]},\r\n     {rabbit_mirror_queue_slave,handle_cast,2,\r\n                                [{file,\"src/rabbit_mirror_queue_slave.erl\"},\r\n                                 {line,254}]},\r\n     {gen_server2,handle_msg,2,[{file,\"src/gen_server2.erl\"},{line,1049}]},\r\n     {proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}\r\n```"},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/comments/214529512","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/687#issuecomment-214529512","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/687","id":214529512,"user":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T21:30:14Z","updated_at":"2016-04-25T21:30:14Z","body":"@bharris47 I'm afraid there wasn't much progress on this issue recently."}}