Deep-Learning-Playground icon indicating copy to clipboard operation
Deep-Learning-Playground copied to clipboard

[BUG]: Create Table command in AppStack.ts not idempotent.

Open alantao912 opened this issue 2 years ago • 3 comments

Operating system

Windows 11

Bug description

Create Table command in AppStack.ts throws an exception if the specified table already exists in DynamoDB. Prevents SST from starting. In other words, the command is not idempotent. We should check if the table exists first, and if not, create it then.

Steps to reproduce

Un-comment the

const trainspaceRunTable = new Table(...); 

lines of code, and then type dlp-cli start.

It should complain about the specified table already existing, and then fail to start.

alantao912 avatar Oct 18 '23 18:10 alantao912

Hello @alantao912! Thank you for submitting the 🐞Bug Request Form. We appreciate your contribution. :wave:

We will look into it and provide a response as soon as possible.

To work on this bug request, you can follow these branch setup instructions:

  1. Checkout the main branch:
```
 git checkout nextjs
```
  1. Pull the latest changes from the remote main branch:
```
 git pull origin nextjs
```
  1. Create a new branch specific to this bug request using the issue number: git checkout -b bug-1033

Feel free to make the necessary changes in this branch and submit a pull request when you're ready.

Best regards, Deep Learning Playground (DLP) Team

github-actions[bot] avatar Oct 18 '23 18:10 github-actions[bot]

@alantao912 status on this?

karkir0003 avatar Nov 26 '23 21:11 karkir0003

@alantao912 any status on this?

karkir0003 avatar Dec 29 '23 20:12 karkir0003