[infinispan-issues] [JBoss JIRA] (ISPN-1794) Make connection refused exceptions TRACE

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Fri Jul 27 10:44:08 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-1794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708400#comment-12708400 ] 

RH Bugzilla Integration commented on ISPN-1794:
-----------------------------------------------

Michal Linhard <mlinhard at redhat.com> made a comment on [bug 841888|https://bugzilla.redhat.com/show_bug.cgi?id=841888]

Verified for JDG 6.0.1.ER1
                
> Make connection refused exceptions TRACE
> ----------------------------------------
>
>                 Key: ISPN-1794
>                 URL: https://issues.jboss.org/browse/ISPN-1794
>             Project: Infinispan
>          Issue Type: Feature Request
>    Affects Versions: 5.1.0.FINAL
>            Reporter: Michal Linhard
>            Assignee: Mircea Markus
>            Priority: Minor
>              Labels: jdg6
>             Fix For: 5.1.6.FINAL (JDG), 5.2.0.ALPHA2, 5.2.0.FINAL
>
>
> This is just a proposal, feel free to reject.
> Default behaviour in PropsKeyedObjectPoolFactory is
> minIdle = 1
> timeBetweenEvictionRunsMillis = 2min
> i.e. after 2minutes of idle RemoteCacheManager will try to ensure at least one connection and will try to create one.
> This might be a surprise for user to get this WARNING without doing anything:
> {code}
> 2012-01-26 15:05:00,816 138699 WARN  [org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport] (Timer-1:) ISPN004008: Could not connect to server: test1/192.168.11.101:11222
> java.net.ConnectException: Connection refused
> 	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> 	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> 	at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:100)
> 	at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.<init>(TcpTransport.java:80)
> 	at org.infinispan.client.hotrod.impl.transport.tcp.TransportObjectFactory.makeObject(TransportObjectFactory.java:57)
> 	at org.apache.commons.pool.impl.GenericKeyedObjectPool.addObject(GenericKeyedObjectPool.java:1668)
> 	at org.apache.commons.pool.impl.GenericKeyedObjectPool.ensureMinIdle(GenericKeyedObjectPool.java:2038)
> 	at org.apache.commons.pool.impl.GenericKeyedObjectPool.ensureMinIdle(GenericKeyedObjectPool.java:2003)
> 	at org.apache.commons.pool.impl.GenericKeyedObjectPool.access$1600(GenericKeyedObjectPool.java:203)
> 	at org.apache.commons.pool.impl.GenericKeyedObjectPool$Evictor.run(GenericKeyedObjectPool.java:2282)
> 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 	at java.util.TimerThread.run(Timer.java:462)
> {code}
> of course it's easy to change this via "minIdle" property, I just think this is a strange default and IMHO it should be 0 instead of 1.
> WDYT?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list