jenkinsci / jenkinsci/java-client-api

http unrelease when request return unsuccessful

オープン
#334 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

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

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