Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 D550C1888F for ; Tue, 9 Jun 2015 17:50:52 +0000 (UTC) Received: (qmail 65424 invoked by uid 500); 9 Jun 2015 17:50:50 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 65351 invoked by uid 500); 9 Jun 2015 17:50:50 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 65337 invoked by uid 99); 9 Jun 2015 17:50:50 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 17:50:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B4160C0518 for ; Tue, 9 Jun 2015 17:50:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id yRgjYoMTe_xy for ; Tue, 9 Jun 2015 17:50:48 +0000 (UTC) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id D993F27623 for ; Tue, 9 Jun 2015 17:50:46 +0000 (UTC) Received: by wgme6 with SMTP id e6so18861020wgm.2 for ; Tue, 09 Jun 2015 10:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MabUYONYVZwiW4VaAvTI5bFfijLqJfYfl1dBhDEUmjM=; b=lvt40gGctf1KSkFIwCG9WqqJelYbg5LSVJDZXDB0RtOZU32fQbk0CMeLVdYiwhwBIF WlsxqL293kFFzON2L6RpUqXaD7NcO1NVdemZvetY9CVaYwUCIEGOVLV7S3S51QNQONVk YeWHmQZO5n9j5ZLhQ6Ubu4DemGckSk70M4ri+Tsi8AlONY2xX6dD2GUA/uY13SYnUUiT eN6jhckVgBTagJ3vhSmatYQJhJcunH5NeRIUK28MfKxlAzCtc1lQzmmh2DKVNLAElgwM KvjbJcUCcJd+hpzv5P9jtUjSVENJAwVjQQTgDLwLD6iExc9bLPXEz9TAR1pxpdfkdPeS GEUA== MIME-Version: 1.0 X-Received: by 10.180.37.230 with SMTP id b6mr71615wik.14.1433872243314; Tue, 09 Jun 2015 10:50:43 -0700 (PDT) Received: by 10.28.46.194 with HTTP; Tue, 9 Jun 2015 10:50:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Jun 2015 13:50:43 -0400 Message-ID: Subject: Re: Potential bugs in HTable In incrementColumnValue method From: Jerry Lam To: user Content-Type: multipart/alternative; boundary=e89a8f64701db7561e0518196549 --e89a8f64701db7561e0518196549 Content-Type: text/plain; charset=UTF-8 Hi Vlad, I copied the code from HBase version 1.0.0. I first noticed it in version 0.98.6. We have codes that use HBase since 0.92. So some of the codes have not been ported to the latest version therefore they are still using the deprecated methods. The reason I'm asking is because I don't know if I should use SKIP_WAL to get the same semantic of writeToWAL (true). I'm doubting it because the name SKIP_WAL implies writeToWAL false. :) Best Regards, Jerry On Tue, Jun 9, 2015 at 12:03 PM, Ted Yu wrote: > I see code in this formation in 0.98 branch. > > Looking at the unit tests which exercise incrementColumnValue(), they all > call: > public long incrementColumnValue(final byte [] row, final byte [] family, > final byte [] qualifier, final long amount) > Possibly because the one mentioned by Jerry is deprecated. > > FYI > > On Tue, Jun 9, 2015 at 8:49 AM, Vladimir Rodionov > wrote: > > > Hi, Jerry > > > > Which version of HBase is it? > > > > -Vlad > > > > On Tue, Jun 9, 2015 at 8:05 AM, Jerry Lam wrote: > > > > > Hi HBase community, > > > > > > Can anyone confirm that the method incrementColumnValue is implemented > > > correctly? > > > > > > I'm talking about mainly the deprecated method: > > > > > > @Deprecated > > > > > > @Override > > > > > > public long incrementColumnValue(final byte [] row, final byte [] > > family, > > > > > > final byte [] qualifier, final long amount, final boolean > > writeToWAL) > > > > > > throws IOException { > > > > > > return incrementColumnValue(row, family, qualifier, amount, > > > > > > writeToWAL? Durability.SKIP_WAL: Durability.USE_DEFAULT); > > > > > > } > > > > > > > > > Note from the above, if writeToWAL is true, Durability is set to > > SKIP_WAL. > > > > > > It does not make sense to me so I'm asking if this might be a potential > > > bug. > > > > > > > > > Best Regards, > > > > > > > > > Jerry > > > > > > --e89a8f64701db7561e0518196549--