jenkinsci / jenkinsci/java-client-api
http unrelease when request return unsuccessful
- 主要言語
- Java
- スター
- 913
- フォーク
- 466
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
when i try to create a project using function createJob() , if there already have a job has the same name with the new job,the http response code would be 400 bad request,then the httpResponseValidator.validateResponse() would thrown exception .
at this time ,the http connection will not be release because the try-catch statement don't include the validateResponse function.
after 2times failed (the initial pool size ),the connection pool don't have any new connection to use, the leaseConnection() in the PoolingHttpClientConnectionManager would hang
コントリビューションガイド
調査の方向性
Start at createJob() and trace the path through httpResponseValidator.validateResponse(), focusing on where the try-catch handles unsuccessful responses and where the HTTP connection is released. Reproduce the duplicate-name failure and confirm that repeated failed requests no longer exhaust the connection pool or cause leaseConnection() to hang.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100