Skip to content

Commit

Permalink
add missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro93 committed May 28, 2024
1 parent 1ad4538 commit e2d3b6b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
import com.linkedin.metadata.entity.AspectUtils;
import com.linkedin.metadata.key.DataHubViewKey;
import com.linkedin.metadata.utils.EntityKeyUtils;
import com.linkedin.r2.RemoteInvocationException;
import com.linkedin.view.DataHubViewDefinition;
import com.linkedin.view.DataHubViewInfo;
import com.linkedin.view.DataHubViewType;
import io.datahubproject.metadata.context.OperationContext;
import java.util.Objects;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -177,11 +179,11 @@ public void deleteView(@Nonnull OperationContext opContext, @Nonnull Urn viewUrn
try {
this.entityClient.deleteEntity(
opContext, Objects.requireNonNull(viewUrn, "viewUrn must not be null"));

// Asynchronously delete all references to the entity (to return quickly)
CompletableFuture.runAsync(
() -> {
try {
try {x
this.entityClient.deleteEntityReferences(opContext, viewUrn);
} catch (RemoteInvocationException e) {
log.error(
Expand Down

0 comments on commit e2d3b6b

Please sign in to comment.