Wicket
  1. Wicket
  2. WICKET-1161

DiskPageStore should write the sessions index file to disk on destroy (from WicketFilter.destroy())

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-rc1
    • Fix Version/s: 1.3.5
    • Component/s: wicket
    • Labels:
      None

      Description

      We have to save the sessions index to disk from the DiskPageStore when we get a shutdown/destroy from the servlet container
      (I hope that that that event will be called on a servlet container shutdown and on a undeploy/redeploy of the webapp.)

      Then with a destroy we save it. When we are fired up again we read that file and also delete the file immediantly.

      Then when the page store is created and the file isn't there it can delete all the page stores files that are currently on disk
      because the destroy didn't happen so it was a crash or a hard kill and there won't be any sessions anyway.

        Activity

        Johan Compagner created issue -
        Frank Bille Jensen made changes -
        Field Original Value New Value
        Fix Version/s 1.3.0-rc2 [ 12312513 ]
        Fix Version/s 1.3.0-rc3 [ 12312886 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.3.0-rc3 [ 12312886 ]
        Fix Version/s 1.3.1 [ 12312500 ]
        Hide
        Matej Knopp added a comment -

        This is basically done, but it would be nice to cleanup file entries for which there is no record in index (e.g. files that were left there when server instance was killed, etc.)

        Show
        Matej Knopp added a comment - This is basically done, but it would be nice to cleanup file entries for which there is no record in index (e.g. files that were left there when server instance was killed, etc.)
        Frank Bille Jensen made changes -
        Fix Version/s 1.3.1 [ 12312500 ]
        Fix Version/s 1.3.2 [ 12312942 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.3.3 [ 12313047 ]
        Fix Version/s 1.3.2 [ 12312942 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.3.4 [ 12313089 ]
        Fix Version/s 1.3.3 [ 12313047 ]
        Martijn Dashorst made changes -
        Fix Version/s 1.3.4 [ 12313089 ]
        Fix Version/s 1.3.5 [ 12313175 ]
        Igor Vaynberg made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        317d 11h 1 Igor Vaynberg 27/Sep/08 08:45

          People

          • Assignee:
            Matej Knopp
            Reporter:
            Johan Compagner
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development