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

Enable the banking trace by default #33497

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

ryoqun
Copy link
Member

@ryoqun ryoqun commented Oct 3, 2023

Problem

The banking trace disabled code path is running fine with mb & v1.16.

Let's bake the banking trace with v1.17 rel train to enable it on mb by default eventually.

I'm procrastinator.. missed v1.17 branching a day.

Summary of Changes

Enable it by default.

CLI:

--enable-banking-trace <BYTES>
    Enables the banking trace explicitly, which is enabled by default and writes trace files for simulate-
    leader-blocks, retaining up to the default or specified total bytes in the ledger. This flag can be
    used to override its byte limit. [default: 15032385536]

--disable-banking-trace                   
    Disables the banking trace

@ryoqun ryoqun added the v1.17 PRs that should be backported to v1.17 label Oct 3, 2023
@ryoqun ryoqun requested a review from apfitzge October 3, 2023 01:10
@@ -1134,11 +1134,11 @@ impl Validator {
.map_err(|err| format!("{} [{:?}]", &err, &err))?;
if banking_tracer.is_enabled() {
info!(
"Enabled banking tracer (dir_byte_limit: {})",
"Enabled banking trace (dir_byte_limit: {})",
Copy link
Member Author

Choose a reason for hiding this comment

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

just let's be consistent with cli terms.

@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

Merging #33497 (a4e89f1) into master (3eae980) will decrease coverage by 0.1%.
The diff coverage is 33.3%.

@@            Coverage Diff            @@
##           master   #33497     +/-   ##
=========================================
- Coverage    81.7%    81.7%   -0.1%     
=========================================
  Files         802      802             
  Lines      217779   217781      +2     
=========================================
- Hits       178111   178091     -20     
- Misses      39668    39690     +22     

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

lgtm

@ryoqun ryoqun merged commit eb262aa into solana-labs:master Oct 4, 2023
32 checks passed
mergify bot pushed a commit that referenced this pull request Oct 4, 2023
mergify bot added a commit that referenced this pull request Oct 4, 2023
Enable the banking trace by default (#33497)

(cherry picked from commit eb262aa)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
tao-stones pushed a commit to tao-stones/solana that referenced this pull request Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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