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

citusdata / pg_shard / 543
95%
develop: 36%

Build:
Build:
LAST BUILD BRANCH: develop_candidate
DEFAULT BRANCH: develop
Ran 18 Sep 2015 05:49AM UTC
Jobs 5
Files 18
Run time 15s
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
543

push

travis-ci

jasonmp85
Fix hash token distribution algorithm

There are 2^32 distinct "hash tokens" in our hash space, but we were
using INT32_MAX (2^32 - 1) in the code instead. Because of this, shard
counts which one might expect to divide evenly into the space (such as
16, 32, or 256) had fewer tokens than they should have. The remainder
of the tokens were stuffed into the last shard, causing uneven load.

This fixes that by defining a 64-bit constant equal to 2^32 and then
using that to calculate the distance between shards in the hash space.

2167 of 2270 relevant lines covered (95.46%)

1753.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 543.1 (PGVERSION=9.3) 18 Sep 2015 05:50AM UTC 0
95.15
Travis Job 543.1
2 543.2 (PGVERSION=9.4) 18 Sep 2015 05:49AM UTC 0
95.15
Travis Job 543.2
3 543.3 (PGVERSION=9.5) 18 Sep 2015 05:50AM UTC 0
95.15
Travis Job 543.3
4 543.4 (PGVERSION=40.0) 18 Sep 2015 05:49AM UTC 0
94.13
Travis Job 543.4
5 543.5 (PGVERSION=41.0) 18 Sep 2015 05:49AM UTC 0
94.13
Travis Job 543.5
Source Files on build 543
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #543
  • 5f2a452e on github
  • Next Build on fix_hash_token_distribution (#551)
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