[infinispan-issues] [JBoss JIRA] (ISPN-1794) change default minIdle attribute for hot rod client

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Thu Jul 5 21:21:12 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-1794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño updated ISPN-1794:
-----------------------------------

       Fix Version/s:     (was: 5.1.x)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/1201  (was: https://github.com/infinispan/infinispan/pull/1201)

    
> change default minIdle attribute for hot rod client
> ---------------------------------------------------
>
>                 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.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