jenkinsci / jenkinsci/java-client-api

http unrelease when request return unsuccessful

Abierto
#334 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
913
Forks
466
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
api
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.