Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 71FD6200D16 for ; Tue, 10 Oct 2017 09:43:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7062F160BE0; Tue, 10 Oct 2017 07:43:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B60B01609E5 for ; Tue, 10 Oct 2017 09:43:03 +0200 (CEST) Received: (qmail 29439 invoked by uid 500); 10 Oct 2017 07:43:01 -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 29428 invoked by uid 99); 10 Oct 2017 07:43:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2017 07:43:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4634FC312A for ; Tue, 10 Oct 2017 07:14:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id AbOc5DEpAWVx for ; Tue, 10 Oct 2017 07:14:11 +0000 (UTC) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C196A5FD41 for ; Tue, 10 Oct 2017 07:14:10 +0000 (UTC) Received: by mail-it0-f50.google.com with SMTP id g18so1264352itg.5 for ; Tue, 10 Oct 2017 00:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7299S/s9jeUP0O1kRbAgwSj+z1BpDngV7/IeBmEnJTo=; b=QfihngThgQG1wgUNwkbhB+/PlWyo39Ib/jKLlm4EBwtz6fsOfhJDzrXkG72smfl82J PBv5uz7udbQC3f0P3Y2uNR3/r4GFi31P/OcKLwcJAwngfROx6ywHXY1ycGfA2RM+CjYA ERjsvx16S/ucoVcSDD634gjwn0TYGbjXRzGCbGnYsR4BA3dZC0ys5VARyqq6r7mH/Aze x4dP6ekycmzXcMIfHjy8TBOqb+q1PUvKxiGvN87STbGhbrG8yrpDBh4btkmqCkXFQ1Pi Yo3XnYpNKvaF+qSYzqEC6aSnnukMHxMXTP5gDhn3L1onJ8Tg0gPVWnwDujg37OYiQHc6 8MHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7299S/s9jeUP0O1kRbAgwSj+z1BpDngV7/IeBmEnJTo=; b=ATiehbIU0grN7n3kh884fNU5aEN9mDGrcmLlPxE7Cpa5ZjqNSp7FPrMxP9Jl+3lHTL Lyj+WVHhk55Ej4kKGUZ8LCOtgP2z+9lUuLs7Daoxf0ojxli8IDgEXmCauVafMGN4od2Y sK5AzkJfmNCVLS6xvFcEpWghpnwYAyEW8Hv0szGBLZKD7fzbxFx9u0p9QUVPw9RgKCpz CkpYb2h1EBulgIFi7tdjHP9yxN6nXxItd+INanhbTvcUDxO4OgCk6FTre5P5IUETPqbA IAux4u8SMATVqUw+knUlbldd583yVrqkZtAvqztRvJKCcmUpYbMEcLdC/2rBc9mcwgDv Jy5w== X-Gm-Message-State: AMCzsaU8a1wh9am78FKHveU3Z5moCPgLApF+2d8BdQOYjfSBOr5iFL+d YdkAB4Fh7Kifucl6KvKusUQet14K/JvXrg05qhIMKQ== X-Google-Smtp-Source: AOwi7QA+HxBScMetwZlmsLgWz5WZ0z0FLFxBqlCyEChrn6YtQ5uI/JIW3S3/d7uZHTLNdFlHWTyFtbqtsKh5TTAoPbE= X-Received: by 10.36.70.131 with SMTP id j125mr15997937itb.141.1507619643403; Tue, 10 Oct 2017 00:14:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.76.217 with HTTP; Tue, 10 Oct 2017 00:13:42 -0700 (PDT) In-Reply-To: References: From: DuyHai Doan Date: Tue, 10 Oct 2017 09:13:42 +0200 Message-ID: Subject: Re: Does NTP affects LWT's ballot UUID? To: user Content-Type: multipart/alternative; boundary="001a114494d04d3191055b2c0d52" archived-at: Tue, 10 Oct 2017 07:43:04 -0000 --001a114494d04d3191055b2c0d52 Content-Type: text/plain; charset="UTF-8" The ballot UUID is obtained using QUORUM agreement between replicas for a given partition key and we use this TimeUUID ballot as write-time for the mutation. The only scenario where I can see a problem is that NTP goes backward in time on a QUORUM of replicas, which would break the contract of monotonicity. I don't know how likely this event is ... On Tue, Oct 10, 2017 at 9:07 AM, Daniel Woo wrote: > Hi guys, > > The ballot UUID should be monotonically increasing on each coordinator, > but the UUID in cassandra is version 1 (timestamp based), what happens if > the NTP service adjusts system clock while a two phase paxos prepare/commit > is in progress? > > -- > Thanks & Regards, > Daniel > --001a114494d04d3191055b2c0d52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The ballot UUID is obtained using QUORUM agreement between= replicas for a given partition key and we use this TimeUUID ballot as writ= e-time for the mutation.

The only scenario where I can s= ee a problem is that NTP goes backward in time on a QUORUM of replicas, whi= ch would break the contract of monotonicity. I don't know how likely th= is event is ...

On Tue, Oct 10, 2017 at 9:07 AM, Daniel Woo <= ;daniel.y.woo@g= mail.com> wrote:
Hi guys,

The ballot UUID should be monoto= nically increasing on each coordinator, but the UUID in cassandra is versio= n 1 (timestamp based), what happens if the NTP service adjusts system clock= while a two phase paxos prepare/commit is in progress?

--
Thanks & Regards,
Daniel

--001a114494d04d3191055b2c0d52--