Commons Dbcp
  1. Commons Dbcp
  2. DBCP-320

.PerUserPoolDataSource.poolKeys can grow without limit

    Details

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

      Description

      The private static variable .PerUserPoolDataSource.poolKeys (a HashMap) only ever has items added to it; the contents are never cleared.

      Every different datasource generates a new HashMap entry; every username+password generates a new entry in that map.

      This might perhaps become a problem for long-running applications with lots of different users.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development