Files
floci/src/test/java
Vũ Thế Huy 0de2b7fdd8 fix(redshift): discard the final snapshot when DeleteCluster fails (#7072)
* fix(redshift): discard the final snapshot when DeleteCluster fails

DeleteCluster took the final snapshot before tearing the cluster down. When the teardown then failed, the cluster survived but the snapshot stayed behind, so retrying with the same FinalClusterSnapshotIdentifier failed with ClusterSnapshotAlreadyExists. Remove the snapshot when the cluster is still present after a failed removal.

* fix(redshift): keep the final snapshot once container teardown has started

The cleanup added for failed DeleteCluster also ran when containerManager.stop threw. That call removes the container and its volumes before closing the log stream, so a late failure leaves the cluster record behind with the database already gone, and the cleanup then deleted the only remaining copy. Limit the cleanup to the proxy-stop failure, which happens before anything is torn down, and cover both the kept-snapshot and the suppressed-cleanup-failure paths.
2026-10-31 08:45:26 -04:00
..