Open SudhanshuBawane opened 5 months ago
A couple of minor things but looks good otherwise!
Don't forget to add a changelog entry.
Please add a test that shows that the boltdb manager now exhibits correct behaviour when the asset.db has been deleted
Please add a test that shows that the boltdb manager now exhibits correct behaviour when the asset.db has been deleted
May I know what kind of behavior is expected like what I need to check ?
Closed #5009
Description
The change is regarding the denial of service from agent when asset.db gets deleted due to some external scenario. Which creates a DOS as SHA contains the some reference to the previous asset.db and hence forth the new one does not get created properly.
Change in behavior
To prevent the DOS of the agent in above scenario and keep the agent working properly. For new asset.db creation.
Added
Changed
Fixed
Change verification
The changes can be verified not only by the test cases but also by checking the same behavior. That is delete the asset.db and make note of it's size. Then re-run the agent and it will run without populating error file exits and asset.db get recreated with same size.