Autosubmit must never re-use an expid
( This is a template for bug reports. Please fill in the relevant information and delete the rest. )
Hello @dbeltran and @bdepaula, (cc @mcastril )
Autosubmit Version
Any.
Expid affected(If applicable)
NA
Which task has issues? Where is the log(If applicable)
NA
Summary
After you delete an experiment with autosubmit delete, it frees up that experiment's current expid. If that expid is the latest expid available, then the next command will re-use the same expid.
Steps to reproduce
autosubmit expid ....- No other experiments created
autosubmit delete $expidautosubmit expid ....
Now you have the same $expid.
What is the current bug behavior?
An experiment ID is used twice.
What is the expected correct behavior?
Experiment ID's must be used to uniquely identify experiments. If the deleted experiment had been used to upload data to an archival system, then the experiment itself was archived and then deleted, it is expected it could be unarchived or, at least, that no other experiment would use the same expid (risking to re-upload data to the same archival system under the same expid).
Relevant logs and/or screenshots(if applicable)
NA