git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [JGIT] Re: blinking test WindowCacheGetTest.testCache_TooSmallLimit

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jul 25, 2009, 17:34 UTC
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" <spearce@spearce.org>:
Show 17 quoted lines
> Constantine Plotnikov <constantine.plotnikov@gmail.com> 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
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 2 of 6 in “[JGIT] Re: blinking test WindowCacheGetTest.testCache_TooSmallLimit”
  1. Shawn O. PearceJul 24, 2009
  2. Robin RosenbergJul 25, 2009
  3. Shawn O. PearceJul 25, 2009
  4. Fix WindowCacheGetTest.testCache_TooSmallLimit failuresShawn O. Pearce, Jul 25, 2009
  5. Robin RosenbergJul 25, 2009
  6. Shawn O. PearceJul 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.