Commit e870b50
committed
feat(linstor): add counter to GC volume deletion prefix
When a snapshot operation has failed, a rollback operation takes place
which marks the new leaf volume (which took the UUID of the volume being
snapshotted) for deletion, and updates the UUID of the volume being
snapshotted back to its original UUID.
The reason for the snapshot having failed may last for quite some time,
and the GC may not be able to actually destroy the volumes that are
marked for deletion.
If such a scenario occurs, further snapshot attempts will also fail, but
the rollback operation will also fail because a volume with the UUID of
the volume to snapshot was already marked for deletion by the first
snapshot attempt.
This fixes the issue by introducing a counter to the prefix of volume
UUIDs that are marked for deletion, therefore allowing multiple of them
co-existing until the underlying storage issues are fixed.
Signed-off-by: Alexandre Sollier <alexandre.sollier@vates.tech>1 parent 8ad8dde commit e870b50
1 file changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
1072 | 1073 | | |
1073 | 1074 | | |
1074 | 1075 | | |
1075 | | - | |
| 1076 | + | |
| 1077 | + | |
1076 | 1078 | | |
1077 | 1079 | | |
1078 | 1080 | | |
| |||
1156 | 1158 | | |
1157 | 1159 | | |
1158 | 1160 | | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1162 | 1178 | | |
1163 | 1179 | | |
1164 | 1180 | | |
| |||
0 commit comments