Cleaner removing too many artifacts #491
Labels
bug
help wanted
Hey, contributor! We need your help.
size medium
Issues that would require some thinking and tinkering to fix
Describe the bug
I've observed that Cleaner job can remove too many artifacts from db in two cases:
AGGREGATE_SUITES_STEP
. In spite of timeout, the processing continues and further steps receive incomplete list of referenced artifacts. PR Bugfix/Claner removing too many artifacts after timeout #490 fixes this issue by forcing processing termination after timeout.fetchProjectSuites
task. The new artifacts aren't referenced by any suite collected byfetchProjectSuites
task and as a result will be removed.AET 3.2.0
To Reproduce
Steps to reproduce the behavior observed in cases mentioned:
AGGREGATE_SUITES_STEP
:GetMetadataArtifactsProcessor
by more than one minute. You can do it by addingsleep()
function or a breakpoint inprocess()
method ofGetMetadataArtifactsProcessor
,fetchProjectSuites
task:GetMetadataArtifactsProcessor
by less than one minute (we don't want timeout to happen),GetMetadataArtifactsProcessor
run a new suite which will create new artifacts. Using any mongoDB tool you can observe that the new artifacts appear in the database and then get removed when the execution of cleaner job continues.Expected behavior
Cleaner should not remove artifacts referenced by existing suites.
The text was updated successfully, but these errors were encountered: