Niclas Hedhman created ZEST-106:
-----------------------------------

             Summary: Investigate and Document the exact lifecycle of Services
                 Key: ZEST-106
                 URL: https://issues.apache.org/jira/browse/ZEST-106
             Project: Zest
          Issue Type: Bug
            Reporter: Niclas Hedhman


The Bootstrap is required to be single-threaded, no concurrency measures are 
present, and any multi-threaded code executing before the application has been 
activated, is deemed "undefined" and "potentially fatal".

But, services are allowed to be lazy-instantiated, which is even the default, 
which means that their activation must be fully thread-safe, including the new 
activation/passivation system for services. ZEST-39 might indicate that the 
initialize() method hadn't been executed in full, before another thread is 
granted access to the FileEntityStore, causing "slices==0" and a DivideByZero 
exception to be thrown.

I think it is essential that the exact details and locks involved, are fully 
investigated and documented to understand what happens during the 
instantiation/activation/initialization phase of a service, long after the 
application has been activated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to