Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4969117B67 for ; Fri, 10 Apr 2015 19:41:37 +0000 (UTC) Received: (qmail 99127 invoked by uid 500); 10 Apr 2015 19:41:37 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 99062 invoked by uid 500); 10 Apr 2015 19:41:37 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 99050 invoked by uid 99); 10 Apr 2015 19:41:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 19:41:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 10 Apr 2015 19:41:15 +0000 Received: (qmail 98713 invoked by uid 99); 10 Apr 2015 19:41:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 19:41:12 +0000 Date: Fri, 10 Apr 2015 19:41:12 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PHOENIX-1835) Adjust MetaDataEndPointImpl timestamps if table is transactional MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org James Taylor created PHOENIX-1835: ------------------------------------- Summary: Adjust MetaDataEndPointImpl timestamps if table is transactional Key: PHOENIX-1835 URL: https://issues.apache.org/jira/browse/PHOENIX-1835 Project: Phoenix Issue Type: Sub-task Reporter: James Taylor Assignee: Thomas D'Silva Phoenix correlates table metadata with the table data based on timestamp. Since Tephra is adjusting timestamps for the data, we need to do the same for the metadata operations (which aren't transactional through Tephra). Take a look at MetaDataEndPointImpl and the MetaDataMutationResult where we return the server timestamp (i.e. MetaDataMutationResult.getTable() for example). This timestamp should be run through the TransactionUtil.translateTimestamp() method). Add a point-in-time test with a table being altered, but your connection being before that time (with CURRENT_SCN) as a test. We'll need to make sure the Puts to the SYSTEM.CATALOG get timestamped correctly (but I think the above will cause that). Also, my other hack in PostDDLCompiler, should not be necessary after this: {code} // FIXME: DDL operations aren't transactional, so we're basing the timestamp on a server timestamp. // Not sure what the fix should be. We don't need conflict detection nor filtering of invalid transactions // in this case, so maybe this is ok. if (tableRef.getTable().isTransactional()) { ts = TransactionUtil.translateMillis(ts); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)