server RouteManager threading: MapCtx parameters cleared and replaced with 
empty parameters
-------------------------------------------------------------------------------------------

                 Key: ABDERA-294
                 URL: https://issues.apache.org/jira/browse/ABDERA-294
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 1.1.2
         Environment: Abdera 1.1.2
            Reporter: Bob Fields
             Fix For: 1.2


The hrefParams map is cleared and then subsequent requests not properly routed. 
 Our problem doesn't occur on load, but rather occurs sometime after when two 
requests hit cleanMapCtx in the right timing to have one clear out the map as 
the other is grabbing the entry set, resulting in the second thread doing a 
clear but having nothing to put back in.  Then all subsequent requests don't 
get routed properly.
 
This is similar to https://issues.apache.org/jira/browse/ABDERA-95 and 
https://issues.apache.org/jira/browse/ABDERA-276 but does not occur under load, 
just with two threads.

In the comments for that issue, there's  a mention of a fix by using the code 
from an earlier version.  I haven't tested the code mentioned from 0.4.0, but 
from looking at it the hrefParams isn't being modified, so that would seem to 
solve our problem as well.  I'm attaching the diff for the fix that we used, 
which was to return the new map instance with the cleaned keys instead of 
altering and returning the hrefParams.


--
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

        

Reply via email to