Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 86250 invoked from network); 23 Jun 2009 22:45:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jun 2009 22:45:18 -0000 Received: (qmail 39863 invoked by uid 500); 23 Jun 2009 22:45:29 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 39818 invoked by uid 500); 23 Jun 2009 22:45:29 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 39808 invoked by uid 99); 23 Jun 2009 22:45:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 22:45:29 +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, 23 Jun 2009 22:45:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6673D234C04B for ; Tue, 23 Jun 2009 15:45:07 -0700 (PDT) Message-ID: <1435993833.1245797107418.JavaMail.jira@brutus> Date: Tue, 23 Jun 2009 15:45:07 -0700 (PDT) From: "Jonathan Gray (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1563) incrementColumnValue does not write to WAL In-Reply-To: <389087572.1245691687385.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Gray updated HBASE-1563: --------------------------------- Attachment: HBASE-1563-v3.patch - Removes unnecessary Get in client code - Removed duplicate server calls in the client code, default just calls full w/ true - Replaced increment javadoc with "Atomically increments a column value. If the column value already exists and is not a big-endian long, this could throw an exception." Is that more clear? @Ryan I got most the way through splitting up Store.incrementColumnValue logic so we figure out what we have to do first, then write to wal, then perform the insert. The issue is when we increment in-place in the memcache. If we truly don't want to write until the wal append, we'd have to make a copy of the KV, perform the increment on it, and then either increment the original memcache value or swap. This more or less negates the in-place increment optimization. Thoughts? > incrementColumnValue does not write to WAL > ------------------------------------------ > > Key: HBASE-1563 > URL: https://issues.apache.org/jira/browse/HBASE-1563 > Project: Hadoop HBase > Issue Type: Bug > Affects Versions: 0.20.0 > Reporter: Jonathan Gray > Assignee: Jonathan Gray > Fix For: 0.20.0 > > Attachments: HBASE-1563-v1.patch, HBASE-1563-v2.patch, HBASE-1563-v3.patch > > > Incrementing never writes to the WAL. Under failure scenarios, you will lose all increments since the last flush. > Do we want to expose the option to the client as to whether to write to WAL or not? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.