Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(relayer): include all applicable msgs in cursor store #2585

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

corverroos
Copy link
Collaborator

@corverroos corverroos commented Nov 27, 2024

Wait for fuzzy submissions to finalize before confirming confFinalized streamers.

This fixes the following issue

  • Fuzzy streamer is busy submitting some fuzzy messages (so msgCursorFilter has been updated).
  • Finalized streamer skips over them (filters them out)
  • Finalized streamer updates cursor store WITHOUT these fuzzy streams (BUG).
  • But fuzzy streamer doesn't actually submit messages (due to whatever reason).
  • When worker resets
  • Finalized streamer is ahead of fuzzy streamer and gets stuck and logs "Gap in fuzzy msg offsets".

Solution

  • Include all applicable messages in cursor, not just submitted.
  • Finalized cursor will in that case not confirm, which is correct.

issue: none

@corverroos corverroos merged commit 9cd269c into main Nov 27, 2024
19 of 22 checks passed
@corverroos corverroos deleted the corver/fixcursors branch November 27, 2024 17:57
chmllr pushed a commit that referenced this pull request Dec 3, 2024
Wait for fuzzy submissions to finalize before confirming confFinalized
streamers.

This fixes the following issue
- Fuzzy streamer is busy submitting some fuzzy messages (so
msgCursorFilter has been updated).
- Finalized streamer skips over them (filters them out)
- Finalized streamer updates cursor store WITHOUT these fuzzy streams
(BUG).
- But fuzzy streamer doesn't actually submit messages (due to whatever
reason).
- When worker resets
- Finalized streamer is ahead of fuzzy streamer and gets stuck and logs
"Gap in fuzzy msg offsets".

Solution
- Include all applicable messages in cursor, not just submitted.
- Finalized cursor will in that case not confirm, which is correct.

issue: none
chmllr pushed a commit that referenced this pull request Dec 3, 2024
Wait for fuzzy submissions to finalize before confirming confFinalized
streamers.

This fixes the following issue
- Fuzzy streamer is busy submitting some fuzzy messages (so
msgCursorFilter has been updated).
- Finalized streamer skips over them (filters them out)
- Finalized streamer updates cursor store WITHOUT these fuzzy streams
(BUG).
- But fuzzy streamer doesn't actually submit messages (due to whatever
reason).
- When worker resets
- Finalized streamer is ahead of fuzzy streamer and gets stuck and logs
"Gap in fuzzy msg offsets".

Solution
- Include all applicable messages in cursor, not just submitted.
- Finalized cursor will in that case not confirm, which is correct.

issue: none
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.

2 participants