{"action":"created","issue":{"url":"https://api.github.com/repos/CodisLabs/codis/issues/1034","repository_url":"https://api.github.com/repos/CodisLabs/codis","labels_url":"https://api.github.com/repos/CodisLabs/codis/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/CodisLabs/codis/issues/1034/comments","events_url":"https://api.github.com/repos/CodisLabs/codis/issues/1034/events","html_url":"https://github.com/CodisLabs/codis/issues/1034","id":189023572,"number":1034,"title":"同一个key同时出现在不同的group中是什么原因？","user":{"login":"cnflyne","id":6804021,"avatar_url":"https://avatars.githubusercontent.com/u/6804021?v=3","gravatar_id":"","url":"https://api.github.com/users/cnflyne","html_url":"https://github.com/cnflyne","followers_url":"https://api.github.com/users/cnflyne/followers","following_url":"https://api.github.com/users/cnflyne/following{/other_user}","gists_url":"https://api.github.com/users/cnflyne/gists{/gist_id}","starred_url":"https://api.github.com/users/cnflyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnflyne/subscriptions","organizations_url":"https://api.github.com/users/cnflyne/orgs","repos_url":"https://api.github.com/users/cnflyne/repos","events_url":"https://api.github.com/users/cnflyne/events{/privacy}","received_events_url":"https://api.github.com/users/cnflyne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-14T03:52:43Z","updated_at":"2016-11-14T17:57:48Z","closed_at":null,"body":"搭建了两个server group：\r\ngroup 1：10.252.24.17:6379\r\ngroup 2：10.252.26.12:6379\r\n\r\n但是在检查的时候发现，同一个key（set类型）竟然在两个group上都存在：\r\n$ ./redis-cli -h 10.252.24.17 -p 6379\r\n10.252.24.17:6379> SCARD popped:579eef03fa890cf57cd25898\r\n(integer) 9073\r\n10.252.24.17:6379> exit\r\n\r\n$ ./redis-cli -h 10.252.26.12 -p 6379\r\n10.252.26.12:6379> SCARD popped:579eef03fa890cf57cd25898\r\n(integer) 6\r\n10.252.26.12:6379> exit\r\n\r\n通过proxy查看的结果如下：\r\n[work@jp01-ime-gag02.jp01.baidu.com bin]$ ./redis-cli -h 10.252.24.17 -p 19000\r\n10.252.24.17:19000> SCARD popped:579eef03fa890cf57cd25898\r\n(integer) 9073\r\n\r\n线上问题，求高人指点。"},"comment":{"url":"https://api.github.com/repos/CodisLabs/codis/issues/comments/260410130","html_url":"https://github.com/CodisLabs/codis/issues/1034#issuecomment-260410130","issue_url":"https://api.github.com/repos/CodisLabs/codis/issues/1034","id":260410130,"user":{"login":"cnflyne","id":6804021,"avatar_url":"https://avatars.githubusercontent.com/u/6804021?v=3","gravatar_id":"","url":"https://api.github.com/users/cnflyne","html_url":"https://github.com/cnflyne","followers_url":"https://api.github.com/users/cnflyne/followers","following_url":"https://api.github.com/users/cnflyne/following{/other_user}","gists_url":"https://api.github.com/users/cnflyne/gists{/gist_id}","starred_url":"https://api.github.com/users/cnflyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnflyne/subscriptions","organizations_url":"https://api.github.com/users/cnflyne/orgs","repos_url":"https://api.github.com/users/cnflyne/repos","events_url":"https://api.github.com/users/cnflyne/events{/privacy}","received_events_url":"https://api.github.com/users/cnflyne/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T17:57:48Z","updated_at":"2016-11-14T17:57:48Z","body":"清理了一次codis数据，使用 redis-port工具从 源redis导入数据，这个问题还是复现了：\r\n\r\n源redis中有 231个key，导入到Codis集群后，group1有 117 个key， group2有 157 个key。这些key都是set类型，存储用户id的集合，数量不多，但是每个key都很大。。\r\n\r\n可以肯定的是问题出在了redis-port这块，导入到codis集群后，部分key被一分为二（目前只注意到set类型有这样的情况）"}}
{"actor":{"display_login":"cnflyne"}}