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

Output BankHashDetails file when leader drops its' own block #34256

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

steviez
Copy link
Contributor

@steviez steviez commented Nov 28, 2023

Problem

Currently, the file is generated when a node drops a block that was
produced by another node. However, it would also be beneficial to see
the account state when a node drops its' own block.

Summary of Changes

Output the file in this additional failure codepath

Note that the debug file gets generated when we are not the leader via ReplayStage::purge_unconfirmed_duplicate_slot():

let _ = bank_hash_details::write_bank_hash_details_file(&bank);

Currently, the file is generated when a node drops a block that was
produced by another node. However, it would also be beneficial to see
the account state when a node drops its' own block.
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Merging #34256 (4ef6b52) into master (b741c9c) will increase coverage by 0.0%.
Report is 20 commits behind head on master.
The diff coverage is 79.5%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34256   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         819      819           
  Lines      219387   219406   +19     
=======================================
+ Hits       179690   179745   +55     
+ Misses      39697    39661   -36     

@steviez steviez marked this pull request as ready for review November 29, 2023 06:14
Copy link
Contributor

@AshwinSekar AshwinSekar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. if we're backporting the regular bank hash details, I vote that we should also backport this pr as it is extremely useful in debugging.

@steviez
Copy link
Contributor Author

steviez commented Nov 29, 2023

LGTM. if we're backporting the regular bank hash details, I vote that we should also backport this pr as it is extremely useful in debugging.

Agreed, that is currently a work in progress 😉 for v1.16. I'm going to add the v1.17 label to this PR for now; will make sure to get buy in from Will and/or Trent for that one before submitting

@steviez steviez merged commit 935e06f into solana-labs:master Nov 29, 2023
32 checks passed
@steviez steviez deleted the dump_file_on_leader_too branch November 29, 2023 23:20
@steviez steviez added the v1.17 PRs that should be backported to v1.17 label Nov 29, 2023
Copy link
Contributor

mergify bot commented Nov 29, 2023

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

mergify bot pushed a commit that referenced this pull request Nov 29, 2023
Currently, the file is generated when a node drops a block that was
produced by another node. However, it would also be beneficial to see
the account state when a node drops its' own block.

Output the file in this additional failure codepath

(cherry picked from commit 935e06f)
steviez added a commit that referenced this pull request Nov 30, 2023
…backport of #34256) (#34275)

Output BankHashDetails file when leader drops its' own block (#34256)

Currently, the file is generated when a node drops a block that was
produced by another node. However, it would also be beneficial to see
the account state when a node drops its' own block.

Output the file in this additional failure codepath

(cherry picked from commit 935e06f)

Co-authored-by: steviez <steven@solana.com>
@steviez steviez added the v1.16 PRs that should be backported to v1.16 label Dec 1, 2023
Copy link
Contributor

mergify bot commented Dec 1, 2023

Backports to the stable branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule.

mergify bot pushed a commit that referenced this pull request Dec 1, 2023
Currently, the file is generated when a node drops a block that was
produced by another node. However, it would also be beneficial to see
the account state when a node drops its' own block.

Output the file in this additional failure codepath

(cherry picked from commit 935e06f)
t-nelson pushed a commit that referenced this pull request Dec 1, 2023
…backport of #34256) (#34302)

Output BankHashDetails file when leader drops its' own block (#34256)

Currently, the file is generated when a node drops a block that was
produced by another node. However, it would also be beneficial to see
the account state when a node drops its' own block.

Output the file in this additional failure codepath

(cherry picked from commit 935e06f)

Co-authored-by: steviez <steven@solana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.16 PRs that should be backported to v1.16 v1.17 PRs that should be backported to v1.17
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants