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

couchbase / cbgt / 199
54%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2016 03:26PM UTC
Jobs 1
Files 56
Run time 4s
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
199

push

travis-ci

steveyen
MB-20205 - cached nodeDefs when calculating covering pindexes

To process a query, a set of covering pindexes (or shards) for an
index need to be computed.

As part of that, the previous code would lookup the latest nodeDefs in
the Cfg.  When the Cfg is metakv, that would mean a REST call from
cbft to ns-server which may be slow.  Additionally, that Cfg retrieval
would happen while holding the cbgt manager's lock.  Quite slow.

For some reason, I had mistakenly thought cbauth/metakv provided
caching, but it apparently does not.

Props to Alex Gyryk for finding the clues here, noticing that
ns-server CPU was extremely high during perf tests, and from Pavel
Paulau for the hint to check ns-server's access log.

This change introduces cached nodeDefs, which has the downside that
under a topology change, the system might have a longer window of
attempting to use an outdated, previously cached nodeDefs, meaning
that queries may see more partial result errors during rebalance.

Change-Id: Icf13a99ad
Reviewed-on: http://review.couchbase.org/67975
Reviewed-by: Marty Schoch <marty.schoch@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>

6306 of 11022 relevant lines covered (57.21%)

27.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 199.1 25 Sep 2016 03:26PM UTC 0
57.21
Travis Job 199.1
Source Files on build 199
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #199
  • 4b33867f on github
  • Prev Build on master (#198)
  • Next Build on master (#200)
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