-
Notifications
You must be signed in to change notification settings - Fork 286
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
Output fake txn when no entry event comes before a resolved event #83
Conversation
@@ -129,6 +128,14 @@ func CollectRawTxns( | |||
return err | |||
} | |||
} | |||
if len(readyTxns) == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about put L131 - L137 after L121
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if readyTxns
is empty, we can skip the loop
on L126.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But never mind, not a big deal here.
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
We need to make sure heartbeat events are forwarded.
When we receive a resolved event and there's no entry event that comes with a smaller ts before it, we take it as a heartbeat event.
What is changed and how it works?
Wrap a resolved event as an empty RawTxn.
Check List
Tests
Code changes
Side effects
Related changes