From dev-return-11515-apmail-tinkerpop-dev-archive=tinkerpop.apache.org@tinkerpop.apache.org Wed Jul 20 19:19:25 2016 Return-Path: X-Original-To: apmail-tinkerpop-dev-archive@minotaur.apache.org Delivered-To: apmail-tinkerpop-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 CC1CE19254 for ; Wed, 20 Jul 2016 19:19:23 +0000 (UTC) Received: (qmail 35083 invoked by uid 500); 20 Jul 2016 19:19:23 -0000 Delivered-To: apmail-tinkerpop-dev-archive@tinkerpop.apache.org Received: (qmail 35035 invoked by uid 500); 20 Jul 2016 19:19:23 -0000 Mailing-List: contact dev-help@tinkerpop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tinkerpop.apache.org Delivered-To: mailing list dev@tinkerpop.apache.org Received: (qmail 35024 invoked by uid 99); 20 Jul 2016 19:19:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2016 19:19:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E0E9118887B for ; Wed, 20 Jul 2016 19:19:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.446 X-Spam-Level: X-Spam-Status: No, score=-5.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sFMJRi0S5S9M for ; Wed, 20 Jul 2016 19:19:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 4E2CA60CF9 for ; Wed, 20 Jul 2016 19:19:21 +0000 (UTC) Received: (qmail 34760 invoked by uid 99); 20 Jul 2016 19:19:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2016 19:19:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7327A2C0059 for ; Wed, 20 Jul 2016 19:19:20 +0000 (UTC) Date: Wed, 20 Jul 2016 19:19:20 +0000 (UTC) From: "stephen mallette (JIRA)" To: dev@tinkerpop.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TINKERPOP-1380) dedup() doesn't dedup in rare cases 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/TINKERPOP-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stephen mallette updated TINKERPOP-1380: ---------------------------------------- Fix Version/s: 3.2.2 > dedup() doesn't dedup in rare cases > ----------------------------------- > > Key: TINKERPOP-1380 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1380 > Project: TinkerPop > Issue Type: Bug > Components: process > Affects Versions: 3.2.1 > Reporter: Daniel Kuppitz > Fix For: 3.2.2 > > > I stumbled across this issue when I tried to solve a problem on the mailing list. It seems like a lot of steps need to be involved in order to make it reproducible. > {code} > gremlin> :set max-iteration 10 > gremlin> > gremlin> g = TinkerFactory.createModern().traversal().withComputer() > ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], graphcomputer] > gremlin> g.V().repeat(both()).until(cyclicPath()).path().aggregate("x").cap("x").unfold().dedup() > ==>[v[1], v[2], v[1]] > ==>[v[1], v[2], v[1]] > ==>[v[1], v[3], v[1]] > ==>[v[1], v[3], v[1]] > ==>[v[1], v[4], v[1]] > ==>[v[1], v[4], v[1]] > ==>[v[2], v[1], v[2]] > ==>[v[2], v[1], v[2]] > ==>[v[3], v[1], v[3]] > ==>[v[3], v[1], v[3]] > ... > {code} > I can't reproduce it w/o using {{repeat()}}, {{aggregate()}} or {{cap()}}. It is reproducible without {{path()}} though. And then it even gets a little worse; check this out: > {code} > gremlin> g.V().repeat(both()).until(cyclicPath()).aggregate("x").cap("x").unfold().dedup() > ==>v[1] > ==>v[1] > ==>v[2] > ==>v[2] > ==>v[3] > ==>v[3] > ==>v[4] > ==>v[4] > ==>v[5] > ==>v[5] > ... > gremlin> g.V().repeat(both()).until(cyclicPath()).aggregate("x").cap("x").unfold().dedup().dedup() > java.lang.RuntimeException: java.lang.IllegalStateException: java.lang.IllegalArgumentException: The memory can only be set() during vertex program setup and terminate: x > Display stack trace? [yN] > {code} > The exception occurs only in OLAP mode, but also for more meaningful patterns ({{.dedup().dedup()}} really doesn't make much sense). > For a better / larger example see: https://groups.google.com/d/msg/gremlin-users/NMXExuvDjt0/ps7bJDYwAQAJ -- This message was sent by Atlassian JIRA (v6.3.4#6332)