Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-503

org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory.closeAll() does not close all

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Labels:
      None

      Description

      org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory.closeAll() does not close all if an exception is thrown while closing one of the resources.

          /**
           * Closes all pools associated with this class.
           *
           * @throws Exception
           *             a {@link ListException} containing all exceptions thrown by {@link InstanceKeyDataSource#close()}
           * @see InstanceKeyDataSource#close()
           * @see ListException
           * @since 2.4.0 throws a {@link ListException} instead of, in 2.3.0 and before, the first exception thrown by
           *        {@link InstanceKeyDataSource#close()}.
           */
      

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              ggregory Gary D. Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: