abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Fields (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ABDERA-294) server RouteManager threading: MapCtx parameters cleared and replaced with empty parameters
Date Thu, 19 Jan 2012 19:34:44 GMT

     [ https://issues.apache.org/jira/browse/ABDERA-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Fields updated ABDERA-294:
------------------------------

    Attachment: RouteManager.patch

Patch for abdera\server\src\main\java\org\apache\abdera\protocol\server\impl\RouteManager.java
                
> 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
>
>         Attachments: RouteManager.patch
>
>
> 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

        

Mime
View raw message