Uploaded image for project: 'Agroal'
  1. Agroal
  2. AG-244

FlushOnClose if requested should be done at all pool sizes and restricts Pool to minSize

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.5
    • None
    • None
    • None
    • False
    • None
    • False

      Hello,
      According to javadoc:

      Allows connections to be flushed upon return to the pool. It's not enabled by default.

      According to code and experience:

      If flushOnClose is configured for a Pool  the Pool does not grow bigger than minSize?

      It  also means, that flushing only occurs if one more than minSize connections are used. 
      The Code can be found in ConnectionPool.java:

        int currentSize = allConnections.size();
        if ( currentSize > configuration.maxSize() 
             || configuration.flushOnClose() 
                && currentSize > configuration.minSize() ) {
            ....
      

              lbarreiro-1 Luis Barreiro
              aschoerk Andreas Schörk (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: