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

pingcap / pd / 1328 / 2
88%
master: 88%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2016 08:16AM UTC
Files 48
Run time 2s
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

06 Nov 2016 08:04AM UTC coverage: 74.343% (-0.05%) from 74.392%
TRAVIS_COVERAGE=1

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

Source Files on job 1328.2 (TRAVIS_COVERAGE=1)
  • Tree
  • List 0
  • Changed 26
  • Source Changed 5
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1328
  • Travis Job 1328.2
  • af843d14 on github
  • Prev Job for TRAVIS_COVERAGE=1 on master (#1322.2)
  • Next Job for TRAVIS_COVERAGE=1 on master (#1329.2)
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