-
Notifications
You must be signed in to change notification settings - Fork 1
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
feature(collator): queue diffs tail #480
base: master
Are you sure you want to change the base?
Conversation
7a3ec2e
to
c1b9a26
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #480 +/- ##
========================================
Coverage 43.80% 43.80%
========================================
Files 269 269
Lines 47299 47531 +232
Branches 47299 47531 +232
========================================
+ Hits 20720 20823 +103
- Misses 25518 25645 +127
- Partials 1061 1063 +2 ☔ View full report in Codecov by Sentry. |
c1b9a26
to
f520b76
Compare
627290e
to
a888612
Compare
6be90f0
to
61804d6
Compare
5265656
to
bde3adb
Compare
fn clear_session_state(&self) -> Result<()> { | ||
self.diffs.clear(); | ||
self.session_state.truncate() | ||
fn clear_uncommitted_state(&self) -> Result<()> { |
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.
We call this method when block mismatched. Then we run sync to applied mc block and apply required queue diff for this mc block. Possibly we can get incorrect diff_tail_len
because we keep committed_diffs
unchanged. Should check this for all places were clear_uncommitted_state
called.
caf2b07
to
1a57ed1
Compare
1a57ed1
to
738828e
Compare
4a93855
to
40f9f43
Compare
.await?; | ||
let tail_len = block.block().out_msg_queue_updates.tail_len as usize; | ||
|
||
min_tail_len = Some(min_tail_len.map_or(tail_len, |min: usize| min.min(tail_len))); |
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.
Why do we get the minimal tail length from shards? Should it be the longest tail instead?
738828e
to
40f9f43
Compare
40f9f43
to
15e2546
Compare
No description provided.