Skip to content

Conversation

@jgraettinger
Copy link
Contributor

@jgraettinger jgraettinger commented Jun 25, 2025

Currently we will immediately skip forward a read if it begins at offset zero.

However, we also see cases where a long-disabled task will come back online, observe an ACK, and then attempt a replay-read from an offset fixed in its recovery log. These reads block for the full offset jump threshold.

Resolve this by skipping forward any read having an offset behind the minimum available offset of journal content.


This change is Reviewable

Currently we will immediately skip forward a read if it begins at offset
zero.

However, we also see cases where a long-disabled task will come back
online, observe an ACK, and then attempt a replay-read from an offset
fixed in its recovery log. These reads block for the full offset jump
threshold.

Resolve this by skipping forward any read having an offset behind the
minimum available offset of journal content.
@jgraettinger jgraettinger requested a review from psFried June 25, 2025 17:20
Copy link
Contributor

@psFried psFried left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jgraettinger jgraettinger merged commit e05afa6 into master Jun 25, 2025
1 check passed
@jgraettinger jgraettinger deleted the johnny/skip-to-first branch June 25, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants