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

numberoverzero / bloop / 663 / 1
100%
master: 100%

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

04 Oct 2016 10:21AM UTC coverage: 89.907% (-1.5%) from 91.416%
TOXENV=unit

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

Source Files on job 663.1 (TOXENV=unit)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 663
  • Travis Job 663.1
  • 0505b10e on github
  • Prev Job for TOXENV=unit on streams (#662.1)
  • Next Job for TOXENV=unit on streams (#664.1)
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