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

blockstore: Adjust the error message for missing shreds #34833

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

steviez
Copy link
Contributor

@steviez steviez commented Jan 18, 2024

Problem

The log statement is currently a bit misleading, and could be interpretted as saying this routine deleted a shred.

Summary of Changes

Adjust the log statement to state that this routine is looking for the shred but couldn't find it. Also, elevate the log to error level as inconsistent state across columns should not be happening.

I updated from warn to error for visibility altho this function can technically handle the shred being absent.

The log statement is currently a bit misleading, and could be
interpretted as saying this routine deleted a shred.

Adjust the log statement to state that this routine is looking for the
shred but couldn't find it. Also, elevate the log to error level as
inconsistent state across columns should not be happening.
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (6a9f729) 81.7% compared to head (20120ca) 81.7%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34833     +/-   ##
=========================================
- Coverage    81.7%    81.7%   -0.1%     
=========================================
  Files         825      825             
  Lines      223263   223263             
=========================================
- Hits       182624   182543     -81     
- Misses      40639    40720     +81     

@steviez steviez merged commit 3bccdaf into solana-labs:master Jan 18, 2024
35 checks passed
@steviez steviez deleted the bstore_missing_shred_msg branch January 18, 2024 18:17
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.

2 participants