Jetty
  1. Jetty
  2. JETTY-1289

MRU cache implementation and fix for cache invalidation in ServletHandler

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.25
    • Fix Version/s: 6.1.26
    • Component/s: Servlet
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      Jetty just has been dropping all cached filters when cache side exceeded, what was affecting on performance in large projects. To fix that ServletHandler._chainCache was reimpelemented using MRU cache.

      In the process of redeploying/restarting of war bundle in OSGi environment any request to servlet can broke internal cache (MruCache._chainCache). This often happens with event polling mechanism of Ajax frameworks like ZK and Vaadin when client side beginning to receive 405 (Method POST is not supported) response instead of 200(OK).

      Patch is attached.

        Activity

        Hide
        Greg Wilkins added a comment -

        this patch looks incomplete. I cannot see anything that calls removeEldestEntry

        Show
        Greg Wilkins added a comment - this patch looks incomplete. I cannot see anything that calls removeEldestEntry
        Hide
        Greg Wilkins added a comment -

        oh - I'm an idiot... I see it is a base class method.

        Trying now.

        Show
        Greg Wilkins added a comment - oh - I'm an idiot... I see it is a base class method. Trying now.
        Hide
        Greg Wilkins added a comment -

        Applied to jetty-6
        I different solution has been applied to jetty-7

        Show
        Greg Wilkins added a comment - Applied to jetty-6 I different solution has been applied to jetty-7

          People

          • Assignee:
            Unassigned
            Reporter:
            Volodymyr Buell
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: