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 4788E1786B for ; Mon, 2 Nov 2015 08:54:28 +0000 (UTC) Received: (qmail 37193 invoked by uid 500); 2 Nov 2015 08:54:28 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 37157 invoked by uid 500); 2 Nov 2015 08:54:28 -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 37130 invoked by uid 99); 2 Nov 2015 08:54:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2015 08:54:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E314A2C1F6A for ; Mon, 2 Nov 2015 08:54:27 +0000 (UTC) Date: Mon, 2 Nov 2015 08:54:27 +0000 (UTC) From: "Marcus Eriksson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10288) Incremental repair can hang if replica aren't all up (was: Inconsistent behaviours on repair when a node in RF is missing) 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/CASSANDRA-10288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14984894#comment-14984894 ] Marcus Eriksson commented on CASSANDRA-10288: --------------------------------------------- +1 > Incremental repair can hang if replica aren't all up (was: Inconsistent behaviours on repair when a node in RF is missing) > -------------------------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-10288 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10288 > Project: Cassandra > Issue Type: Bug > Reporter: Alan Boudreault > Assignee: Yuki Morishita > Fix For: 2.1.x, 2.2.x > > Attachments: repait_test.sh > > > So with a cluster of 3 nodes and a RF=3 for my keyspace, I tried to repair my data with a single node down. I got 3 different behaviours with different C* versions. With: > cassandra-2.1: it fails saying a node is down. (acceptable) > cassandra-2.2: it hangs forever (???) > cassandra-3.0: it completes successfully > What is the correct behaviour of this repair use case? Obviously, cassandra-2.2 has to be fixed, too. > Here are the result logs when testing: > cassandra-2.1 > {code} > ccmlib.node.NodetoolError: Nodetool command '/home/aboudreault/git/cstar/cassandra/bin/nodetool -h localhost -p 7100 repair test test' failed; exit status: 2; stdout: [2015-09-08 16:32:24,488] Starting repair command #3, repairing 3 ranges for keyspace test (parallelism=SEQUENTIAL, full=true) > [2015-09-08 16:32:24,492] Repair session b69b5990-5668-11e5-b4ae-b3ffbc47f04c for range (3074457345618258602,-9223372036854775808] failed with error java.io.IOException: Cannot proceed on repair because a neighbor (/127.0.0.2) is dead: session failed > [2015-09-08 16:32:24,493] Repair session b69b80a0-5668-11e5-b4ae-b3ffbc47f04c for range (-9223372036854775808,-3074457345618258603] failed with error java.io.IOException: Cannot proceed on repair because a neighbor (/127.0.0.2) is dead: session failed > [2015-09-08 16:32:24,494] Repair session b69ba7b0-5668-11e5-b4ae-b3ffbc47f04c for range (-3074457345618258603,3074457345618258602] failed with error java.io.IOException: Cannot proceed on repair because a neighbor (/127.0.0.2) is dead: session failed > [2015-09-08 16:32:24,494] Repair command #3 finished > ; stderr: error: nodetool failed, check server logs > -- StackTrace -- > java.lang.RuntimeException: nodetool failed, check server logs > at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:291) > at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:203) > {code} > cassandra-2.2: > {code} > just hangs .... waited more than 10 minutes. > {code} > cassandra-3.0: > {code} > $ ccm node1 nodetool repair test test > [2015-09-08 16:39:40,139] Starting repair command #1, repairing keyspace test with repair options (parallelism: parallel, primary range: false, incremental: true, job threads: 1, ColumnFamilies: [test], dataCenters: [], hosts: [], # of ranges: 2) > [2015-09-08 16:39:40,241] Repair session ba4a1440-5669-11e5-bc8e-b3ffbc47f04c for range [(3074457345618258602,-9223372036854775808], (-9223372036854775808,3074457345618258602]] finished (progress: 80%) > [2015-09-08 16:39:40,267] Repair completed successfully > [2015-09-08 16:39:40,270] Repair command #1 finished in 0 seconds > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)