Skip to content

Conversation

@stelfrag
Copy link
Collaborator

@stelfrag stelfrag commented Nov 26, 2025

Summary
  • Mark and of replication if parent retention also matches child retention

Summary by cubic

Stop replication when the parent is caught up with or ahead of the child by checking last_entry_t >= child last_entry_t and sending an empty request to end the replay. This prevents stalls and avoids unnecessary gap-filling when timelines are equal or the parent is ahead.

Written for commit e0d8e26. Summary will update automatically on new commits.

@stelfrag stelfrag marked this pull request as ready for review November 26, 2025 09:24
@stelfrag stelfrag requested a review from thiagoftsm as a code owner November 26, 2025 09:24
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

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

Replication is running as expected locally, LGTM!

@stelfrag stelfrag merged commit 9bfd83d into netdata:master Nov 26, 2025
119 checks passed
@stelfrag stelfrag deleted the fix_replication_stall branch November 26, 2025 13:39
stelfrag added a commit to stelfrag/netdata that referenced this pull request Dec 1, 2025
@stelfrag stelfrag mentioned this pull request Dec 1, 2025
Ferroin pushed a commit that referenced this pull request Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants