Menu

#9 Refresh wait time error on pool checkout

open
nobody
5
2012-09-15
2002-08-02
Anonymous
No

I was working through a situation where I was having problems checking out valid connections
from the connection pool and noticed that my retry wait interval appeared to be shorter than expected.

In JdbcConnectionPoolConnection.java (line 585 of the 1.1.8.pre5 release) I saw the following.

/**

  • Used by the connection pool.
    *
  • @see com.protomatter.pool.ObjectPoolObject
    */
    public void beforeObjectPoolObjectCheckout()
    {
    if (pool.getValidateOnCheckout())
    {
    int numTries = pool.getMaxCheckoutRefreshAttempts();
    long sleep = (long)pool.getMaxCheckoutRefreshAttempts();

Discussion


Log in to post a comment.

MongoDB Logo MongoDB