Skip to content

Conversation

jlevesy
Copy link
Contributor

@jlevesy jlevesy commented Nov 30, 2023

What does this PR do?

This PR makes wlog.Watcher replays segments synchronously when not tailing.
It adds a test that proves replaying a fixed amount of segments takes less time than a single timeout.

Relates to #13111
Supersedes #13188

Copy link
Member

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks!

@cstyan
Copy link
Member

cstyan commented Nov 30, 2023

@jlevesy can you add a changelog entry, imo this is an enhancement

Signed-off-by: Julien Levesy <jlevesy@gmail.com>
@jlevesy jlevesy force-pushed the 13111/wlog-synchronous-reads branch from 514421d to ba65ab5 Compare November 30, 2023 18:53
@jlevesy
Copy link
Contributor Author

jlevesy commented Nov 30, 2023

Done!

Signed-off-by: Callum Styan <callumstyan@gmail.com>
@cstyan cstyan merged commit e4ec263 into prometheus:main Dec 1, 2023
@jlevesy jlevesy deleted the 13111/wlog-synchronous-reads branch December 4, 2023 09:41
cstyan added a commit that referenced this pull request Dec 5, 2023
Signed-off-by: Julien Levesy <jlevesy@gmail.com>
Signed-off-by: Callum Styan <callumstyan@gmail.com>
Co-authored-by: Callum Styan <callumstyan@gmail.com>
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