incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff MAURY (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRECTMEMORY-84) Cache should not be a private DirectMemoryServlet field and initialized in init methods
Date Fri, 25 May 2012 12:36:23 GMT
Jeff MAURY created DIRECTMEMORY-84:
--------------------------------------

             Summary: Cache should not be a private DirectMemoryServlet field and initialized
in init methods
                 Key: DIRECTMEMORY-84
                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-84
             Project: Apache DirectMemory
          Issue Type: Bug
          Components: REST Server
    Affects Versions: 0.6.0
            Reporter: Jeff MAURY
             Fix For: 0.6.0


The cache should not be a private DirectMemoryServlet field as there is nothing per the Servlet
spec that prevents the Servlet container to hold several instances of the same servlet class.
This may lead to memory consumption (as the cache may be created several times) and unexpected
behaviour (as one instance may put the object in ITS cache and another one try to retrieve
it and either no finding it or returning another object !!!!).
It should be a Servlet context attribute and managed through the ServletContextListener pattern.
As soon as I have completed the work i'm doing on the Closeable stuff, I'm will submit the
fix

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message