Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to delete containers (with delete references) using CLI command 'delete' #5992

Closed
Stefs-2142 opened this issue Sep 20, 2022 · 6 comments
Labels
accepted An Issue that is confirmed as a bug by the DataHub Maintainers. bug Bug report ingestion PR or Issue related to the ingestion of metadata

Comments

@Stefs-2142
Copy link

Stefs-2142 commented Sep 20, 2022

Error rise when attempting delete metadata using CLI command 'delete'
Same with all flags --soft, --hard, --force

Failed to execute operation
java.lang.UnsupportedOperationException: Only upsert operation is supported

To Reproduce
Steps to reproduce the behavior:

  1. Setup Datahub CLI
  2. Set env via datahub init
  3. run datahub delete --urn "urn:li:container:5f38c5bcfb279844c5471dd926da13e7"
  4. See error

Expected behavior
Metadata deleted

Desktop:

  • OS: [e.g. Linux Mint 20.2 Uma 64-bit]

Server:

  • Datahub [0.8.43]

Type of entity:

  • Container

Additional context
datahub-gms.log
In attach gms log with error trace

@Stefs-2142 Stefs-2142 added the bug Bug report label Sep 20, 2022
@etadelta222
Copy link

I've run into same error.

Datahub v0.8.38

@shirshanka shirshanka changed the title Error while deleting metadata using CLI command 'delete' Failure to delete containers (with delete references) using CLI command 'delete' Sep 25, 2022
@shirshanka shirshanka added the accepted An Issue that is confirmed as a bug by the DataHub Maintainers. label Sep 25, 2022
@laulpogan laulpogan added the product PR or Issue related to the DataHub UI/UX label Dec 7, 2022
@YuriyGavrilov
Copy link
Contributor

also have the same problem with delete

@YuriyGavrilov
Copy link
Contributor

@shirshanka any updates?

@aditya-radhakrishnan aditya-radhakrishnan added ingestion PR or Issue related to the ingestion of metadata and removed product PR or Issue related to the DataHub UI/UX labels Jan 17, 2023
@lambertpan
Copy link

If I run datahub delete --env PROD --entity_type=dataset --hard, I get the following warning and it is unable to delete the entities. I tried this on latest v.0.10.0.
WARNING {datahub.cli.cli_utils:440} - Discrepancy in entities yielded 0 and num entities 589. This means all entities may not have been deleted.

@hsheth2
Copy link
Collaborator

hsheth2 commented Aug 28, 2023

This should be fixed by some previous changes and #8709

@hsheth2
Copy link
Collaborator

hsheth2 commented Sep 20, 2023

So #8709 is merged, so I'm gonna call this one done!

@hsheth2 hsheth2 closed this as completed Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted An Issue that is confirmed as a bug by the DataHub Maintainers. bug Bug report ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

No branches or pull requests

8 participants