chore(assertions): catch any exception on assertion delete (#8247)

This commit is contained in:
Joshua Eilers 2023-06-20 03:06:44 -07:00 committed by GitHub
parent ae1b6328f7
commit abf73b2d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
});