Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B48F218879 for ; Wed, 16 Mar 2016 21:07:23 +0000 (UTC) Received: (qmail 82508 invoked by uid 500); 16 Mar 2016 21:07:23 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 82462 invoked by uid 500); 16 Mar 2016 21:07:23 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 82450 invoked by uid 99); 16 Mar 2016 21:07:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2016 21:07:23 +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 C5145C0316 for ; Wed, 16 Mar 2016 21:07:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.492 X-Spam-Level: X-Spam-Status: No, score=0.492 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qM7oYMU67JP5 for ; Wed, 16 Mar 2016 21:07:20 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 592D75F1EC for ; Wed, 16 Mar 2016 21:07:20 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id x1so26789416qkc.1 for ; Wed, 16 Mar 2016 14:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=Dhmb3CYt1xLRY9jt1D0QBLxaw69N/MVbK06DgqX+Frs=; b=EKVHS/TzjczI0UGZe/7227fSq4td2R23A3RX06PzbvGUQwFbDedOzcd/fq0lzhEOoS B7wRIrPesQVbSNlfMi2JieBs9/oDvhxgsuuKfZsl8u0EVpa7oC+ytsxVfBMd2XZHGQkL yPmEHyVHqaLg6fJe3CQ0tOFKThZe0a8UjZKwhzA3UeyKgrWWq8FThHyDxxScyX+YmJo3 vSYkXnllD+vyy0pTsQlK3MVphBt4fZL0yWIrzXiNt5B9alAOZMdR+FF8q9Q+Lwc1V6q4 9dPuEJRTGJ79sqY8klih34ST21kJY3of+FwED3uG7058qq73CCilYOGt8BqAxkUyvKAu aOWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=Dhmb3CYt1xLRY9jt1D0QBLxaw69N/MVbK06DgqX+Frs=; b=kPw2eH4caqhgrTVPnyrLTkrvKYjfCZW/V4lDWfyXuTd9QQZD9JxIRXa2dWym66opJg ljZPryelyK6fAFo/U9ku2WEqGswDTxiPklaU0PTOUsE63lIosHu7NoPnIAhVX4fjMkV3 b/SS8xNwU5VpEMsX7BKNefxpLRUAQ3/8CswsvROSGCilug0iHK/zlizdT+wjsAq6Tpky MgkBo3Or6N2vY0fST02ZRtwNAM9Ql8SPr80A3GMYOHBDLl+8VLvu79W5cHIBy+mOm/Fw YNzCEtZh3aOKNsZJEsfQiU1aqo3O28V4Saasd0JsYzgfgMa0wKoM2T+9wiPE4nstHAa+ X5EQ== X-Gm-Message-State: AD7BkJJVYF7LQ3aNAWn/RfReOaiPWDSiyXlkiGWUgruI1bi17hccNyPh1M8aFDXYRWD6+A== X-Received: by 10.55.19.96 with SMTP id d93mr8831633qkh.12.1458162434011; Wed, 16 Mar 2016 14:07:14 -0700 (PDT) Received: from hw10447.local (pool-173-67-37-67.bltmmd.fios.verizon.net. [173.67.37.67]) by smtp.googlemail.com with ESMTPSA id z65sm2302792qhb.36.2016.03.16.14.07.13 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2016 14:07:13 -0700 (PDT) Message-ID: <56E9CAFF.3070809@gmail.com> Date: Wed, 16 Mar 2016 17:07:11 -0400 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: dev@accumulo.apache.org Subject: Re: delete + insert case References: <1458160433777-16375.post@n5.nabble.com> In-Reply-To: <1458160433777-16375.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Make sure that your insert has a newer timestamp than the delete does. Otherwise, the delete will mask any inserts with smaller timestamps until it is compacted away (which is essentially an unknown to you as a client). e.g. 1. delete A ts=5 2. add A ts=6 3. add B ts=whatever z11373 wrote: > Hi, > I have object abstraction class which delete/add operation will eventually > translate to calling Accumulo writer.putDelete and writer.put > To achieve higher throughput, the code will only call writer.flush per > request (my implementation knows when it's end of request), instead of > flushing per each delete or add operation. > In this case we have client request calling my service which for example > would be: > 1. delete A > 2. add A > 3. add B > > I'd expect the end result would be both row id A and B exists in the table, > but apparently it's only B. I already checked from the log, the order the > code being executed is delete first before add operation. However, I guess > since I call flush after all putDelete and put calls being made, Accumulo > somehow make putDelete 'win' (in same flush cycle), is that correct? If yes, > how to workaround this without sacrificing performance. > > > Thanks, > Z > > > > -- > View this message in context: http://apache-accumulo.1065345.n5.nabble.com/delete-insert-case-tp16375.html > Sent from the Developers mailing list archive at Nabble.com.