mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-24 08:28:12 +00:00
chore(assertions): catch any exception on assertion delete (#8247)
This commit is contained in:
parent
ae1b6328f7
commit
abf73b2d10
@ -14,7 +14,6 @@ import com.linkedin.entity.client.EntityClient;
|
||||
import com.linkedin.metadata.Constants;
|
||||
import com.linkedin.metadata.authorization.PoliciesConfig;
|
||||
import com.linkedin.metadata.entity.EntityService;
|
||||
import com.linkedin.r2.RemoteInvocationException;
|
||||
import graphql.schema.DataFetcher;
|
||||
import graphql.schema.DataFetchingEnvironment;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
@ -54,7 +53,7 @@ public class DeleteAssertionResolver implements DataFetcher<CompletableFuture<Bo
|
||||
CompletableFuture.runAsync(() -> {
|
||||
try {
|
||||
_entityClient.deleteEntityReferences(assertionUrn, context.getAuthentication());
|
||||
} catch (RemoteInvocationException e) {
|
||||
} catch (Exception e) {
|
||||
log.error(String.format("Caught exception while attempting to clear all entity references for assertion with urn %s", assertionUrn), e);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user