-
Notifications
You must be signed in to change notification settings - Fork 197
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
Start snapshot after restart fix #4551
Conversation
@@ -384,6 +384,14 @@ func (nr *nodeRunner) executeOneComponentCreationCycle( | |||
return true, err | |||
} | |||
|
|||
selfId := managedBootstrapComponents.ShardCoordinator().SelfId() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please re-check this. On rc/v1.4.0 we do not have this call here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in rc/v1.4.0 these are called in the addSyncersToAccountsDB
function after setting the trie syncers.
@@ -160,17 +154,16 @@ func checkArgsAccountsDB(args ArgsAccountsDB) error { | |||
return nil | |||
} | |||
|
|||
func startSnapshotAfterRestart(adb AccountsAdapter, args ArgsAccountsDB) { | |||
tsm := args.Trie.GetStorageManager() | |||
func startSnapshotAfterRestart(adb AccountsAdapter, tsm common.StorageManager, processingMode common.NodeProcessingMode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked the file with v1.4.0, looks good 👍
return adb, nil | ||
} | ||
|
||
// StartSnapshotIfNeeded starts the snapshot if the previous snapshot process was not fully completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked with the rc/v1.4.0, looks good
Codecov ReportBase: 73.95% // Head: 73.91% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4551 +/- ##
==========================================
- Coverage 73.95% 73.91% -0.05%
==========================================
Files 681 681
Lines 87162 87170 +8
==========================================
- Hits 64462 64432 -30
- Misses 17883 17921 +38
Partials 4817 4817
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System test passed.
Description of the reasoning behind the pull request
Proposed Changes
Testing procedure