Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3655

CasPool incorrectly stores references to the InitialView of each CAS

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0SDK
    • Component/s: Core Java Framework
    • Labels:
      None

      Description

      For cas pools, getCas returns a handle to the InitialView of an empty CAS,
      and stores this handle to match in releaseCas. This breaks for services that employ sofamapping. The empty CAS is filled from a serialized CAS sent to the service. It is possible that a CAS received may not contain the view, CAS.NAME_DEFAULT_SOFA, specified by sofamapping.

      Then, when the service tries to return the CAS to the pool, releaseCas blows up at the first line,
      CAS cas = aCas.getView(CAS.NAME_DEFAULT_SOFA);
      so the CAS is not returned to the pool ==> CAS leak.

      The cas pool should be storing references to the base CAS, which is independent of views.

        Attachments

          Activity

            People

            • Assignee:
              schor Marshall Schor
              Reporter:
              eddie_epstein Eddie Epstein
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: