Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 5786 invoked from network); 24 May 2010 23:14:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 23:14:45 -0000 Received: (qmail 4228 invoked by uid 500); 24 May 2010 23:14:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 4207 invoked by uid 500); 24 May 2010 23:14:45 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 4192 invoked by uid 99); 24 May 2010 23:14:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 23:14:45 +0000 X-ASF-Spam-Status: No, hits=-1460.0 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 23:14:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4ONEOAf014310 for ; Mon, 24 May 2010 23:14:25 GMT Message-ID: <14230614.22081274742864289.JavaMail.jira@thor> Date: Mon, 24 May 2010 19:14:24 -0400 (EDT) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1070) Update interface to use a wrapper for various clock types In-Reply-To: <19467119.31273514457651.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870902#action_12870902 ] Jonathan Ellis commented on CASSANDRA-1070: ------------------------------------------- List clocks = new LinkedList(); clocks.add(newClock); newClock = oldClock.getSuperset(clocks); is better written as newClock = oldClock.getSuperset(Arrays.asList(oldClock)); ... but more importantly doesn't IClock oldClock = atomic.getAndSet(newClock); temporarily set the reference to the new value (even it is smaller than the old), before fixing it to be the max? that would be a bug. > Update interface to use a wrapper for various clock types > --------------------------------------------------------- > > Key: CASSANDRA-1070 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1070 > Project: Cassandra > Issue Type: Sub-task > Components: Core > Reporter: Johan Oskarsson > Assignee: Sylvain Lebresne > Fix For: 0.7 > > Attachments: 0001-Introduces-wrapper-for-clock-types-generalizing-time.patch, 0001-v2-Introduces-wrapper-for-clock-types-generalizing-time.patch, 0001-v4-Introduces-wrapper-for-clock-types-generalizing-time.patch, 0001-v5-Introduces-wrapper-for-clock-types-generalizing-time.patch, 0001-v6-Introduces-wrapper-for-clock-types-generalizing-time.patch, 0002-Update-unit-tests.patch, 0002-v6-Update-unit-tests.patch, 0003-Update-System-tests.patch, 0003-v6-Update-System-tests.patch > > > In the latest CASSANDRA-580 patch the timestamp used for conflict resolution has been replaced by a Clock object that can contain either timestamp or a context byte array. That change allows for other conflict resolution techniques to be used. > The change can be broken out and submitted here in order to make CASSANDRA-580 more manageable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.