apache / apache/apisix-java-plugin-runner

bug:在PluginFilter类中通过requiredRespBody()方法设置为true后,在插件中调用PostRequest.getUpstreamStatusCode()方法会偶现(概率很高)获取到不正确的响应码

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

説明

### Issue description
在PluginFilter类中通过requiredRespBody()方法设置为true后,在插件中调用PostRequest.getUpstreamStatusCode()方法会偶现(概率很高)获取到不正确的响应码
### Environment

- apisix-java-plugin-runner 0.4.0
- apisix 3.2.0
- apisix-dashboard 3.0.0

### Minimal test code / Steps to reproduce the issue

1.通过apisix-dashboard创建路由使用ext-plugin-post-resp插件
![image](https://user-images.githubusercontent.com/37164104/231642198-9f688e24-ba24-43b1-a8a6-e5f1f8e3d981.png)
2.写一个简单的java测试插件,并且设置requiredRespBody()和requiredBody()都为true
![image](https://user-images.githubusercontent.com/37164104/231661619-a9ef5439-ee8a-4cb2-ad44-e1abfddd937f.png)
3.查看日志发现一会是正常的406,一会是57
![image](https://user-images.githubusercontent.com/37164104/231661776-b56f0d43-be69-460a-a9fd-4de8577bed95.png)

### What's the actual result? (including assertion message & call stack if applicable)

### What's the expected result?

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

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

評価

この issue はまだ評価されていません。

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

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