You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A step towards: #11883.
Summary:
- At `reset_heads_post_state_sync()`, we should set the tail to
`sync_height - 2` because with congestion control we depend also on prev
sync block and prev prev sync block. Also, if chunks are missing, we
should set the tail to `min_height_included - 1`.
- `maybe_receive_state_sync_blocks()` saved past blocks without
increasing refcounts. Although sync block will have its refcount
increased later, extra blocks did not, we need to increase it manually
for extra blocks.
It is likely that we currently do not garbage collect data of shards that are no longer tracked. See https://near.zulipchat.com/#narrow/stream/295302-general/topic/state.20sync.20cleanup/near/455648325 for more context.
Let's verify that by creating an integration test, that should be included anyway.
Then implement the clean up if the test fails.
The text was updated successfully, but these errors were encountered: