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

citusdata / pg_shard / 544 / 2
36%
develop: 36%

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

18 Sep 2015 05:52AM UTC coverage: 95.154% (-0.002%) from 95.156%
PGVERSION=9.4

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

2160 of 2270 relevant lines covered (95.15%)

323.46 hits per line

Source Files on job 544.2 (PGVERSION=9.4)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 544
  • Travis Job 544.2
  • 86c78675 on github
  • Prev Job for PGVERSION=9.4 on develop (#532.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