Return-Path: X-Original-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0AD2A188A0 for ; Sat, 16 Jan 2016 02:17:31 +0000 (UTC) Received: (qmail 46705 invoked by uid 500); 16 Jan 2016 02:17:30 -0000 Delivered-To: apmail-asterixdb-notifications-archive@asterixdb.apache.org Received: (qmail 46672 invoked by uid 500); 16 Jan 2016 02:17:30 -0000 Mailing-List: contact notifications-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list notifications@asterixdb.incubator.apache.org Received: (qmail 46663 invoked by uid 99); 16 Jan 2016 02:17:30 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jan 2016 02:17:30 +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 331A71A013E for ; Sat, 16 Jan 2016 02:17:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.226 X-Spam-Level: * X-Spam-Status: No, score=1.226 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BiYXMe-8nRBZ for ; Sat, 16 Jan 2016 02:17:26 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id B7F8D31B47 for ; Sat, 16 Jan 2016 02:09:40 +0000 (UTC) Received: (qmail 30975 invoked by uid 99); 16 Jan 2016 02:09:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jan 2016 02:09:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C1AC02C14F0 for ; Sat, 16 Jan 2016 02:09:39 +0000 (UTC) Date: Sat, 16 Jan 2016 02:09:39 +0000 (UTC) From: "Till Westmann (JIRA)" To: notifications@asterixdb.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ASTERIXDB-1261) The UUID printer shares an object across partitions, leading to a concurrency problem 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/ASTERIXDB-1261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15102917#comment-15102917 ] Till Westmann commented on ASTERIXDB-1261: ------------------------------------------ I thought that we didn't have those anymore. But I hope that the answer is simple. Instead of returning the same printer instance every time, the factory needs to return a new instance every time. And those instances should then be reused by every NodePushable that works in a single thread. Is that right? > The UUID printer shares an object across partitions, leading to a concurrency problem > ------------------------------------------------------------------------------------- > > Key: ASTERIXDB-1261 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-1261 > Project: Apache AsterixDB > Issue Type: Bug > Reporter: Steven Jacobs > Attachments: Screen Shot 2016-01-12 at 4.28.42 PM.png > > > The UUID printer currently shares a mutable uuid across all partitions, which cause a concurrency issue where the value is printer incorrectly. We need to add a function to print uuid values without creating objects, as other printers (e.g. circle) do. > You can see the problem in action using the following: > drop dataverse channels if exists; > create dataverse channels; > use dataverse channels; > create type TypeA as closed > { "resultId":uuid, "subscriptionId":uuid, "deliveryTime":datetime } > create dataset nearbyTweetChannelResults(TypeA) primary key resultId auto generated; > insert into dataset nearbyTweetChannelResults( > {"subscriptionId":uuid("d0b6fac0-3903-43dc-8ef6-7b0923ffc759"), "deliveryTime":datetime("2011-08-25T10:10:00.000Z")} > ); > insert into dataset nearbyTweetChannelResults( > {"subscriptionId":uuid("d0b6fac0-3903-43dc-8ef6-7b0923ffc759"), "deliveryTime":datetime("2011-08-25T10:10:00.000Z")} > ); > Next, run the following AQL repeatedly. It should change within 20 or so times. > use dataverse channels; > for $result in dataset nearbyTweetChannelResults > return $result.resultId; > for $result in dataset nearbyTweetChannelResults > return $result.resultId; > for $result in dataset nearbyTweetChannelResults > return $result.resultId; > I have a screenshot of a failed instance that I will try to attach. The first result in the screenshot is clearly wrong -- This message was sent by Atlassian JIRA (v6.3.4#6332)