Petals BC SFTP

Unable to use an 'unlimited' size for the connection pool

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.0
  • Fix Version/s: 1.8.1
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    Using the value '-1' for SU parameter 'max-connection', we are limited to 8 connections in the pool. For the 9th, we get the following error:

    ...
    sample-0 2020/11/19 08:40:49,663 GMT+0000 CONFIG [Petals.Container.Components.petals-bc-sftp] : Number of maximum connection for the pool: -1
    ...
    java.util.NoSuchElementException: Pool exhausted
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:456)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:365)
    at org.ow2.petals.bc.sftp.listeners.JBIListener.onJBIMessage(JBIListener.java:132)
    ...
    Show
    Using the value '-1' for SU parameter 'max-connection', we are limited to 8 connections in the pool. For the 9th, we get the following error:
    ...
    sample-0 2020/11/19 08:40:49,663 GMT+0000 CONFIG [Petals.Container.Components.petals-bc-sftp] : Number of maximum connection for the pool: -1
    ...
    java.util.NoSuchElementException: Pool exhausted
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:456)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:365)
    at org.ow2.petals.bc.sftp.listeners.JBIListener.onJBIMessage(JBIListener.java:132)
    ...
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 13:49:12 +0100

In case of value '-1', a default max size (8) is used by the connection pool.
Please, set explicitly the size to unlimited.

Show
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 13:49:12 +0100 In case of value '-1', a default max size (8) is used by the connection pool. Please, set explicitly the size to unlimited.
Hide
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 15:43:25 +0100

Fix in trunk, with a unit test added

Show
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 15:43:25 +0100 Fix in trunk, with a unit test added
Hide
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 15:50:34 +0100

Backported in branch 'petals-bc-sftp-1.8.x'

Show
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 15:50:34 +0100 Backported in branch 'petals-bc-sftp-1.8.x'
Hide
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 16:12:07 +0100

User documentations updated

Show
Christophe DENEUX added a comment - Thu, 19 Nov 2020 - 16:12:07 +0100 User documentations updated

People

Dates

  • Created:
    Thu, 19 Nov 2020 - 13:48:03 +0100
    Updated:
    Fri, 11 Dec 2020 - 18:11:19 +0100
    Resolved:
    Thu, 19 Nov 2020 - 15:50:41 +0100