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

[Storehouse] Improving logging #5124

Merged
merged 16 commits into from
Dec 11, 2023
Merged

Conversation

zhangchiqing
Copy link
Member

@zhangchiqing zhangchiqing commented Dec 9, 2023

This PR Improves logging for storehouse, and also change the default trie folder path

@@ -73,7 +73,7 @@ func (exeConf *ExecutionConfig) SetupFlags(flags *pflag.FlagSet) {
flags.StringVarP(&exeConf.rpcConf.ListenAddr, "rpc-addr", "i", "localhost:9000", "the address the gRPC server listens on")
flags.UintVar(&exeConf.rpcConf.MaxMsgSize, "rpc-max-message-size", grpcutils.DefaultMaxMsgSize, "the maximum message size in bytes for messages sent or received over grpc")
flags.BoolVar(&exeConf.rpcConf.RpcMetricsEnabled, "rpc-metrics-enabled", false, "whether to enable the rpc metrics")
flags.StringVar(&exeConf.triedir, "triedir", datadir, "directory to store the execution State")
flags.StringVar(&exeConf.triedir, "triedir", filepath.Join(datadir, "trie"), "directory to store the execution State")
Copy link
Member Author

Choose a reason for hiding this comment

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

the previous default value would not persist the trie data.

Use /data/trie instead of /trie by default, so that the operator doesn't have to config this flag in order to persist the trie data

@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2023

Codecov Report

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

Comparison is base (a8b45d6) 57.78% compared to head (028d543) 57.69%.

Files Patch % Lines
cmd/execution_builder.go 0.00% 19 Missing ⚠️
engine/execution/state/state.go 33.33% 7 Missing and 1 partial ⚠️
ledger/complete/wal/wal.go 63.63% 7 Missing and 1 partial ⚠️
cmd/execution_config.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5124      +/-   ##
==========================================
- Coverage   57.78%   57.69%   -0.09%     
==========================================
  Files         799      816      +17     
  Lines       76991    78284    +1293     
==========================================
+ Hits        44488    45169     +681     
- Misses      29168    29734     +566     
- Partials     3335     3381      +46     
Flag Coverage Δ
unittests 57.69% <35.71%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhangchiqing zhangchiqing marked this pull request as ready for review December 9, 2023 00:28
Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

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

it's helpful to break the variables out into labels so they're searchable. I called out a couple, but there are a few others as well

ledger/complete/wal/wal.go Outdated Show resolved Hide resolved
ledger/complete/wal/wal.go Outdated Show resolved Hide resolved
@zhangchiqing zhangchiqing added this pull request to the merge queue Dec 11, 2023
Merged via the queue into master with commit 1aba082 Dec 11, 2023
53 checks passed
@zhangchiqing zhangchiqing deleted the leo/storehouse-improve-logging branch December 11, 2023 23:30
This pull request was closed.
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.

4 participants