codingapi / codingapi/tx-lcn

com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClient.remoteKeys 空指针异常

オープン
#495 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
4.2k
フォーク
1.4k
PR マージ指標
30日以内にマージされた PR はありません

説明

- [ ] 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
java.lang.NullPointerException: null
at com.codingapi.txlcn.txmsg.netty.bean.SocketManager.removeKeys(SocketManager.java:178) ~[txlcn-txmsg-netty-5.0.2.RELEASE.jar!/:5.0.2.RELEASE]
at com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClient.remoteKeys(NettyRpcClient.java:96) ~[txlcn-txmsg-netty-5.0.2.RELEASE.jar!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.core.SimpleTransactionManager.notifyTransaction(SimpleTransactionManager.java:130) ~[classes!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.core.SimpleTransactionManager.commit(SimpleTransactionManager.java:90) ~[classes!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.txmsg.transaction.NotifyGroupExecuteService.execute(NotifyGroupExecuteService.java:71) ~[classes!/:5.0.2.RELEASE]
at com.codingapi.txlcn.tm.txmsg.ServerRpcAnswer.lambda$callback$0(ServerRpcAnswer.java:71) ~[classes!/:5.0.2.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_161]

### 2. Environment:
- JDK version: 1.8
- OS: linux
- TX-LCN version: 5.0.2.RELEASE
- Others:

### 3. Exception Stacktrace

```
Paste your Exception Stacktrace here!
```

### 4. Tour Idea

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with txmsg-netty's SocketManager.removeKeys at line 178 and NettyRpcClient.remoteKeys at line 96, following the reported stack trace into SimpleTransactionManager.notifyTransaction. Reproduce the commit notification path under JDK 8 and identify why the key removal receives null. Done means the path no longer raises the reported NullPointerException and a regression test covers it.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
backend, distributed-systems
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。