Autosnap on recursive + prefix matching datasets broken
Consider the following dataset structure:
Create a recursive snapshot task on st/rec, set retention time to 1d with shortest period interval
Create a non-rec snapshot task on st/record, with any setting, but with longer interval
Create a non-rec snapshot task on st/rec/a, with any setting, but with longer interval
With these settings, as st/rec will be snapshotted on every run, all other recursiv tasks will be removed in the script.
And also, with the wrong prefix matching st/record will also be removed from pending tasks, thus not creating snapshots for them at all.
I suggest when comparing recursive tasks we should compare the retention time as well, and fix prefix matching.