Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7C28101D7 for ; Fri, 20 Feb 2015 06:13:12 +0000 (UTC) Received: (qmail 35601 invoked by uid 500); 20 Feb 2015 06:13:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 35556 invoked by uid 500); 20 Feb 2015 06:13:12 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 35544 invoked by uid 99); 20 Feb 2015 06:13:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2015 06:13:12 +0000 Date: Fri, 20 Feb 2015 06:13:12 +0000 (UTC) From: "zhangduo (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13070) Fix TestCacheOnWrite MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328605#comment-14328605 ] zhangduo commented on HBASE-13070: ---------------------------------- Oh I think I found the problem. We turned on hfile prefetching in this test after HBASE-12270(maybe a mistake). See https://builds.apache.org/job/HBase-TRUNK/6110/artifact/hbase-server/target/surefire-reports/org.apache.hadoop.hbase.io.hfile.TestCacheOnWrite-output.txt {noformat} 2015-02-10 06:48:00,128 DEBUG [main] hfile.PrefetchExecutor(102): Prefetch requested for /home/jenkins/jenkins-slave/workspace/HBase-TRUNK/hbase-server/target/test-data/170a3172-9a2e-4269-8085-8433f46141c6/test_cache_on_write/b7d5cfcd4b57411eaac3ebbb83626249, delay=905 ms {noformat} And see https://builds.apache.org/job/HBase-TRUNK/5796/artifact/hbase-server/target/surefire-reports/org.apache.hadoop.hbase.io.hfile.TestCacheOnWrite-output.txt Grep "Prefetch requested for" and get nothing. And we can see that, the prefetch operation has a delay, usually nearly 1 sec in tests, so if the test run fast enough then there is no problem. But if we run the test on a slow machine then BlockCache maybe ruined before we finish checking cached blocks and make the test fail. Thanks [~tedyu] to let me add a log when clearing BlockCache multiple times then I found the actual issue. > Fix TestCacheOnWrite > -------------------- > > Key: HBASE-13070 > URL: https://issues.apache.org/jira/browse/HBASE-13070 > Project: HBase > Issue Type: Bug > Components: test > Affects Versions: 2.0.0 > Reporter: zhangduo > Assignee: zhangduo > Attachments: HBASE-13070.patch > > > TestCacheOnWrite uses TestHFileWriterV2.randomOrderedKey to generate a random byte array, then use first 32 bytes as row and remaining part as family and qualifier. But TestHFileWriterV2.randomOrderedKey may return a byte array only contains 32 bytes, so there will be zero length family and qualifier. -- This message was sent by Atlassian JIRA (v6.3.4#6332)