Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4887110B22 for ; Fri, 6 Sep 2013 17:27:42 +0000 (UTC) Received: (qmail 21522 invoked by uid 500); 6 Sep 2013 17:27:39 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 21435 invoked by uid 500); 6 Sep 2013 17:27:39 -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 21427 invoked by uid 99); 6 Sep 2013 17:27:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 17:27:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kohlisankalp@gmail.com designates 209.85.128.43 as permitted sender) Received: from [209.85.128.43] (HELO mail-qe0-f43.google.com) (209.85.128.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 17:27:32 +0000 Received: by mail-qe0-f43.google.com with SMTP id gh4so1888767qeb.30 for ; Fri, 06 Sep 2013 10:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=o5SI9E8El6xZ900adxm28roGDOhq/lYZyoHWVfiIUSE=; b=q/TAR10ug1wzyhn3U9AIIGem+AAOKmcvLqd8og3PbcXY3hI0qAFISELGYVgYSQNCMR h9erYBrJmAWq+EwghCr3nswRpUG7LEGoEHY76854m3pc02gzWgNTtaHFM5ngPt48nGE4 ccqzCYtITa1SC4sChw8iMSQcN5nDIA1z9pg0zosX955QDKU4b+1OV8K0J1oa8uEK/Jkl dcJeYm1pmxtU50J2IBlVh5TowkPyHMAL8wH1XtFV5xO02qyzmlRyIvxiqrbzai3Azw46 JwJPehP6jc1BGAk/XLvR1LY0dGIS6XhKC203/u67KlocYFeKYZEUiVSZeCJLIfT8N1ur IKTg== X-Received: by 10.49.84.6 with SMTP id u6mr3630795qey.79.1378488431705; Fri, 06 Sep 2013 10:27:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.131.229 with HTTP; Fri, 6 Sep 2013 10:26:31 -0700 (PDT) In-Reply-To: References: From: sankalp kohli Date: Fri, 6 Sep 2013 10:26:31 -0700 Message-ID: Subject: Re: Cassandra 1.2.4 - Unflushed data lost on restart To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7bdc09344c854404e5ba5977 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc09344c854404e5ba5977 Content-Type: text/plain; charset=ISO-8859-1 You should be using replication. Not all machines will power off at the same time. Regarding changing the fsync setting, even if you choose it to be fully sync, there have been many studies which have shown that data was lost on many SSDs even after fsync has returned. So I will fix this problem by replication and not changing the fsync stuff. On Fri, Sep 6, 2013 at 10:21 AM, Mohit Anchlia wrote: > Are you not using RF >= 3 ? > > > On Fri, Sep 6, 2013 at 10:14 AM, Thapar, Vishal (HP Networking) < > vthapar@hp.com> wrote: > >> My usage requirements are such that there should be least possible data >> loss even in case of a poweroff. When you say clean shutdown do you mean >> Cassandra service stop? >> >> I ran across this issue when testing out different scenarios to figure >> out what would be best configuration for my requirements, will consider >> batch mode as 10 seconds window might be too much for some of my use cases. >> >> Thanks for the reply, >> Vishal. >> ----------------------------------------------- >> From: Robert Coli [mailto:rcoli@eventbrite.com] >> Sent: Friday, September 06, 2013 10:35 PM >> To: user@cassandra.apache.org >> Subject: Re: Cassandra 1.2.4 - Unflushed data lost on restart >> >> On Fri, Sep 6, 2013 at 2:42 AM, Thapar, Vishal (HP Networking) < >> vthapar@hp.com> wrote: >> I am running Cassandra 1.2.4 in standalone mode and see a data loss when >> I stop/start Cassandra [kill the task]. >> >> Clean shutdown waits for commitlog flush. Unclean shutdown does not. In >> default periodic mode, this could mean up to 10 seconds of loss. If you >> don't want to lose up to 10 seconds, use batch commitlog mode or... just >> shut down cleanly? >> >> There are also cases in your vintage Cassandra where data in secondary >> indexes has not been available, in case you are querying on those. >> >> =Rob >> > > --047d7bdc09344c854404e5ba5977 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
You should be using replication. Not all machines will pow= er off at the same time.=A0
Regarding changing the fsync setting,= even if you choose it to be fully sync, there have been many studies which= have shown that data was lost on many SSDs even after fsync has returned.= =A0
So I will fix this problem by replication and not changing the f= sync stuff.=A0


On Fri, Sep 6, 2013 at 10:21 AM, Mohit Anchlia <mohitanc= hlia@gmail.com> wrote:
Are you not using RF >=3D 3 ?


On Fri, Se= p 6, 2013 at 10:14 AM, Thapar, Vishal (HP Networking) <= ;vthapar@hp.com>= wrote:
My usage requirements are such that there should be least = possible data loss even in case of a poweroff. When you say clean shutdown = do you mean Cassandra service stop?

I ran across this issue when testing out different scenarios to figure out = what would be best configuration for my requirements, will consider batch m= ode as 10 seconds window might be too much for some of my use cases.

Thanks for the reply,
Vishal.
-----------------------------------------------
From: Robert Coli [mailto:rcoli@eventbrite.com]
Sent: Friday, September 06, 2013 10:35 PM
To: user@cas= sandra.apache.org
Subject: Re: Cassandra 1.2.4 - Unflushed data lost on restart

On Fri, Sep 6, 2013 at 2:42 AM, Thapar, Vishal (HP Networking) <vthapar@hp.com> wrote:<= br> I am running Cassandra 1.2.4 in standalone mode and see a data loss when I = stop/start Cassandra [kill the task].

Clean shutdown waits for commitlog flush. Unclean shutdown does not. In def= ault periodic mode, this could mean up to 10 seconds of loss. If you don= 9;t want to lose up to 10 seconds, use batch commitlog mode or... just shut= down cleanly?

There are also cases in your vintage Cassandra where data in secondary inde= xes has not been available, in case you are querying on those.

=3DRob=A0


--047d7bdc09344c854404e5ba5977--