retail-demo-store icon indicating copy to clipboard operation
retail-demo-store copied to clipboard

Personalize resource delete corner cases

Open james-jory opened this issue 1 year ago • 0 comments

Ran into some corner cases when deleting the Retail Demo Store stack

  • If a Personalize recommender is in an INACTIVE state (i.e., stopped), the delete logic will raise an exception. Instead it should just delete the recommender. Although not likely, it is possible for the user to stop recommenders to reduce cost of the deployment.
  • The dataset group delete logic optimistically tries to delete the dataset group rather than calling describe to check its status. If the dataset group is already being deleted (such as after a reentrant call following the delete being kicked off), this logic will fail with a ResourceInUseException. This creates a race condition with just this resource types; all the other types have describe calls before attempting deletes.

james-jory avatar Dec 18 '23 23:12 james-jory