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

evolution-gaming / kafka-journal / 11017763458
94%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2024 04:20PM UTC
Jobs 1
Files 198
Run time 1min
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

24 Sep 2024 04:14PM UTC coverage: 80.808% (-0.1%) from 80.954%
11017763458

push

web-flow
Add meta_record_id into journal & record_id metajournal tables for gaining correlation between them (#665)

### Problem
KJ can be in inconsistent state when (after purging) meta from
`metajournal` was deleted while events from `journal` left behind. By
itself its not an issue, but after the journal used again and new meta
inserted - then old events will be available (probably with duplicated
`seqNr`).

### Solution 
Create correlation between meta and events that belong to it, i. e. were
created while the meta was present. Then, on reading journal, only
events that correlate with meta must be used.

### Implementation 
Add `meta_record_id` column to `journal` and `record_id` column to
`metajournal` tables. In appending events `RecordId` from meta will be
used (if meta has it) and if meta is not present yet - new `RecordId`
generated. On reading compare `RecordId` from meta and event ignoring
events with another value. `RecordId` is optional value thus validation
takes place only if its present in meta.

Co-authored-by: Denys Fakhritdinov <dfakhritdinov@evolution.com>

49 of 56 new or added lines in 7 files covered. (87.5%)

14 existing lines in 12 files now uncovered.

3280 of 4059 relevant lines covered (80.81%)

1.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Scala 2.13.14 - 11017763458.1 24 Sep 2024 04:20PM UTC 0
80.81
Source Files on build 11017763458
Detailed source file information is not available for this build.
  • Back to Repo
  • 0be7edd7 on github
  • Prev Build on master (#10900866320)
  • Next Build on master (#11018088362)
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