Uploaded image for project: 'Phoenix Omid'
  1. Phoenix Omid
  2. OMID-87

Fix BatchPool initialization

    XMLWordPrintableJSON

Details

    Description

      When initializing the ObjectPool for Batch java objects in BatchPoolModule.java, an Apache's GenericObjectPool is used. The pool configuration lacks the call to config.setMaxIdle(int), which provokes that when the Batch objects are returned to the ObjectPool during the pre-creation phase, those above the default max idle number of objects in the pool (which is 8 according to the Apache documentation) are destroyed.

      If at some point the TSO needs to access those Batch objects between 8 and the number specified in the Omid configuration (numConcurrentCTWriters), they will be created on the fly, which it was we want to avoid when pre-creating the ObjectPool during the TSO initialization.

      Attachments

        Issue Links

          Activity

            People

              fperezsorrosal Francisco Perez-Sorrosal
              fperezsorrosal Francisco Perez-Sorrosal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: