OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Deleting service and then adding/creating service of same name throws "409, Entity already exists"

Open parthp2107 opened this issue 4 years ago • 4 comments

Steps to reproduce:

  • Create a service of same say test
  • Delete the service test
  • Try adding a service with nametest

https://user-images.githubusercontent.com/83201188/150905503-655b3141-f367-416d-819d-6878a2164a8f.mov

parthp2107 avatar Jan 25 '22 03:01 parthp2107

I'm also working on this. It could be a bug in the Java code too.

amiorin avatar Jan 25 '22 06:01 amiorin

The behaviour is:

  1. An entity in deleted state after a PUT request gets restored.
  2. PUT is either create or update.
  3. POST request will be rejected with 409 if soft-deleted or non-deleted.
  4. POST can only be done after hard deleting the entity.
  5. We need to add support for hard delete in the next release.

Ping me in Slack if you need support.

amiorin avatar Jan 25 '22 08:01 amiorin

@darth-coder00 Please handle the 409 in the UI.

@sureshms @harshach UI users cannot list deleted services yet.

image

amiorin avatar Jan 25 '22 18:01 amiorin

@darth-coder00 Please handle the 409 in the UI.

@sureshms @harshach UI users cannot list deleted services yet.

image

@amiorin Handled 409 error on UI

CC: @harshach @sureshms

darth-coder00 avatar Jan 26 '22 12:01 darth-coder00