[ 
https://issues.apache.org/jira/browse/HBASE-4330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13100971#comment-13100971
 ] 

Ted Yu commented on HBASE-4330:
-------------------------------

We're getting close.
The three tests passed on Linux.
But on MacBook:
{code}
testCacheMultiThreadedEviction(org.apache.hadoop.hbase.io.hfile.slab.TestSlabCache)
  Time elapsed: 44.652 sec  <<< ERROR!
java.lang.RuntimeException: Deferred
        at 
org.apache.hadoop.hbase.MultithreadedTestUtil$TestContext.checkException(MultithreadedTestUtil.java:76)
        at 
org.apache.hadoop.hbase.MultithreadedTestUtil$TestContext.stop(MultithreadedTestUtil.java:97)
        at 
org.apache.hadoop.hbase.io.hfile.CacheTestUtils.hammerEviction(CacheTestUtils.java:208)
        at 
org.apache.hadoop.hbase.io.hfile.slab.TestSlabCache.testCacheMultiThreadedEviction(TestSlabCache.java:87)
...
Caused by: java.lang.RuntimeException: already cached key_2_3
        at 
org.apache.hadoop.hbase.io.hfile.slab.SingleSizeCache.cacheBlock(SingleSizeCache.java:132)
        at 
org.apache.hadoop.hbase.io.hfile.slab.SlabCache.cacheBlock(SlabCache.java:207)
        at 
org.apache.hadoop.hbase.io.hfile.CacheTestUtils$3.doAnAction(CacheTestUtils.java:194)
        at 
org.apache.hadoop.hbase.MultithreadedTestUtil$RepeatingTestThread.doWork(MultithreadedTestUtil.java:139)
        at 
org.apache.hadoop.hbase.MultithreadedTestUtil$TestThread.run(MultithreadedTestUtil.java:115)
{code}
Here is OS info:
{code}
Darwin tyumac.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 
PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 i386
{code}

> Fix races in slab cache
> -----------------------
>
>                 Key: HBASE-4330
>                 URL: https://issues.apache.org/jira/browse/HBASE-4330
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.92.0
>            Reporter: Todd Lipcon
>            Assignee: Li Pi
>             Fix For: 0.92.0
>
>         Attachments: hbase-4330.txt, hbase-4330.txt, hbase-4330v3.txt, 
> hbase-4330v4.txt, hbase-4330v5.txt
>
>
> A few races are still lingering in the slab cache. Here are some tests and 
> proposed fixes.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to