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

citusdata / pg_shard / 544
36%

Build:
DEFAULT BRANCH: develop
Ran 18 Sep 2015 05:52AM UTC
Jobs 5
Files 18
Run time 19s
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
544

Pull #146

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.
Pull Request #146: Fix hash token distribution algorithm

6 of 6 new or added lines in 1 file covered. (100.0%)

2167 of 2270 relevant lines covered (95.46%)

1753.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 544.1 (PGVERSION=9.3) 18 Sep 2015 05:52AM UTC 0
95.15
Travis Job 544.1
2 544.2 (PGVERSION=9.4) 18 Sep 2015 05:52AM UTC 0
95.15
Travis Job 544.2
3 544.3 (PGVERSION=9.5) 18 Sep 2015 05:52AM UTC 0
95.15
Travis Job 544.3
4 544.4 (PGVERSION=40.0) 18 Sep 2015 05:52AM UTC 0
94.13
Travis Job 544.4
5 544.5 (PGVERSION=41.0) 18 Sep 2015 05:52AM UTC 0
94.13
Travis Job 544.5
Source Files on build 544
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #544
  • Pull Request #146
  • PR Base - develop (#532)
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