Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D1382200D4F for ; Wed, 22 Nov 2017 01:12:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CE09B160C0F; Wed, 22 Nov 2017 00:12:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 20775160BFC for ; Wed, 22 Nov 2017 01:12:03 +0100 (CET) Received: (qmail 21600 invoked by uid 500); 22 Nov 2017 00:12:03 -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 21586 invoked by uid 99); 22 Nov 2017 00:12:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Nov 2017 00:12:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 59C5AC09EF for ; Wed, 22 Nov 2017 00:12:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.011 X-Spam-Level: X-Spam-Status: No, score=-99.011 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KB_WAM_FROM_NAME_SINGLEWORD=0.2, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id QScX_8A86Sdy for ; Wed, 22 Nov 2017 00:12:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DA2375F569 for ; Wed, 22 Nov 2017 00:12:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 76780E04AB for ; Wed, 22 Nov 2017 00:12:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2A54F255A3 for ; Wed, 22 Nov 2017 00:12:00 +0000 (UTC) Date: Wed, 22 Nov 2017 00:12:00 +0000 (UTC) From: "Jay Zhuang (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-14066) unittest failed: CommitLogSegmentManagerCDCTest.testReplayLogic MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Nov 2017 00:12:05 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-14066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16261725#comment-16261725 ] Jay Zhuang commented on CASSANDRA-14066: ---------------------------------------- It's a real issue with [{{CommitLogReplayer.replayFiles()}}|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java#L145]. When for CDC data, it's handling the wrong file (the right one + 1, and in the wrong list: [{{CommitLogReplayer.java:151}}|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java#L151]). Sometimes, it's causing the following exception: {noformat} java.lang.ArrayIndexOutOfBoundsException: 4 at org.apache.cassandra.db.commitlog.CommitLogReplayer.replayFiles(CommittLogReplayer.java:155) at org.apache.cassandra.db.commitlog.CDCCTestReplayer.examineCommitLog(CDCTestReplayer.java:48) at org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDDCTest.testReplayLogic(CommitLogSegmentManagerCDCTest.java:318) {noformat} Here is the fix, please review: | Branch | uTest | | [14066-trunk|https://github.com/cooldoger/cassandra/tree/14066-trunk] | [!https://circleci.com/gh/cooldoger/cassandra/tree/14066-trunk.svg?style=svg!|https://circleci.com/gh/cooldoger/cassandra/tree/14066-trunk] | > unittest failed: CommitLogSegmentManagerCDCTest.testReplayLogic > --------------------------------------------------------------- > > Key: CASSANDRA-14066 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14066 > Project: Cassandra > Issue Type: Bug > Components: Testing > Reporter: Jay Zhuang > Assignee: Jay Zhuang > > To reproduce: > {noformat} > $ ant test-cdc -Dtest.name=CommitLogSegmentManagerCDCTest > {noformat} > Error: > {noformat} > [junit] Testcase: testReplayLogic(org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest)-cdc: FAILED > [junit] Missing old CDCIndexData in new set after replay: CommitLog-7-1511301220821_cdc.idx,3497190 > [junit] List of CDCIndexData in new set of indexes after replay: > [junit] CommitLog-7-1511301220822_cdc.idx,3509214 > [junit] CommitLog-7-1511301220823_cdc.idx,100 > [junit] > [junit] junit.framework.AssertionFailedError: Missing old CDCIndexData in new set after replay: CommitLog-7-1511301220821_cdc.idx,3497190 > [junit] List of CDCIndexData in new set of indexes after replay: > [junit] CommitLog-7-1511301220822_cdc.idx,3509214 > [junit] CommitLog-7-1511301220823_cdc.idx,100 > [junit] > [junit] at org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest.testReplayLogic(CommitLogSegmentManagerCDCTest.java:345) > [junit] > [junit] > [junit] Test org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest FAILED > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org