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(collator): remove all collated block ids from mismatched one #600

Draft
wants to merge 8 commits into
base: feat/imp-sync-long-tail
Choose a base branch
from

Conversation

SmaGMan
Copy link
Contributor

@SmaGMan SmaGMan commented Feb 12, 2025

No description provided.

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 7.10383% with 170 lines in your changes missing coverage. Please review.

Please upload report for BASE (feat/imp-sync-long-tail@164d06b). Learn more about missing BASE report.

Files with missing lines Patch % Lines
collator/src/utils/async_dispatcher.rs 0.00% 61 Missing ⚠️
collator/src/manager/mod.rs 0.00% 36 Missing ⚠️
collator/src/collator/messages_reader/mod.rs 0.00% 19 Missing ⚠️
...r/src/collator/messages_reader/internals_reader.rs 0.00% 16 Missing ⚠️
collator/src/manager/blocks_cache.rs 0.00% 14 Missing ⚠️
collator/src/types/processed_upto.rs 0.00% 14 Missing ⚠️
collator/src/collator/do_collate/prepare.rs 0.00% 6 Missing ⚠️
collator/src/collator/do_collate/mod.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                     @@
##             feat/imp-sync-long-tail     #600   +/-   ##
==========================================================
  Coverage                           ?   42.69%           
==========================================================
  Files                              ?      278           
  Lines                              ?    52161           
  Branches                           ?    52161           
==========================================================
  Hits                               ?    22268           
  Misses                             ?    28727           
  Partials                           ?     1166           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SmaGMan SmaGMan force-pushed the fix/clean-uncommitted-diffs-on-mismatch branch from 0bbc868 to bbe9911 Compare February 13, 2025 09:24
… sync and queue restore

Last processed master block may be incorrect when collator made some incorrect blocks before we received correct one from bc. In this case, we may skip required queue diffs on sync. So we should consider only last collated and previous synced_to master blocks to define queue restore range.
@SmaGMan SmaGMan force-pushed the fix/clean-uncommitted-diffs-on-mismatch branch from c9ecf02 to 7c0b2c1 Compare February 13, 2025 14:17
…n collected in all partitions

* otherwise it causes an incorrect messages buffers refill after sync when there are messages in other partitions except partition 0, and collator produces an incorrect block
* to guarantee an identical logic for collation on continue and after sync
@SmaGMan SmaGMan force-pushed the fix/clean-uncommitted-diffs-on-mismatch branch from e8b4e65 to fa3fff4 Compare February 18, 2025 17:45
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.

1 participant