Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 45809 invoked from network); 26 Jan 2010 13:34:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2010 13:34:56 -0000 Received: (qmail 40608 invoked by uid 500); 26 Jan 2010 13:34:56 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 40586 invoked by uid 500); 26 Jan 2010 13:34:56 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 40575 invoked by uid 99); 26 Jan 2010 13:34:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:34:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:34:55 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9AB5B234C1E9 for ; Tue, 26 Jan 2010 05:34:34 -0800 (PST) Message-ID: <70756358.37951264512874619.JavaMail.jira@brutus.apache.org> Date: Tue, 26 Jan 2010 13:34:34 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Resolved: (CASSANDRA-742) write operation will throw internal error if the bootstrapping node is down In-Reply-To: <1905006477.35071264500034682.JavaMail.jira@brutus.apache.org> 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-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis resolved CASSANDRA-742. -------------------------------------- Resolution: Duplicate fixed in CASSANDRA-722 for 0.5.1 > write operation will throw internal error if the bootstrapping node is down > --------------------------------------------------------------------------- > > Key: CASSANDRA-742 > URL: https://issues.apache.org/jira/browse/CASSANDRA-742 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.5 > Environment: linux2.6 > Reporter: david.pan > Fix For: 0.6 > > Attachments: 742-write_failed_when_bootstrapping_down.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > the opertions are that : > 1) bootstrap a node A; > 2) keep on inserting data while bootstrapping; > 3) stop the service of the node A; > 4) then the following exception was found: > ERROR [pool-1-thread-9] 2010-01-26 10:32:39,688 Cassandra.java (line 1064) Internal error processing insert > java.lang.AssertionError > at org.apache.cassandra.locator.TokenMetadata.getToken(TokenMetadata.java:213) > at org.apache.cassandra.locator.AbstractReplicationStrategy.getHintedMapForEndpoints(AbstractReplicationStrategy.java:142) > at org.apache.cassandra.locator.AbstractReplicationStrategy.getHintedEndpoints(AbstractReplicationStrategy.java:76) > at org.apache.cassandra.service.StorageService.getHintedEndpointMap(StorageService.java:1188) > at org.apache.cassandra.service.StorageProxy.insertBlocking(StorageProxy.java:169) > at org.apache.cassandra.service.CassandraServer.doInsert(CassandraServer.java:466) > at org.apache.cassandra.service.CassandraServer.insert(CassandraServer.java:417) > at org.apache.cassandra.service.Cassandra$Processor$insert.process(Cassandra.java:1056) > at org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:817) > at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:619) > I traced the code and found that "org.apache.cassandra.locator.AbstractReplicationStrategy.getHintedMapForEndpoints(Collection)" will select a hinted endpoint for a dead endpoint, no mater whether it's a normal node or a bootstrapping node. To get the tokenID of the endpoint, this method will call "tokenMetadata_.getToken(ep);", but getToken() asserts that the endpoint should be a member of the ring only. Of course, the bootstrapping endpoint is not a member and a internal exception is throwed out. > This exception will always be throwed out until I re-boostrapping. This is really a big prolem for me, because the bootstrapping will last 30 hours and my machines are not very durable. I have to get up from bed at night to deal with this accident. :-( -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.