{"push_id":1366485155,"size":8,"distinct_size":4,"ref":"refs/heads/huachaohuang/reorganize-cache","head":"bf80ab35e1ab417200bf87b9ed1db8cd967dec61","before":"bc33d828312bbda529a50f6950c21368bbc184fb","commits":[{"sha":"c0af22f4f5c96ec7bd6d7c284529fa674a06cada","author":{"name":"Huachao Huang","email":"4bc6b0b1fc382673098f8f635dd5e437acb4a56d@gmail.com"},"message":"pd-client: add request duration metric (#354)","distinct":false,"url":"https://api.github.com/repos/pingcap/pd/commits/c0af22f4f5c96ec7bd6d7c284529fa674a06cada"},{"sha":"3226d77ee69cea09a2cb9702d94dbd75c14e26cc","author":{"name":"Neil Shen","email":"3325cc4956b6475103d46bdbe40b118c6491b8f5@gmail.com"},"message":"api/member, server/join: use client.Ctx() (#358)","distinct":false,"url":"https://api.github.com/repos/pingcap/pd/commits/3226d77ee69cea09a2cb9702d94dbd75c14e26cc"},{"sha":"dcfe726e8c98451c554a88ce78bcd2f0b28fd680","author":{"name":"Huachao Huang","email":"4bc6b0b1fc382673098f8f635dd5e437acb4a56d@gmail.com"},"message":"vendor: update google/btree (#356)","distinct":false,"url":"https://api.github.com/repos/pingcap/pd/commits/dcfe726e8c98451c554a88ce78bcd2f0b28fd680"},{"sha":"8688f627af19dd88ae6d948df47ea5807221b63f","author":{"name":"Huachao Huang","email":"4bc6b0b1fc382673098f8f635dd5e437acb4a56d@gmail.com"},"message":"server: add regionInfo (#353)\n\n* server: add regionInfo\r\n\r\nWrap region information into regionInfo. regionInfo will be cached after\r\noptimizating the cache, so that we can access different information\r\nabout a region more easily.\r\n\r\nThis commit is tedious and breaks a lot of trivial code.","distinct":false,"url":"https://api.github.com/repos/pingcap/pd/commits/8688f627af19dd88ae6d948df47ea5807221b63f"},{"sha":"6b987151c034750c1825f1dcf2b52f4e064acd3a","author":{"name":"Huachao Huang","email":"4bc6b0b1fc382673098f8f635dd5e437acb4a56d@gmail.com"},"message":"server: add regionInfo\n\nWrap region information into regionInfo. regionInfo will be cached after\noptimizating the cache, so that we can access different information\nabout a region more easily.\n\nThis commit is tedious and breaks a lot of trivial code.","distinct":true,"url":"https://api.github.com/repos/pingcap/pd/commits/6b987151c034750c1825f1dcf2b52f4e064acd3a"},{"sha":"3489011bdad3a77226e963764a21bc9b800c58f9","author":{"name":"Huachao Huang","email":"4bc6b0b1fc382673098f8f635dd5e437acb4a56d@gmail.com"},"message":"server: fix ci","distinct":true,"url":"https://api.github.com/repos/pingcap/pd/commits/3489011bdad3a77226e963764a21bc9b800c58f9"},{"sha":"6110fde78c78d2685e361c41933bff119376a51e","author":{"name":"Huachao Huang","email":"4bc6b0b1fc382673098f8f635dd5e437acb4a56d@gmail.com"},"message":"server/cache: reorganize the cache\n\nFirst, stores and regions are reorganized so that we can easily access\nthe information we need.\n\nSecond, the algorithm to handle region heartbeat is modified\naccordingly, to handle Split and Merge.\n\nIt's hard to handle Split and Merge perfectly to keep the cache always\nreflecting the newest information about which region is serving which\nrange. But we can keep the cache always updating according to the region\nheartbeat.\n\nHere's how we handle region heartbeat. First, if the region does not\nexist, it is added to the cache directly. Second, if the region exists\nbut the heartbeat is stale, an error will be returned. Finally, if the\nregion exists and the heartbeat is not stale, it is updated to the\ncache. Additionaly, every time a region is added or updated, all range\noverlap regions will be deleted from the search tree first, and then\nthe region will be inserted. Note that regions deleted from the search\ntree can still be found by the region id.","distinct":true,"url":"https://api.github.com/repos/pingcap/pd/commits/6110fde78c78d2685e361c41933bff119376a51e"},{"sha":"bf80ab35e1ab417200bf87b9ed1db8cd967dec61","author":{"name":"Huachao Huang","email":"4bc6b0b1fc382673098f8f635dd5e437acb4a56d@gmail.com"},"message":"server/cache: tiny change","distinct":true,"url":"https://api.github.com/repos/pingcap/pd/commits/bf80ab35e1ab417200bf87b9ed1db8cd967dec61"}]}
{"actor":{"display_login":"huachaohuang"}}