{"action":"closed","issue":{"url":"https://api.github.com/repos/XiaoMi/rdsn/issues/133","repository_url":"https://api.github.com/repos/XiaoMi/rdsn","labels_url":"https://api.github.com/repos/XiaoMi/rdsn/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/XiaoMi/rdsn/issues/133/comments","events_url":"https://api.github.com/repos/XiaoMi/rdsn/issues/133/events","html_url":"https://github.com/XiaoMi/rdsn/issues/133","id":341373800,"node_id":"MDU6SXNzdWUzNDEzNzM4MDA=","number":133,"title":"bug of shared log's size calculation ","user":{"login":"shengofsun","id":1041832,"node_id":"MDQ6VXNlcjEwNDE4MzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1041832?v=4","gravatar_id":"","url":"https://api.github.com/users/shengofsun","html_url":"https://github.com/shengofsun","followers_url":"https://api.github.com/users/shengofsun/followers","following_url":"https://api.github.com/users/shengofsun/following{/other_user}","gists_url":"https://api.github.com/users/shengofsun/gists{/gist_id}","starred_url":"https://api.github.com/users/shengofsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shengofsun/subscriptions","organizations_url":"https://api.github.com/users/shengofsun/orgs","repos_url":"https://api.github.com/users/shengofsun/repos","events_url":"https://api.github.com/users/shengofsun/events{/privacy}","received_events_url":"https://api.github.com/users/shengofsun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-16T02:19:09Z","updated_at":"2018-07-16T07:57:27Z","closed_at":"2018-07-16T07:57:27Z","author_association":"CONTRIBUTOR","body":"The shared log's size is calculated by \"global_end_offset - global_start_offset\". When all shared log are deleted, the \"global_start_offset\" will be reset to 0, while the \"global_end_offset\" will remain unchanged, in which case we will get a uncorrect \"size\" of shared log.\r\n\r\nplease see https://github.com/XiaoMi/rdsn/blob/6ce6d435ef226f38c07f18d3caeda54460a1a61d/src/dist/replication/lib/mutation_log.cpp#L1668 for details.\r\n\r\nSetting \"_global_start_offset\" to \"_global_end_offset\" may fix this, but we need to test it."}}
{"actor":{"display_login":"qinzuoyan"}}