uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-5741) protect UIMA Class loader in multi-threaded get resource contexts
Date Tue, 06 Mar 2018 16:22:01 GMT
Marshall Schor created UIMA-5741:
------------------------------------

             Summary: protect UIMA Class loader in multi-threaded get resource contexts
                 Key: UIMA-5741
                 URL: https://issues.apache.org/jira/browse/UIMA-5741
             Project: UIMA
          Issue Type: Improvement
          Components: Core Java Framework
    Affects Versions: 3.0.0SDK, 2.10.2SDK
            Reporter: Marshall Schor
            Assignee: Marshall Schor
             Fix For: 3.0.1SDK, 2.10.3SDK


I have seen one case where multiple threads were being used where a UIMA Class Loader was
being used to load a resource (Type system Descriptor -> type System was resolving an "import
by name"), where the getResource returned (only once) a spurious "null" result.

This is likely due to some multithreading issue in get Resource.  Add a sync using the same
multi-threaded parallel approach used for class loaded, to getResource, to protect against
this case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message