tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43683] Accessing Servlet while Reloading context gives 404 error
Date Thu, 26 Jun 2008 22:49:00 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43683





--- Comment #21 from Mark Thomas <markt@apache.org>  2008-06-26 15:48:59 PST ---
The good news is I can now repeat test case 3 and have found the root cause.

There is a synchronisation issue with StandardWrapper. In short, one thread can
enter allocate() and before countAllocated is incremented, another thread can
enter unload().

The bad news is that I suspect the fix might not be pleasant. allocate() is on
the critical path so just synchronising allocate() would likely be bad from a
performance point of view. I haven't really thought about this much yet, so I
am hoping there is a better fix to be found. I'll have a think about a solution
for this over the next few days. Hopefully I'll have something next week. In
the meantime, any suggestions are welcome.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message