Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 56018 invoked from network); 8 Oct 2010 13:06:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Oct 2010 13:06:56 -0000 Received: (qmail 38941 invoked by uid 500); 8 Oct 2010 13:06:53 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 37268 invoked by uid 500); 8 Oct 2010 13:06:49 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 37260 invoked by uid 99); 8 Oct 2010 13:06:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 13:06:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.210.44 as permitted sender) Received: from [209.85.210.44] (HELO mail-pz0-f44.google.com) (209.85.210.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 13:06:42 +0000 Received: by pzk6 with SMTP id 6so291997pzk.31 for ; Fri, 08 Oct 2010 06:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=3FMuJCrcPEZscLcHvPJVxb5FY8M3rO5ORmjYsjS04Qs=; b=hbrUzUkyzk1WkmPuI1d3c2OEs1U6bky2su8spqpooBGWYh7dXUvo9897SjwE5lViEc h+Nr691teVxrP7rkc1xMbm8sz80Cxw83pai5kiBa6mAvyAwrMPy3AGkCi5lAY4QtRGsP YQP1flywnd9pVAmJIEZd7br4GDhnH+HBNR6UU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=PGa3SAX322TXvJIxpDCMMnl+6JWnrCtx8wdmFLwIAoZoW2h9+SG6Z+fiJ22i4IqTUq OffjpOLtbnXhgHqQltL5GEaimHOvwK5Amz7VLq8x3X/pjFiA2I41Upj0dD4rp/VxyTCv i9tHVm2fXIP0HjYBfexjUwSrqWrTbIn1v9Fe4= MIME-Version: 1.0 Received: by 10.142.131.2 with SMTP id e2mr1941100wfd.173.1286543181173; Fri, 08 Oct 2010 06:06:21 -0700 (PDT) Received: by 10.220.176.131 with HTTP; Fri, 8 Oct 2010 06:06:20 -0700 (PDT) In-Reply-To: References: <4CACE78C.2060807@digg.com> <08c601cb667d$5eec4a00$1cc4de00$@com> Date: Fri, 8 Oct 2010 08:06:20 -0500 Message-ID: Subject: Re: Newbie Question about restarting Cassandra From: Jonathan Ellis To: user Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Oct 8, 2010 at 2:12 AM, Peter Schuller wrote: >> If your C* process dies and/or is killed you should not lose data.=A0 It= 's >> written to the commit log before the client is acked, however that entry= may >> not have made it to disk yet in the case of commitlogsync=3Dperiodic.=A0= So, if >> you kill the C* process you're fine.=A0 If you nicely restart the OS, yo= u >> should be fine (assuming your boxen/raid controllers/disks/etc do the sa= ne >> thing).=A0 If you nuke your OS, then see above about losing data on CL.O= NE. > > Being fine in case of killing Cassandra does depend though on > Cassandra still guaranteeing that it write():s to the fd prior to ack > even in periodic mode. I haven't checked, but I sort of took the > default position of assuming it did not unless otherwise specified. > > If it does, and if this is an intended guarantee, that's great (and > I'll happily submit a patch to make this explicit in docs/comments). > Can anyone confirm/deny that this is an intended guarantee? It is not. --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com