Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E530F17BBE for ; Wed, 13 May 2015 21:33:07 +0000 (UTC) Received: (qmail 90525 invoked by uid 500); 13 May 2015 21:33:07 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 90494 invoked by uid 500); 13 May 2015 21:33:07 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 90483 invoked by uid 99); 13 May 2015 21:33:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2015 21:33:07 +0000 Date: Wed, 13 May 2015 21:33:07 +0000 (UTC) From: "Ariel Weisberg (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-9377) Untested commit log code found via code coverage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ariel Weisberg created CASSANDRA-9377: ----------------------------------------- Summary: Untested commit log code found via code coverage Key: CASSANDRA-9377 URL: https://issues.apache.org/jira/browse/CASSANDRA-9377 Project: Cassandra Issue Type: Test Reporter: Ariel Weisberg Attachments: jacoco.tgz It took some doing but I was finally able to extract coverage for just the unit tests that test the commit log. Attached is the jacoco output as well as the build.xml I used to get test-compression and test to run just the commit log tests. This includes {noformat} CommitLogTest CommitLogFailurePolicyTest RecoveryManagerTest RecoveryManager2Test RecoveryManager3Test CommitLogStressTest {noformat} All tests were run with and without test-compression. Coverage is pretty good for some things with the missing coverage being exceptional paths for things like files that aren't doing anything exceptional in the tests. ReplayPosition implements equals and hashCode but has no coverage. CommitLogSegment.waitForFinalSync has no coverage. CommitLogDescriptor.fromFileName and fromHeader. CommitLogDescriptor implements several equals methods that are not fully tested and also doesn't implement hashCode to match the equality changes. CommitLog does not cover handleCommitError, nor forceRecyle* CommitLogReplayer is not well off. Not worth enumerating the issues just a lot of error handling that is untested. CommitLogArchiver is in poor shape with no coverage for maybeRestoreArchive(). CommitLogSegmentManager has a few important looking functions with 0 coverage. -- This message was sent by Atlassian JIRA (v6.3.4#6332)