Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Fix the inconsistency check in get_entries_in_data_block() (backport #27195)#27231

Merged
mergify[bot] merged 1 commit intov1.10from
mergify/bp/v1.10/pr-27195
Aug 18, 2022
Merged

Fix the inconsistency check in get_entries_in_data_block() (backport #27195)#27231
mergify[bot] merged 1 commit intov1.10from
mergify/bp/v1.10/pr-27195

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Aug 18, 2022

This is an automatic backport of pull request #27195 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

#### Problem
get_entries_in_data_block() panics when there's inconsistency between
slot_meta and data_shred.

However, as we don't lock on reads, reading across multiple column families is
not atomic (especially for older slots) and thus does not guarantee consistency
as the background cleanup service could purge the slot in the middle.  Such
panic was reported in #26980 when the validator serves a high load of RPC calls.

#### Summary of Changes
This PR makes get_entries_in_data_block() panic only when the inconsistency
between slot-meta and data-shred happens on a slot older than lowest_cleanup_slot.

(cherry picked from commit 6d12bb6)
@mergify mergify Bot added automerge Merge this Pull Request automatically once CI passes and removed automerge Merge this Pull Request automatically once CI passes labels Aug 18, 2022
@mergify
Copy link
Copy Markdown
Contributor Author

mergify Bot commented Aug 18, 2022

automerge label removed due to a CI failure

@mergify mergify Bot added the automerge Merge this Pull Request automatically once CI passes label Aug 18, 2022
@mergify mergify Bot merged commit c3a14df into v1.10 Aug 18, 2022
@mergify mergify Bot deleted the mergify/bp/v1.10/pr-27195 branch August 18, 2022 23:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge this Pull Request automatically once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant