Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353749 - AbstractOrphanedSessionTest and it's subclasses are running too long
Summary: AbstractOrphanedSessionTest and it's subclasses are running too long
Status: CLOSED WONTFIX
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.4.2   Edit
Hardware: PC All
: P3 minor (vote)
Target Milestone: 7.5.x   Edit
Assignee: Thomas Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 08:17 EDT by Thomas Becker CLA
Modified: 2011-09-23 07:15 EDT (History)
3 users (show)

See Also:


Attachments
proposed patch (3.67 KB, text/plain)
2011-08-03 08:23 EDT, Thomas Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Becker CLA 2011-08-03 08:17:56 EDT
Build Identifier: 

The attached patch will reduce the runtime of these tests significantly. As I reduced some timeouts, etc. it's necessary to thoroughly test the patch on all environments (windows, etc.).

Reproducible: Always
Comment 1 Thomas Becker CLA 2011-08-03 08:23:04 EDT
Created attachment 200806 [details]
proposed patch

As requested no change to VERSION.txt. Feel free to use the commit message for VERSION.txt:

+ 353749: OrphanedSessionTests runtime reduced
Comment 2 Jesse McConnell CLA 2011-08-03 09:12:57 EDT
this fails on jdbc tests on my machine, better to switch to a latching mechanism or something
Comment 3 Greg Wilkins CLA 2011-08-29 01:13:37 EDT
Using latches or exchanges rather than shorter timeouts is a better way to reduce test times without risking failures.
Comment 4 Joakim Erdfelt CLA 2011-09-15 17:23:46 EDT
Current timings for the session tests are...

Running org.eclipse.jetty.server.session.ClientCrossContextSessionTest : 0.39 sec
Running org.eclipse.jetty.server.session.LightLoadTest : 0.002 sec
Running org.eclipse.jetty.server.session.NewSessionTest : 7.636 sec
Running org.eclipse.jetty.server.session.ReentrantRequestSessionTest : 0.195 sec
Running org.eclipse.jetty.server.session.OrphanedSessionTest : 9.215 sec
Running org.eclipse.jetty.server.session.ServerCrossContextSessionTest : 0.14 sec
Running org.eclipse.jetty.server.session.RemoveSessionTest : 0.138 sec
Comment 5 Thomas Becker CLA 2011-09-23 07:15:17 EDT
Won't spend any more time on this to save a couple of seconds only.