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

pingcap / pd / 1328
88%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2016 08:16AM 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
1328

push

travis-ci

web-flow
server/cache: reorganize the cache (#359)

* server/cache: hide regions in clusterInfo

regionsInfo will be rewrote later, we should not access it directly.

* 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.

3622 of 4872 relevant lines covered (74.34%)

392.55 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1328.2 (TRAVIS_COVERAGE=1) 06 Nov 2016 08:16AM UTC 0
74.34
Travis Job 1328.2
Source Files on build 1328
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1328
  • af843d14 on github
  • Prev Build on master (#1322)
  • Next Build on master (#1329)
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