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

add logging for trie goroutines and batch #6770

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

BeniaminDrasovean
Copy link
Contributor

Reasoning behind the pull request

  • Missing log prints for new functionality

Proposed changes

  • Add logging for goroutinesManager and for trieBatchManager

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@@ -224,6 +224,7 @@ func (b *baseAccountsSyncer) GetSyncedTries() map[string]common.Trie {
EnableEpochsHandler: b.enableEpochsHandler,
MaxTrieLevelInMemory: b.maxTrieLevelInMemory,
Throttler: trie.NewDisabledTrieGoRoutinesThrottler(),
Identifier: "base sync main trie ",
Copy link
Contributor

Choose a reason for hiding this comment

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

add a constant for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

sasurobert
sasurobert previously approved these changes Feb 3, 2025
Base automatically changed from get-proof-refactor to feat/trie-mutex-refactor February 3, 2025 13:28
@BeniaminDrasovean BeniaminDrasovean dismissed sasurobert’s stale review February 3, 2025 13:28

The base branch was changed.

@@ -29,6 +29,7 @@ func createAccountAdapter(
EnableEpochsHandler: enableEpochsHandler,
MaxTrieLevelInMemory: maxTrieLevelInMemory,
Throttler: trie.NewDisabledTrieGoRoutinesThrottler(),
Identifier: "main trie in memory",
Copy link
Contributor

Choose a reason for hiding this comment

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

use a const here also?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@BeniaminDrasovean BeniaminDrasovean merged commit 5324e44 into feat/trie-mutex-refactor Feb 3, 2025
4 checks passed
@BeniaminDrasovean BeniaminDrasovean deleted the trie-refactor-logging branch February 3, 2025 14:10
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.

3 participants