hello guys, I am having the following issue: I got...
# troubleshoot
a
hello guys, I am having the following issue: I got a request from a user that she wasn't able to delete a glossary term under a glossary node. I did delete it from the datahub cli, I did a hard delete. It didn't have a name, it was in a form of an id. The problem is that it is still visible under the UI and now I can't move it or delete it, as it is already deleted. Any ideas on how I can get rid of it from the UI? Thanks
b
hey yianni! what was the issue your user was seeing when trying to delete the term from the UI? (I assume it was from the UI) That's very weird you hard deleted it from the CLI and it still shows up in the UI. are you still seeing the term in your document store?
a
yes, it still there. Before deleting from the CLI, i was getting this error:
Copy code
12:49:44.963 [Thread-2085] ERROR c.datahub.graphql.GraphQLController:98 - Errors while executing graphQL query: "mutation deleteGlossaryEntity($urn: String!) {\n deleteGlossaryEntity(urn: $urn)\n}\n", result: {errors=[{message=An unknown error occurred., locations=[{line=2, column=3}], path=[deleteGlossaryEntity], extensions={code=500, type=SERVER_ERROR, classification=DataFetchingException}}], data={deleteGlossaryEntity=null}, extensions={tracing={version=1, startTime=2022-09-06T12:49:44.956Z, endTime=2022-09-06T12:49:44.962Z, duration=6637331, parsing={startOffset=240015, duration=204234}, validation={startOffset=398408, duration=134413}, execution={resolvers=[{path=[deleteGlossaryEntity], parentType=Mutation, returnType=Boolean, fieldName=deleteGlossaryEntity, startOffset=493950, duration=5707223}]}}}}, errors: [DataHubGraphQLError{path=[deleteGlossaryEntity], code=SERVER_ERROR, locations=[SourceLocation{line=2, column=3}]}]
[otel.javaagent 2022-09-06 12:50:13:320 +0000] [grpc-default-executor-463] ERROR io.opentelemetry.exporter.otlp.metr
Now I am getting this:
Copy code
15:03:00.877 [Thread-4703] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler:21 - Failed to execute DataFetcher
java.util.concurrent.CompletionException: java.lang.RuntimeException: This urn does not exist: urn:li:glossaryTerm:5580e082-49ad-466d-b4b6-6efe184f8873
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: This urn does not exist: urn:li:glossaryTerm:5580e082-49ad-466d-b4b6-6efe184f8873
at com.linkedin.datahub.graphql.resolvers.glossary.DeleteGlossaryEntityResolver.lambda$get$1(DeleteGlossaryEntityResolver.java:35)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
... 1 common frames omitted
15:03:00.877 [Thread-4702] ERROR c.datahub.graphql.GraphQLController:98 - Errors while executing graphQL query: "mutation deleteGlossaryEntity($urn: String!) {\n deleteGlossaryEntity(urn: $urn)\n}\n", result: {errors=[{message=An unknown error occurred., locations=[{line=2, column=3}], path=[deleteGlossaryEntity], extensions={code=500, type=SERVER_ERROR, classification=DataFetchingException}}], data={deleteGlossaryEntity=null}, extensions={tracing={version=1, startTime=2022-09-06T15:03:00.873Z, endTime=2022-09-06T15:03:00.877Z, duration=4590161, parsing={startOffset=251135, duration=211294}, validation={startOffset=407168, duration=132733}, execution={resolvers=[{path=[deleteGlossaryEntity], parentType=Mutation, returnType=Boolean, fieldName=deleteGlossaryEntity, startOffset=498820, duration=3634242}]}}}}, errors: [DataHubGraphQLError{path=[deleteGlossaryEntity], code=SERVER_ERROR, locations=[SourceLocation{line=2, column=3}]}]
b
is there anything more from the first error before deleting via cli?
a
i don't think so
that's what I've saved anyway
b
and the second error would make sense if you deleted it, but i'm just confused on why it still shows up in the UI
a
well, me too 🙂
b
what my guess is is that your indices got out of whack when deleting for some reason. could you try restoring the indices of your data? https://datahubproject.io/docs/how/restore-indices/
a
that makes sense, I'll give that a try