microsoft / microsoft/azure-tools-for-java
[IntelliJ][ReportedByUser] Uncaught Exception unexpected failure in initializing client. java.util.concurrent.RejectedExecutionException: event executor terminated
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
IntelliJ build version: 2022.2.1 IC-222.3739.54
OS: Windows 10
JDK: JetBrains s.r.o. 17.0.3
Plugin version: 3.75.0-2022.2
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,8,0,1904x1356,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=unexpected failure in initializing client., throwable=java.util.concurrent.RejectedExecutionException: event executor terminated
at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:934)
at com.microsoft.azure.toolkit.lib.cosmos.sql.SqlCosmosDBAccount.getCosmosClient(SqlCosmosDBAccount.java:96)
at com.microsoft.azure.toolkit.lib.cosmos.sql.SqlCosmosDBAccount.updateAdditionalProperties(SqlCosmosDBAccount.java:80)
at com.microsoft.azure.toolkit.lib.cosmos.sql.SqlCosmosDBAccount.updateAdditionalProperties(SqlCosmosDBAccount.java:25)
at com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource.setRemote(AbstractAzResource.java:208)
at com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule.lambda$setResources$13(AbstractAzResourceModule.java:218)
at com.microsoft.azure.toolkit.lib.common.task.AzureTask.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with SqlCosmosDBAccount.getCosmosClient and updateAdditionalProperties, identified in the stack trace, and inspect how the Cosmos client and its event executor are initialized and reused. Reproduce the failure in the reported IntelliJ, plugin, JDK, and Windows versions if possible; done means initialization no longer raises RejectedExecutionException and the relevant behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, java
- Domain
- cloud, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100