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 922E7197B9 for ; Thu, 17 Mar 2016 02:37:37 +0000 (UTC) Received: (qmail 18186 invoked by uid 500); 17 Mar 2016 02:37:37 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 18140 invoked by uid 500); 17 Mar 2016 02:37:37 -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 18128 invoked by uid 99); 17 Mar 2016 02:37:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2016 02:37:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 742931A01F8 for ; Thu, 17 Mar 2016 02:37:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.511 X-Spam-Level: X-Spam-Status: No, score=0.511 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_H2=-0.001, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id PI6ONvdlk4Dr for ; Thu, 17 Mar 2016 02:37:35 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 60F405F1D5 for ; Thu, 17 Mar 2016 02:37:35 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id o6so29878719qkc.2 for ; Wed, 16 Mar 2016 19:37:35 -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=a+pO8h+3wf/OXepM9MOYNIiR1it1M5ah3oDgO9UyLTk=; b=fut9hrajF+q2pC+HnglgZC/bkIk3S795KFzbvRBWJKc6j/CaT1J8cypJreJfKkRmX9 II3E6L80yElWo1xLZYMEFm8YlB7vslA9xxR9UXFLW18NIt03iyJ5/hBWja9EccGSKtI1 EGweyFR/eatdQJr9xS3JdL69wF+4Fd4Qo/sOrKU/0au8Ih/VI99BLi+J+dWbN12by2D7 UbcQOQOg2e9Mii6U3XrVX1NVzHHE6Bqb6Kqn9vQu0/Jtr3R6eTRdOZ4TnYfmpMcQ+Pys Ed50+PZYsCPdOaRzODGM/csyTtzrTEEpjiSG6hdUVbQrRWYc8J/pWFcaUr++ZSCVDQwS VDxA== 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=a+pO8h+3wf/OXepM9MOYNIiR1it1M5ah3oDgO9UyLTk=; b=LwHzce18hGMaL0ZFTqwf+9kpocLwzUi4WzuE3M3H7O7hxqR0w+pJrvJ/QE73vavTJb ZIyP6vqAKP20zMzfG8CsUvtuP9PFaUuUxKbmF1KtXxUn4gvhQ1u6FmLVnQSPTTpoTIar 49EUpnwbZMarZYyCFIA/78e7os+Bv7/0IUPKgDpEKRbpu36W10S5g3TMxqJ5/q4wl0r8 SHeT/sE+aiZmHKPdxm5Crg5q6FADTzYvC3aX7C3tzQG7LHONpl90Z5Qjup63ORO/NnyK AK9rbB9viVvBp7V0Lf+wRq+j5uIQ2gMHjtJmZXheQnbp5ECfY/m1DpustfXZW7pHolrl tALg== X-Gm-Message-State: AD7BkJLkE0D33GpoGJqcd5mSjHpwpA79UpDyqmtwekNExc+DJwXbLLBtMOioz9AXZzcT2g== X-Received: by 10.55.17.164 with SMTP id 36mr10680469qkr.54.1458182254850; Wed, 16 Mar 2016 19:37:34 -0700 (PDT) Received: from hw10447.penguinsinabox.home (pool-173-67-37-67.bltmmd.fios.verizon.net. [173.67.37.67]) by smtp.googlemail.com with ESMTPSA id z132sm2895142qka.14.2016.03.16.19.37.33 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2016 19:37:34 -0700 (PDT) Message-ID: <56EA186D.5020009@gmail.com> Date: Wed, 16 Mar 2016 22:37:33 -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> <56E9D454.8080901@gmail.com> <1458170988999-16379.post@n5.nabble.com> In-Reply-To: <1458170988999-16379.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Server-assigned timestamps are done per-batch. This is getting back to what Keith suggested. It's not that Accumulo isn't "setting the timestamp properly" like you suggest, this is just how server-assigned time works. If you submit a delete and an update, without timestamps, in the same batch (without a flush inbetween) they'll get the same timestamp, and the delete will override the update. tl;dr Use Keith's approach if you can't compute an increasing value for the timestamp. z11373 wrote: > Thanks Keith/Josh! > > @Josh: the client API I use in my code is the one without passing that long > timestamp, so Accumulo should assign the timestamp in time ordered manner, > right? > From my service app log file, I see the add always being called after > delete, so it should work if Accumulo set the timestamp properly, but there > could be possibility they are assigned same timestamp, hence the behavior is > not predictable? > I prefer not to assign timestamp from my code if possible. > > > Thanks, > Z > > > > -- > View this message in context: http://apache-accumulo.1065345.n5.nabble.com/delete-insert-case-tp16375p16379.html > Sent from the Developers mailing list archive at Nabble.com.