[JIRA] (JENKINS-59270) Statistics Gatherer Plugin - com.mashape.unirest.http.exceptions.UnirestException

1 view
Skip to first unread message

leibkel@yahoo.com (JIRA)

unread,
Sep 7, 2019, 4:33:02 PM9/7/19
to jenkinsc...@googlegroups.com
Lee Leibke created an issue
 
Jenkins / Bug JENKINS-59270
Statistics Gatherer Plugin - com.mashape.unirest.http.exceptions.UnirestException
Issue Type: Bug Bug
Assignee: lucamilanesio
Components: statistics-gatherer-plugin
Created: 2019-09-07 20:32
Environment: Jenkins version: 2.164.3
Statistics Gatherer version: 2.0.3
CentOS 7.x
Priority: Major Major
Reporter: Lee Leibke

When the plugin is sending 'queue' requests to Logstash, we are seeing the following messages in the Jenkins log:

The request for url http://logstashserver:5000/jenkins_queue/ has failed.
org.apache.http.ConnectionClosedException: Connection closed
Caused: com.mashape.unirest.http.exceptions.UnirestException
	at com.mashape.unirest.http.HttpClientHelper$1.failed(HttpClientHelper.java:86)
	at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134)
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.failed(DefaultClientExchangeHandlerImpl.java:258)
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.connectionAllocated(DefaultClientExchangeHandlerImpl.java:305)
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.access$000(DefaultClientExchangeHandlerImpl.java:63)
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl$1.completed(DefaultClientExchangeHandlerImpl.java:360)
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl$1.completed(DefaultClientExchangeHandlerImpl.java:357)
	at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119)
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.completed(PoolingNHttpClientConnectionManager.java:465)
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.completed(PoolingNHttpClientConnectionManager.java:449)
	at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119)
	at org.apache.http.nio.pool.AbstractNIOConnPool.fireCallbacks(AbstractNIOConnPool.java:443)
	at org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:276)
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.requestConnection(PoolingNHttpClientConnectionManager.java:261)
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.requestConnection(DefaultClientExchangeHandlerImpl.java:351)
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.start(DefaultClientExchangeHandlerImpl.java:126)
	at org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:129)
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:72)
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:102)
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:87)
	at com.mashape.unirest.http.HttpClientHelper.requestAsync(HttpClientHelper.java:102)
	at com.mashape.unirest.request.BaseRequest.asJsonAsync(BaseRequest.java:76)
	at org.jenkins.plugins.statistics.gatherer.util.RestClientUtil.postToService(RestClientUtil.java:32)
	at org.jenkins.plugins.statistics.gatherer.listeners.QueueStatsListener.onLeft(QueueStatsListener.java:222)
	at hudson.model.Queue$LeftItem.enter(Queue.java:2777)
	at hudson.model.Queue.onStartExecuting(Queue.java:1163)
	at hudson.model.Executor$1.call(Executor.java:361)
	at hudson.model.Executor$1.call(Executor.java:347)
	at hudson.model.Queue._withLock(Queue.java:1440)
	at hudson.model.Queue.withLock(Queue.java:1301)
	at hudson.model.Executor.run(Executor.java:347)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages