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

numberoverzero / bloop / 663
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: stream-record-ordering
DEFAULT BRANCH: master
Ran 04 Oct 2016 10:21AM UTC
Jobs 2
Files 11
Run time 44s
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
663

push

travis-ci

Joe Cross
impl Record minheap, Shard.read_version #17

`Shard.read_version` is used by Shard consumers to signal back to
the shard that a record has actually been read, and not just buffered.
This is done through `Shard.mark_read(sequence_number, read_version)`.

The read_version is incremented whenever the Shard's iterator changes
location; after which it will discard read acks for old read versions
(since the iterator is no longer where it was when the record being marked
was returned).

RecordHeap is a very simple wrapper around the fantastic stdlib's
heapq functions, and sorts buffered records by lowest
"ApproximateCreationDateTime".  The generating shard and read version for
that record are also stored with the record, so that the shard can be
notified when the record is finally consumed.

Some of the simple case for Coordinator.__next__ has been written; namely,
when there are records in the buffer.  Assumptions are made that the shard
which returned the record will also return a next shard (or None) and does
not handle expiration or exhaustion.

1648 of 1833 relevant lines covered (89.91%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 663.1 (TOXENV=unit) 04 Oct 2016 10:21AM UTC 0
89.91
Travis Job 663.1
2 663.2 (TOXENV=integ) 04 Oct 2016 10:22AM UTC 0
Travis Job 663.2
Source Files on build 663
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #663
  • 0505b10e on github
  • Prev Build on streams (#662)
  • Next Build on streams (#664)
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