Exception in thread "Thread-18" java.lang.IllegalArgumentException: count < 0
- Langage dominant
- Java
- Étoiles
- 4.2k
- Forks
- 1.4k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
- [ ] I have searched the [issues](https://github.com/codingapi/tx-lcn/issues) of this repository and believe that this is not a duplicate.
### 1. Bug Description
详细错误信息:
Exception in thread "Thread-18" java.lang.IllegalArgumentException: count < 0
at java.util.concurrent.CountDownLatch.(CountDownLatch.java:199)
at com.codingapi.txlcn.tc.txmsg.TMSearcher.search(TMSearcher.java:80)
at com.codingapi.txlcn.tc.txmsg.AutoTMClusterEngine.prepareToResearchTMCluster(AutoTMClusterEngine.java:83)
at com.codingapi.txlcn.tc.txmsg.AutoTMClusterEngine.onInitialized(AutoTMClusterEngine.java:57)
at com.codingapi.txlcn.tc.txmsg.TCSideRpcInitCallBack.lambda$null$1(TCSideRpcInitCallBack.java:95)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at com.codingapi.txlcn.tc.txmsg.TCSideRpcInitCallBack.lambda$connected$2(TCSideRpcInitCallBack.java:95)
at java.lang.Thread.run(Thread.java:748)
为什么启动集群配置,启动正常成功,但是会出现这样的异常信息?
### 2. Environment:
- JDK version:1.8
- OS:window10或centos7.8
- TX-LCN version:5.0.2
- Others:
### 3. Exception Stacktrace
```
Paste your Exception Stacktrace here!
```
### 4. Tour Idea
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par com.codingapi.txlcn.tc.txmsg.TMSearcher.search, en particulier TMSearcher.java:80, et suivez le count transmis pendant AutoTMClusterEngine.prepareToResearchTMCluster et onInitialized. Reproduisez le démarrage du cluster avec JDK 8 et TX-LCN 5.0.2 sous Windows ou CentOS, puis identifiez pourquoi le count devient négatif et vérifiez que le démarrage se termine sans l’exception.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- distributed-systems
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100