airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRAVATA-2351) RegistryServerHandler creates singletons that reference the wrong gateway
Date Tue, 28 Mar 2017 15:10:42 GMT
Marcus Christie created AIRAVATA-2351:
-----------------------------------------

             Summary: RegistryServerHandler creates singletons that reference the wrong gateway
                 Key: AIRAVATA-2351
                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2351
             Project: Airavata
          Issue Type: Bug
    Affects Versions: 0.16, 0.17
            Reporter: Marcus Christie
             Fix For: 0.18


The RegistryServerHandler uses the RegistryFactory to instantiate the ExperimentCatalog in
a singleton type pattern.  The ExperimentCatalog is initialized with a gatewayId.

The problem is that, because it is initialized only once as a singleton, the ExperimentCatalog
that is created gets a gatewayId that is good only for the first request (maybe, there is
a also a default gatewayId that it could be created with as well, in which case it is never
valid).  This code pattern works against the multi-tenanted nature of Airavata.

The code should be refactored so that the ExperimentCatalog can be instantiated per request,
with that request's gatewayId.  This may require changing the Registry API to pass in gatewayId
for requests that are missing it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message