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 B4A3AD1D6 for ; Mon, 9 Jul 2012 21:24:35 +0000 (UTC) Received: (qmail 63548 invoked by uid 500); 9 Jul 2012 21:24:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 63494 invoked by uid 500); 9 Jul 2012 21:24:35 -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 63476 invoked by uid 99); 9 Jul 2012 21:24:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 21:24:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 440A6142862 for ; Mon, 9 Jul 2012 21:24:35 +0000 (UTC) Date: Mon, 9 Jul 2012 21:24:35 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1871655014.25316.1341869075280.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1998330617.16988.1341616595428.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HBASE-6345) Utilize fault injection in testing using AspectJ 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-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409865#comment-13409865 ] stack commented on HBASE-6345: ------------------------------ So we should close this issue or redo as 'Fault Injection in testing'? (Is that too vague?) > Utilize fault injection in testing using AspectJ > ------------------------------------------------ > > Key: HBASE-6345 > URL: https://issues.apache.org/jira/browse/HBASE-6345 > Project: HBase > Issue Type: Bug > Reporter: Zhihong Ted Yu > > HDFS uses fault injection to test pipeline failure in addition to mock, spy. HBase uses mock, spy. But there are cases where mock, spy aren't convenient. > Some example from DFSClientAspects.aj : > {code} > pointcut pipelineInitNonAppend(DataStreamer datastreamer): > callCreateBlockOutputStream(datastreamer) > && cflow(execution(* nextBlockOutputStream(..))) > && within(DataStreamer); > after(DataStreamer datastreamer) returning : pipelineInitNonAppend(datastreamer) { > LOG.info("FI: after pipelineInitNonAppend: hasError=" > + datastreamer.hasError + " errorIndex=" + datastreamer.errorIndex); > if (datastreamer.hasError) { > DataTransferTest dtTest = DataTransferTestUtil.getDataTransferTest(); > if (dtTest != null) > dtTest.fiPipelineInitErrorNonAppend.run(datastreamer.errorIndex); > } > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira