jenkinsci / jenkinsci/java-client-api

http unrelease when request return unsuccessful

Aperta
#334 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
913
Fork
466
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.