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 016FB200C3B for ; Sat, 11 Feb 2017 00:16:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0007A160B5C; Fri, 10 Feb 2017 23:16:48 +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 493B9160B69 for ; Sat, 11 Feb 2017 00:16:47 +0100 (CET) Received: (qmail 82879 invoked by uid 500); 10 Feb 2017 23:16:46 -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 82614 invoked by uid 99); 10 Feb 2017 23:16:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2017 23:16:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D8C8FC05D7 for ; Fri, 10 Feb 2017 23:16:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Hi48yhp7_Adl for ; Fri, 10 Feb 2017 23:16:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7FF575F479 for ; Fri, 10 Feb 2017 23:16:44 +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 53729E05E9 for ; Fri, 10 Feb 2017 23:16:43 +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 CEFD921D6D for ; Fri, 10 Feb 2017 23:16:41 +0000 (UTC) Date: Fri, 10 Feb 2017 23:16:41 +0000 (UTC) From: "Jeff Jirsa (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11479) BatchlogManager unit tests failing on truncate race condition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Feb 2017 23:16:48 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861990#comment-15861990 ] Jeff Jirsa commented on CASSANDRA-11479: ---------------------------------------- [~yukim] / [~jkni] - is this still on your (collective) plates? > BatchlogManager unit tests failing on truncate race condition > ------------------------------------------------------------- > > Key: CASSANDRA-11479 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11479 > Project: Cassandra > Issue Type: Bug > Components: Compaction > Reporter: Joel Knighton > Assignee: Yuki Morishita > Fix For: 2.2.x, 3.0.x, 3.11.x > > Attachments: TEST-org.apache.cassandra.batchlog.BatchlogManagerTest.log > > > Example on CI [here|http://cassci.datastax.com/job/trunk_testall/818/testReport/junit/org.apache.cassandra.batchlog/BatchlogManagerTest/testLegacyReplay_compression/]. This seems to have only started happening relatively recently (within the last month or two). > As far as I can tell, this is only showing up on BatchlogManagerTests purely because it is an aggressive user of truncate. The assertion is hit in the setUp method, so it can happen before any of the test methods. The assertion occurs because a compaction is happening when truncate wants to discard SSTables; trace level logs suggest that this compaction is submitted after the pause on the CompactionStrategyManager. > This should be reproducible by running BatchlogManagerTest in a loop - it takes up to half an hour in my experience. A trace-level log from such a run is attached - grep for my added log message "SSTABLES COMPACTING WHEN DISCARDING" to find when the assert is hit. -- This message was sent by Atlassian JIRA (v6.3.15#6346)