Hello, I receive the following error with Java and region asia-east2 . It happens randomly. Here is the error log:
Suppressed: com.google.api.gax.rpc.AsyncTaskException: Asynchronous task failed
at com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:57) ~[gax-2.48.1.jar!/:2.48.1]
at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112) ~[gax-2.48.1.jar!/:2.48.1]
at com.google.cloud.discoveryengine.v1.DocumentServiceClient.deleteDocument(DocumentServiceClient.java:1017) ~[google-cloud-discoveryengine-0.40.0.jar!/:0.40.0]
at com.gt.service.VertexDiscoveryService.deleteDocument(VertexDiscoveryService.kt:152) ~[!/:?]
at com.gt.scheduled.MerchantDatastoreScheduler$runByChunked$1$1$1$1.invokeSuspend(MerchantDatastoreScheduler.kt:96) [!/:?]
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.9.22.jar!/:1.9.22-release-704]
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) [kotlinx-coroutines-core-jvm-1.7.3.jar!/:?]
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) [kotlinx-coroutines-core-jvm-1.7.3.jar!/:?]
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) [kotlinx-coroutines-core-jvm-1.7.3.jar!/:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) [kotlinx-coroutines-core-jvm-1.7.3.jar!/:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) [kotlinx-coroutines-core-jvm-1.7.3.jar!/:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) [kotlinx-coroutines-core-jvm-1.7.3.jar!/:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) [kotlinx-coroutines-core-jvm-1.7.3.jar!/:?]
Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 19.996314524s. Name resolution delay 0.125252442 seconds. [closed=[], open=[[buffered_nanos=19922415471, remote_addr=discoveryengine.googleapis.com/142.250.197.42:443]]]
at io.grpc.Status.asRuntimeException(Status.java:533) ~[grpc-api-1.62.2.jar!/:1.62.2]
... 17 more
Please help me to resolve this error.
Hi @HenryYu,
Welcome to Google Cloud Community!
To help you better with this, could you provide the following: