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

Re: [JGIT PATCH] Fix WindowCacheGetTest.testCache_TooSmallLimit failures

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jul 25, 2009, 23:25 UTC
Message-ID
<200907260125.32306.robin.rosenberg.lists@dewire.com>
In-Reply-To
<20090725200056.GD11191@spearce.org>
lördag 25 juli 2009 22:00:56 skrev "Shawn O. Pearce" <spearce@spearce.org>:
Show 14 quoted lines
> Ever since 2d77d30b5f when I rewrote WindowCache we have been seeing
> random failures inside of the TooSmallLimit test case.
> 
> These test failures have been occurring because the cache contained
> more open bytes than it was configured to permit.
> 
> The cache was permitted to open more bytes than its configured limit
> because the eviction routine was always skipping the last bucket
> under some conditions.  If the cache table was sized the same as its
> evictBatch, which happens for any fairly small table, the eviction
> routine broke too early if it started at a non-zero position in the
> table and wrapped around during its search.  By breaking too early
> the routine did not actually perform an eviction, leaving windows
> open it should have closed.
We should have a test for that then.
-- robin
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 5 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.