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 789D3200AE4 for ; Thu, 26 May 2016 03:47:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 771AE160A2E; Thu, 26 May 2016 01:47:36 +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 9AB95160A29 for ; Thu, 26 May 2016 03:47:35 +0200 (CEST) Received: (qmail 22667 invoked by uid 500); 26 May 2016 01:47:34 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 22655 invoked by uid 99); 26 May 2016 01:47:34 -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; Thu, 26 May 2016 01:47:34 +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 304CA18060F for ; Thu, 26 May 2016 01:47:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 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, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 fn27pVOmM853 for ; Thu, 26 May 2016 01:47:31 +0000 (UTC) Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 0AE885F4E6 for ; Thu, 26 May 2016 01:47:31 +0000 (UTC) Received: by mail-qk0-f180.google.com with SMTP id h185so19334873qke.2 for ; Wed, 25 May 2016 18:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=HQm4+sKIJtdjAr7NUuWanb2iN9cxTMoe8N4uuK37rLo=; b=xBv/+g2+r3iDOTvGxw17KwrXKT4eqkWBoq/kDpYwitoWIFI64+9FYZlzHBkwL7y0sw lE41QGTJsGbR15gkIcUZan8xfoAkLEWHTD9NgCzDyi/rCoubcp24m3MVUJtKW7aG8kYw cztW4BGIIW2eGs10GTnY+favTg1mle4c63LFIrH/1XT6q8zkHBsfjH1QLTa6RXZ96uH0 +i/5aWmmns9oRQxd9vXNZcSIBvC+wOKvPSpI7UwP9pGegpNIgLyknFahZ/umti5SW9am N22xPKIP0UDoIsBWPl7c7WQ/GSxS0DlOwmAhdGuXkdlFIDyd+3imqb2tNbkWTxrL5hGE uK8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=HQm4+sKIJtdjAr7NUuWanb2iN9cxTMoe8N4uuK37rLo=; b=V4NeGpb0WDoEuWycrGO+cX5PA6nvJtin7qqE+7ji1iyunlTxHSB/eiKreacfqFESAu cSDt86Y51cXUWE5laDzK5X3/5iJ8BMGsJS/tWwcF7rq+f/lt1vYYR8nQ50EvoKUG1x9d Fl2adFLxJZ4JRdHipfp4XQ5+/vOX6rVl51miUSSMOfYnlVzDoV5AsZBcfE4ZbAvVmNlD lQb7MQ0lFh8KX24/cU71+P7OB9tgSeAlOVzDAkPfEzC32bTwbG6ehJfBJq+2O5E7fgPu UngZ2v1ppHUM4rSIsveakeaMjXx7sAOXXzw04jFi+LzUJFMkdh8vbXTbUEK2VwioP1Wp VpHA== X-Gm-Message-State: ALyK8tKbAx5UGi11HrPw3h2OZh5C/1yhPqmihJid3On9TXODy49vBOUdEKvk8gbKwMWuiVxiu0ys0wgg9bt51Q== MIME-Version: 1.0 X-Received: by 10.55.98.4 with SMTP id w4mr6864875qkb.113.1464227249967; Wed, 25 May 2016 18:47:29 -0700 (PDT) Received: by 10.200.39.101 with HTTP; Wed, 25 May 2016 18:47:29 -0700 (PDT) In-Reply-To: References: <9BFB70F4-3965-4711-8838-B9CBC33F1BD0@jordanzimmerman.com> <18A7FA8A-6D57-4861-9740-7DFE5DBF8065@jordanzimmerman.com> Date: Thu, 26 May 2016 11:47:29 +1000 Message-ID: Subject: Re: CURATOR-3.0 tests From: Cameron McKenzie To: "dev@curator.apache.org" Content-Type: multipart/alternative; boundary=94eb2c056f4e1ade540533b4f9b5 archived-at: Thu, 26 May 2016 01:47:36 -0000 --94eb2c056f4e1ade540533b4f9b5 Content-Type: text/plain; charset=UTF-8 Thanks Scott. Push the fix to master and merge it into 3.0. Then I guess, I'll push new versions of 2.11 and 3.2 onto Nexus. cheers On Thu, May 26, 2016 at 11:44 AM, Scott Blum wrote: > Alright, I have a fix, but it wants to be applied to both master and 3.0. > Where should I push the fix? > > On Wed, May 25, 2016 at 6:10 PM, Cameron McKenzie > wrote: > > > Thanks Scott, > > If you just checkout the CURATOR-3.0 branch, they are failing there. > > cheers > > > > On Thu, May 26, 2016 at 2:06 AM, Scott Blum > wrote: > > > > > Sure, what SHA are they failing at Cam? > > > > > > On Wed, May 25, 2016 at 9:36 AM, Jordan Zimmerman < > > > jordan@jordanzimmerman.com> wrote: > > > > > > > Scott can you take a look? > > > > > > > > -Jordan > > > > > > > > > On May 25, 2016, at 4:35 AM, Cameron McKenzie < > > mckenzie.cam@gmail.com> > > > > wrote: > > > > > > > > > > Tree cache tests are still failing. I've tried a few times but no > > love: > > > > > > > > > > TestTreeCacheEventOrdering>TestEventOrdering.testEventOrdering:151 > > > > actual 6 > > > > > expected -31: > > > > > > > > > > I will have a look into what's going on in the morning. Given that > > > these > > > > > may take some messing about to fix up, do we just want to vote on > > > 2.11.0 > > > > > separately, as that is all ready to go? > > > > > cheers > > > > > > > > > > On Wed, May 25, 2016 at 5:34 PM, Jordan Zimmerman < > > > > > jordan@jordanzimmerman.com> wrote: > > > > > > > > > >> Great news. Thanks. > > > > >> > > > > >> ==================== > > > > >> Jordan Zimmerman > > > > >> > > > > >>> On May 25, 2016, at 12:37 AM, Cameron McKenzie < > > > mckenzie.cam@gmail.com > > > > > > > > > >> wrote: > > > > >>> > > > > >>> I have fixed up the test case, all good now. > > > > >>> > > > > >>> On Wed, May 25, 2016 at 1:45 PM, Cameron McKenzie < > > > > >> mckenzie.cam@gmail.com> > > > > >>> wrote: > > > > >>> > > > > >>>> Looks like it was introduced with the schema validation stuff. > It > > > now > > > > >> does > > > > >>>> an ACL check prior to the backgrounding call. Because the unit > > test > > > > >> uses a > > > > >>>> bogus ACL provider it just throws an exception > > > > >>>> > > > > >>>> final String adjustedPath = > > > > >>>> adjustPath(client.fixForNamespace(givenPath, > > > > >> createMode.isSequential())); > > > > >>>> List aclList = acling.getAclList(adjustedPath); > > > > >>>> > > > > >>>> > > > client.getSchemaSet().getSchema(givenPath).validateCreate(createMode, > > > > >> data, > > > > >>>> aclList); > > > > >>>> > > > > >>>> String returnPath = null; > > > > >>>> if ( backgrounding.inBackground() ) > > > > >>>> { > > > > >>>> pathInBackground(adjustedPath, data, givenPath); > > > > >>>> > > > > >>>> So, I guess the answer is to get the test to force a failure in > a > > > > >>>> different way. With the UnhandledErrorListener, the expectation > is > > > > that > > > > >>>> this only gets called on backgrounding operations? > > > > >>>> cheers > > > > >>>> > > > > >>>> On Wed, May 25, 2016 at 1:39 PM, Cameron McKenzie < > > > > >> mckenzie.cam@gmail.com> > > > > >>>> wrote: > > > > >>>> > > > > >>>>> Same on the master branch, but it passes there, so maybe > > something > > > > has > > > > >>>>> legitimately broken the test. Will let you know if I get stuck. > > > > >>>>> cheers > > > > >>>>> > > > > >>>>> On Wed, May 25, 2016 at 1:36 PM, Jordan Zimmerman < > > > > >>>>> jordan@jordanzimmerman.com> wrote: > > > > >>>>> > > > > >>>>>> Let me know if you need help. > > > > >>>>>> > > > > >>>>>> It might be a bad merge. Have you compared it to the master > > > branch? > > > > >>>>>> > > > > >>>>>> -JZ > > > > >>>>>> > > > > >>>>>>>> On May 24, 2016, at 10:31 PM, Cameron McKenzie < > > > > >> mckenzie.cam@gmail.com> > > > > >>>>>>> wrote: > > > > >>>>>>> > > > > >>>>>>> Guys, > > > > >>>>>>> There's a test TestFrameworkBackground:testErrorListener that > > is > > > > >>>>>> failing > > > > >>>>>>> consistently on the CURATOR-3.0 branch. > > > > >>>>>>> > > > > >>>>>>> I can't see how it has ever worked. It seems to try and > provoke > > > an > > > > >>>>>> error > > > > >>>>>>> via a bad ACL provider. > > > > >>>>>>> > > > > >>>>>>> But this ACL provider is called by the CreateBuilderImpl > prior > > to > > > > the > > > > >>>>>>> backgrounding call, which means that the exception that it > > throws > > > > >>>>>> happens > > > > >>>>>>> in the main Thread of the unit test. So, it just throws an > > > > >>>>>>> UnsupportedOperationException which is propogated up the > stack > > at > > > > >> which > > > > >>>>>>> point the unit test fails. > > > > >>>>>>> > > > > >>>>>>> So, I will look at fixing this, but I just don't understand > how > > > it > > > > >> ever > > > > >>>>>>> worked? > > > > >>>>>>> cheers > > > > >>>> > > > > >> > > > > > > > > > > > > > > --94eb2c056f4e1ade540533b4f9b5--