Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369112

Summary: DoSFilterTest intermittently fails on MacOs
Product: [RT] Jetty Reporter: Thomas Becker <tbecker>
Component: serverAssignee: Thomas Becker <tbecker>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: jesse.mcconnell, jetty-inbox, joakim.erdfelt
Version: unspecified   
Target Milestone: 7.5.x   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
proposed patch none

Description Thomas Becker CLA 2012-01-19 12:05:39 EST
Build Identifier: 

DoSFilterTest.testEvenLowRateIp() and DoSFilterTest.testMultipleSessionTracking() seem to fail intermittently on MacOs and thus break the build.

Reproducible: Always
Comment 1 Jesse McConnell CLA 2012-01-19 12:12:48 EST
also in CloseableDoSFilterTest
Comment 2 Thomas Becker CLA 2012-01-30 06:40:08 EST
Created attachment 210259 [details]
proposed patch

.testEvenLowRateIP() was failing intermittently as well. But right now I can't seem to be able to reproduce it anymore. Even running the same test 100 times didn't cause a failure. So I fixed .testMultipleSessionTracking().

Problem was a timing issue. With a sleep of 550ms after the first request burst it sometimes happened that the 6th request with sessionId1 didn't make it into DoSFilter.RateTracker within 1000ms.
Comment 3 Jesse McConnell CLA 2012-02-22 09:03:31 EST
i had actually applied your numbers change back when we had discussed this on irc so I think this is gtg