Skip to content

[BUG] reactor.core.Exceptions$ReactiveException: java.lang.InterruptedException occurs at computeManager.virtualMachines().getByResourceGroup(resGroup, name) #33829

Open
@zlishaojiez

Description

Describe the bug
computeManager.virtualMachines().getByResourceGroup(resGroup, name) got reactor.core.Exceptions$ReactiveException: java.lang.InterruptedException

Exception or Stack Trace
reactor.core.Exceptions$ReactiveException: java.lang.InterruptedException
at reactor.core.Exceptions.propagate(Exceptions.java:396)
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:91)
at reactor.core.publisher.Mono.block(Mono.java:1742)
at com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation.GroupableResourcesImpl.getByResourceGroup(GroupableResourcesImpl.java:106)
at com.vmware.horizon.sg.clouddriver.impl.azure.v2.VirtualMachineAzureV2.getCloudAzureVM(VirtualMachineAzureV2.java:537)
at com.vmware.horizon.sg.clouddriver.impl.azure.v2.VirtualMachineAzureV2.lambda$beginCreateSnapshotAsync$14(VirtualMachineAzureV2.java:255)
at com.vmware.horizon.sg.clouddriver.impl.azure.internal.RxDelayedRetry$RxSingleHelper.call(RxDelayedRetry.java:175)
at com.vmware.horizon.sg.clouddriver.impl.azure.internal.RxDelayedRetry.retryWithDelaySingleRxV3(RxDelayedRetry.java:53)
at com.vmware.horizon.sg.clouddriver.impl.azure.v2.VirtualMachineAzureV2.getWithRetry(VirtualMachineAzureV2.java:427)
at com.vmware.horizon.sg.clouddriver.impl.azure.v2.VirtualMachineAzureV2.beginCreateSnapshotAsync(VirtualMachineAzureV2.java:255)
at com.vmware.horizon.sg.clouddriver.impl.azure.internal.RxDelayedRetry$RxSingleHelper.call(RxDelayedRetry.java:175)
at com.vmware.horizon.sg.clouddriver.impl.azure.internal.RxDelayedRetry.retryWithDelaySingleRxV3(RxDelayedRetry.java:53)
at com.vmware.horizon.sg.clouddriver.impl.azure.v2.VirtualMachineAzureV2.getWithRetry(VirtualMachineAzureV2.java:427)
at com.vmware.horizon.sg.clouddriver.impl.azure.v2.VirtualMachineAzureV2.beginCreateOsDiskSnapshot(VirtualMachineAzureV2.java:192)
at com.vmware.horizon.sg.clouddriver.task.impl.TaskSubmitterTakeSnapshot.submitOne(TaskSubmitterTakeSnapshot.java:14)
at com.vmware.horizon.sg.clouddriver.task.impl.TaskSubmitterTakeSnapshot.submitOne(TaskSubmitterTakeSnapshot.java:8)
at com.vmware.horizon.sg.clouddriver.task.base.BaseSubmitterTask.processOne(BaseSubmitterTask.java:150)
at com.vmware.horizon.sg.clouddriver.task.base.composite.QueueExecutor$Worker.run(QueueExecutor.java:185)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException: null
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(Unknown Source)
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(Unknown Source)
at java.base/java.util.concurrent.CountDownLatch.await(Unknown Source)
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:87)
... 17 common frames omitted

To Reproduce
I could reproduce it, it just happens some times on stress test.

Code Snippet

Expected behavior
The VirtualMachine object returned by the API

Screenshots
API issue, no screenshots

Setup (please complete the following information):

  • OS: [e.g. iOS]
  • IDE: IntelliJ
  • Library/Libraries: 2.23.0
  • Java version: [e.g. 8]
  • App Server/Environment: [e.g. Tomcat, WildFly, Azure Function, Apache Spark, Databricks, IDE plugin or anything special]
  • Frameworks: [e.g. Spring Boot, Micronaut, Quarkus, etc]

If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:

  • verbose dependency tree (mvn dependency:tree -Dverbose)
  • exception message, full stack trace, and any available logs

Additional context
We use the AzureClient with okhttpClient and the API was called in thread.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Compute - VMMgmtThis issue is related to a management-plane library.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions