From: Robin Rosenberg Date: Sat, 25 Jul 2009 17:34:36 GMT Subject: Re: [JGIT] Re: blinking test WindowCacheGetTest.testCache_TooSmallLimit Message-ID: <200907251934.37145.robin.rosenberg.lists@dewire.com> In-Reply-To: <20090724225118.GZ11191@spearce.org> lördag 25 juli 2009 00:51:18 skrev "Shawn O. Pearce" : > Constantine Plotnikov wrote: > > The test WindowCacheGetTest.testCache_TooSmallLimit sometimes fails > > (on less than third of runs on Windows) with the following stacktrace: > > > > junit.framework.AssertionFailedError > > at junit.framework.Assert.fail(Assert.java:47) > > at junit.framework.Assert.assertTrue(Assert.java:20) > > at junit.framework.Assert.assertTrue(Assert.java:27) > > at org.spearce.jgit.lib.WindowCacheGetTest.checkLimits(WindowCacheGetTest.java:112) > > at org.spearce.jgit.lib.WindowCacheGetTest.testCache_TooSmallLimit(WindowCacheGetTest.java:106) > > > > This happens on Windows and Linux, but I do not know about > > frequency on Linux. > > I'd say the frequency on Linux is about 1/6 for me. I have yet to > be bothered enough to track it down, but its starting to get there. > Maybe I'll try to look at it tomorrow. Could it be threading-related (cache). I've never seen it on the machine where I build for the update site and it is a single core machine, but I "this" machine that has two cores it happens, not as offen as 1/6, but enough to annoy me a bit, perhaps 1/20. If it is related to bad synchronization it should happen more often the more cores you have. -- robin