-
Notifications
You must be signed in to change notification settings - Fork 204
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
Test pruning storer #6667
Test pruning storer #6667
Conversation
📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
The base branch was changed.
|
storage/pruning/pruningStorer.go
Outdated
return ps.removeOldPersistersIfNeeded(header, epoch) | ||
} | ||
|
||
func (ps *PruningStorer) removeOldPersistersIfNeeded(header data.HeaderHandler, epoch uint32) error { |
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.
can we pass only one argument, either the epoch or the header?
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.
Yes
|
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.
Normal allin test: v1.8.4-dev-config-171a31edab -> test-pruning-storer-fee796fb44
--- Specific errors ---
block hash does not match 1907
wrong nonce in block 829
miniblocks does not match 0
num miniblocks does not match 0
miniblock hash does not match 0
block bodies does not match 0
receipts hash missmatch 0
/------/
--- Statistics ---
Nr. of all ERRORS: 0
Nr. of all WARNS: 416
Nr. of new ERRORS: 0
Nr. of new WARNS: 15
Nr. of PANICS: 0
Nodes with panic: []
/------/
--- System test go ---
All scenarios from system-test-go are OK!
/------/
--- ERRORS ---
/------/
--- WARNINGS ---
/------/
|
6a74c03
into
rc/spica-patch-relayedv3
Reasoning behind the pull request
dbLookupExtension
set totrue
, it will not remove any old dbs. In this case the node will create aFullHistoryPruningStorer
that can create a new db for a new epoch if some methods are called. When thechangeEpoch
trigger is activated, the new db already exists, thus not executing the code that should close older dbs.Proposed changes
changeEpoch
, even if a db was already created, also check if older dbs need to be removedTesting procedure
full-archive
,db-lookup-extension
,historical-balances
,snapshotless-observer
node operation mode and check that the dbs will be kept or removed as they should be.Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?