Unverified Commit 4d2691e5 authored by Shubham Dhama's avatar Shubham Dhama Committed by GitHub
Browse files

Fix issue with resuming streaming of interleaved transactions. (#394)

This resolves a problem encountered during the transition from prefetch to
replay mode, where the transform process identifies some incomplete
transactions. This issue also arises when we interrupt 'follow' and execute
a 'follow --resume'.

The root cause is upon resumption of streaming, we may encounter a
transaction where the initial messages have LSNs less than the startpos
calculated from the latest json file.

The implemented fix involves comparing the LSNs with 'startpos' only when
resuming streaming of partially complete transactions. Once 'startpos' is
reached, comparison of LSNs for subsequent messages is discontinued.

Fixes: #373
parent 88eda22e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment