• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pingcap / pd / 1236
74%
master: 88%

Build:
Build:
LAST BUILD BRANCH: huachao/balance-region
DEFAULT BRANCH: master
Ran 23 Oct 2016 05:44AM UTC
Jobs 1
Files 48
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1236

push

travis-ci

huachaohuang
server/cache: reorganize the cache

First, stores and regions are reorganized so that we can easily access
the information we need.

Second, the algorithm to handle region heartbeat is modified
accordingly, to handle Split and Merge.

It's hard to handle Split and Merge perfectly to keep the cache always
reflecting the newest information about which region is serving which
range. But we can keep the cache always updating according to the region
heartbeat.

Here's how we handle region heartbeat. First, if the region does not
exist, it is added to the cache directly. Second, if the region exists
but the heartbeat is stale, an error will be returned. Finally, if the
region exists and the heartbeat is not stale, it is updated to the
cache. Additionaly, every time a region is added or updated, all range
overlap regions will be deleted from the search tree first, and then
the region will be inserted. Note that regions deleted from the search
tree can still be found by the region id.

3483 of 4715 relevant lines covered (73.87%)

400.44 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1236.2 (TRAVIS_COVERAGE=1) 23 Oct 2016 05:44AM UTC 0
73.87
Travis Job 1236.2
Source Files on build 1236
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1236
  • be4ed0a4 on github
  • Next Build on huachaohuang/reorganize-cache (#1240)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc