{"action":"created","issue":{"url":"https://api.github.com/repos/erlio/vernemq/issues/194","repository_url":"https://api.github.com/repos/erlio/vernemq","labels_url":"https://api.github.com/repos/erlio/vernemq/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/erlio/vernemq/issues/194/comments","events_url":"https://api.github.com/repos/erlio/vernemq/issues/194/events","html_url":"https://github.com/erlio/vernemq/issues/194","id":174459614,"number":194,"title":"cluster leave node and restart error","user":{"login":"dcy","id":1137238,"avatar_url":"https://avatars.githubusercontent.com/u/1137238?v=3","gravatar_id":"","url":"https://api.github.com/users/dcy","html_url":"https://github.com/dcy","followers_url":"https://api.github.com/users/dcy/followers","following_url":"https://api.github.com/users/dcy/following{/other_user}","gists_url":"https://api.github.com/users/dcy/gists{/gist_id}","starred_url":"https://api.github.com/users/dcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcy/subscriptions","organizations_url":"https://api.github.com/users/dcy/orgs","repos_url":"https://api.github.com/users/dcy/repos","events_url":"https://api.github.com/users/dcy/events{/privacy}","received_events_url":"https://api.github.com/users/dcy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-01T07:57:07Z","updated_at":"2016-09-06T01:33:11Z","closed_at":null,"body":"Hi!\r\nIn one node of the cluster, I execute  ./bin/vmq-admin cluster leave node='VerneMQ@192.168.3.83'\" and \"./bin/vmq-admin cluster leave node='VerneMQ@192.168.3.83' -k\", it works.\r\n```\r\nroot@ubuntu:~/hisir/vernemq/_build/default/rel/vernemq# ./bin/vmq-admin cluster leave node='VerneMQ@192.168.3.83'\r\nDone! Use -k to teardown and migrate existing sessions!\r\nroot@ubuntu:~/hisir/vernemq/_build/default/rel/vernemq# ./bin/vmq-admin cluster leave node='VerneMQ@192.168.3.83' -k\r\nDone\r\nroot@ubuntu:~/hisir/vernemq/_build/default/rel/vernemq# ./bin/vmq-admin cluster status\r\n+--------------------+-------+\r\n|        Node        |Running|\r\n+--------------------+-------+\r\n|VerneMQ@192.168.3.82| true  |\r\n+--------------------+-------+\r\n```\r\nBut i start ```VerneMQ@192.168.3.83```, The ```VerneMQ@192.168.3.82``` log shows:\r\n```\r\n2016-09-01 15:48:05.231 [info] <0.228.0>@vmq_cluster_mon:handle_info:126 Cluster Node 'VerneMQ@192.168.3.83' UP\r\n2016-09-01 15:48:05.293 [info] <0.598.0>@plumtree_metadata_exchange_fsm:exchange:160 completed metadata exchange with 'VerneMQ@192.168.3.83'. repaired 0 missing local prefixes, 1 missing remote prefixes, and 0 keys\r\n2016-09-01 15:48:15.905 [warning] <0.217.0>@vmq_reg_mgr:initiate_queue_migration:211 more than one remote nodes found for migrating queue[<0.390.0>] for subscriber {[],<<\"18\">>}, use 'VerneMQ@192.168.3.83'\r\n2016-09-01 15:48:15.906 [info] <0.610.0>@plumtree_metadata_exchange_fsm:exchange:160 completed metadata exchange with 'VerneMQ@192.168.3.83'. repaired 0 missing local prefixes, 0 missing remote prefixes, and 1 keys\r\n2016-09-01 15:48:15.909 [error] <0.390.0>@vmq_queue:drain:299 can't drain queue '{[],<<\"18\">>}' for [<0.390.0>][<15891.237.0>] due to not_found\r\n```\r\nWhen i publish msg in ```VerneMQ@192.168.3.82```, The log shows:\r\n```\r\n2016-09-01 15:52:09.879 [warning] <0.782.0>@vmq_reg:publish:305 can't publish to remote node 'VerneMQ@192.168.3.83' due to 'not_found'\r\n```\r\nWhen i publish msg in ```VerneMQ@192.168.3.83```, The log also shows something about ```VerneMQ@192.168.3.82```.\r\nIt seems the ```VerneMQ@192.168.3.83``` not leave the cluster completely."},"comment":{"url":"https://api.github.com/repos/erlio/vernemq/issues/comments/244830067","html_url":"https://github.com/erlio/vernemq/issues/194#issuecomment-244830067","issue_url":"https://api.github.com/repos/erlio/vernemq/issues/194","id":244830067,"user":{"login":"dcy","id":1137238,"avatar_url":"https://avatars.githubusercontent.com/u/1137238?v=3","gravatar_id":"","url":"https://api.github.com/users/dcy","html_url":"https://github.com/dcy","followers_url":"https://api.github.com/users/dcy/followers","following_url":"https://api.github.com/users/dcy/following{/other_user}","gists_url":"https://api.github.com/users/dcy/gists{/gist_id}","starred_url":"https://api.github.com/users/dcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcy/subscriptions","organizations_url":"https://api.github.com/users/dcy/orgs","repos_url":"https://api.github.com/users/dcy/repos","events_url":"https://api.github.com/users/dcy/events{/privacy}","received_events_url":"https://api.github.com/users/dcy/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T01:33:11Z","updated_at":"2016-09-06T01:33:11Z","body":"The VerneMQ on 192.168.3.83 stop. After 192.168.3.83 stop i start it, not join the node again.\r\nThen the same client id login in 192.168.3.83 will disconnect it in 192.168.3.82."}}
{"actor":{"display_login":"dcy"}}