Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-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 E724E18FC4 for ; Tue, 25 Aug 2015 23:15:38 +0000 (UTC) Received: (qmail 14612 invoked by uid 500); 25 Aug 2015 23:15:38 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 14559 invoked by uid 500); 25 Aug 2015 23:15:38 -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 14547 invoked by uid 99); 25 Aug 2015 23:15:38 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2015 23:15:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EE685C0332 for ; Tue, 25 Aug 2015 23:15:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Acaa4dBhNEj0 for ; Tue, 25 Aug 2015 23:15:32 +0000 (UTC) Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8664F42B2E for ; Tue, 25 Aug 2015 23:15:32 +0000 (UTC) Received: by igui7 with SMTP id i7so24269975igu.1 for ; Tue, 25 Aug 2015 16:15:32 -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 :content-type; bh=NCf4Fl8ied3Gpw8dQ1W2oQlc5MJzLgg+/65KFm2HKqQ=; b=aLKeThpakmLv3GUToQdH5AkD9BI032+MXy7RsKAE6LqWLq3ADl6CFeddWtsegRCOCU lr+O9oLta+QCDQeejjax49YJvCtcqhUiyQVsKcYB2HRS+e2iGu1Itasp7uVt3upWRMoP zmDppUwruBBMXlY83Df/6elnG26r0WnvlZjq7eWtIPRYxB6ZpwEHUKu9tzM/FVYKjzFu F8Rqk83A8XNYRqhsfW8Jol48/NzzxgX3b6UyeYpBapgl4iJiZzyRnhuQTUrOaX0AuIFf 1PXWJAp/I3JbbbyZej13n0il789SpVZAFBH0+o5DE9O6mVNEJopkoMNFdfe0xZ2pO84k kSeQ== MIME-Version: 1.0 X-Received: by 10.50.254.165 with SMTP id aj5mr6619044igd.25.1440544532136; Tue, 25 Aug 2015 16:15:32 -0700 (PDT) Received: by 10.64.23.169 with HTTP; Tue, 25 Aug 2015 16:15:32 -0700 (PDT) In-Reply-To: References: Date: Wed, 26 Aug 2015 09:15:32 +1000 Message-ID: Subject: Re: CURATOR-217? From: Cameron McKenzie To: "dev@curator.apache.org" Content-Type: multipart/alternative; boundary=001a1135f6a01f2bce051e2ae96a --001a1135f6a01f2bce051e2ae96a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Is anyone seeing fairly consistent failure of the TestBoundedDistributedQueue.testMulti:184 test? When I run from inside eclipse in isolation it seems ok, but running a 'mvn test' seems to fail on this test with some consistency. The changes for CURATOR-167 certainly haven't caused this to happen. cheers On Wed, Aug 26, 2015 at 7:45 AM, Cameron McKenzie wrote: > Thanks Scott, > I will merge into master. > cheers > > On Wed, Aug 26, 2015 at 1:00 AM, Scott Blum wrote= : > >> Yep, that looks perfect. Is CURATOR-167 done? If so, we can just >> fast-foward merge it into master now. >> >> On Tue, Aug 25, 2015 at 12:11 AM, Cameron McKenzie < >> mckenzie.cam@gmail.com> >> wrote: >> >> > Thanks Scott, >> > Done, would you mind checking the origin/CURATOR-167 to make sure that= I >> > haven't done anything wrong! I have done a git pull on a different >> machine >> > and it seems to be ok. >> > cheers >> > >> > On Tue, Aug 25, 2015 at 1:49 PM, Scott Blum >> wrote: >> > >> > > You just force push your branch. >> > > >> > > If it's your feature branch, and you know you have it in a good stat= e >> > > locally, you can just force push the remote branch into the same >> state. >> > > >> > > You'd never want to do that to master, a release branch, or someone >> > else's >> > > branch. >> > > On Aug 24, 2015 11:15 PM, "Cameron McKenzie" >> > > wrote: >> > > >> > > > Thanks Mike, >> > > > That was a good description. The CURATOR-167 branch is definitely >> there >> > > as >> > > > it's been a pull request for the last few months. So, I'll await >> your >> > > > thoughts in the morning. Alternatively, I can just merge master >> instead >> > > of >> > > > rebasing it. >> > > > >> > > > On Tue, Aug 25, 2015 at 1:00 PM, Mike Drob >> > wrote: >> > > > >> > > > > Yea, that's the big downside with rebasing, is that remotes don'= t >> > > exactly >> > > > > keep up with the history. I'm going to try to explain this as be= st >> > as I >> > > > > can, but usually I point people towards this excellent "Git for >> Ages >> > 4 >> > > > and >> > > > > Up" video https://www.youtube.com/watch?v=3D1ffBJ4sVUb4 - he tal= ks >> > about >> > > > > rebases at the very very end, around the 1:30 mark. >> > > > > >> > > > > Essentially, your current version of the branch does not have th= e >> > > remote >> > > > > version of the as an ancestor. Which is correct, when you did th= e >> > > rebase, >> > > > > you wrote a new commit lineage. >> > > > > >> > > > > I didn't realize that there was already a CURATOR-167 branch >> pushed >> > to >> > > > the >> > > > > repo when I gave you those steps. I'll have to look at what's >> going >> > on >> > > > with >> > > > > a fresh set of eyes in the morning. >> > > > > >> > > > > On Mon, Aug 24, 2015 at 8:37 PM, Cameron McKenzie < >> > > > mckenzie.cam@gmail.com> >> > > > > wrote: >> > > > > >> > > > > > I just tried this and obviously I'm doing something wrong. >> > > > > > >> > > > > > git checkout CURATOR-167 >> > > > > > git pull >> > > > > > git rebase -i origin/master >> > > > > > >> > > > > > #This gives me a dialog with one commit with pick >> > > > > > Save and exit >> > > > > > #This gives a merge conflict and leaves me in a detached head >> state >> > > (I >> > > > > > presume this is ok). >> > > > > > Fix up the merge conflict >> > > > > > git rebase --continue >> > > > > > #This gives me a dialog to commit the changes >> > > > > > Save and exit >> > > > > > #Everything seems fine at this point. Builds ok, tests run ok. >> > > > > > >> > > > > > git push >> > > > > > >> > > > > > ! [rejected] CURATOR-167 -> CURATOR-167 >> (non-fast-forward) >> > > > > > error: failed to push some refs to ' >> > > > > > https://git-wip-us.apache.org/repos/asf/curator.git' >> > > > > > hint: Updates were rejected because the tip of your current >> branch >> > is >> > > > > > behind >> > > > > > hint: its remote counterpart. Integrate the remote changes (e.= g. >> > > > > > hint: 'git pull ...') before pushing again. >> > > > > > hint: See the 'Note about fast-forwards' in 'git push --help' >> for >> > > > > details. >> > > > > > >> > > > > > There have been no changes on the branch since I did the pull >> > before >> > > > the >> > > > > > rebase. >> > > > > > >> > > > > > Any ideas? >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > On Tue, Aug 25, 2015 at 8:48 AM, Cameron McKenzie < >> > > > > mckenzie.cam@gmail.com> >> > > > > > wrote: >> > > > > > >> > > > > > > Thanks Mike, >> > > > > > > Will give it a spin today some time. >> > > > > > > cheers >> > > > > > > >> > > > > > > On Tue, Aug 25, 2015 at 8:36 AM, Mike Drob < >> madrob@cloudera.com> >> > > > > wrote: >> > > > > > > >> > > > > > >> if you're going to tray that, here's what you want to do >> > (assuming >> > > > > > command >> > > > > > >> line) >> > > > > > >> >> > > > > > >> git checkout CURATOR-167 # start with the branch that you a= re >> > > > changing >> > > > > > >> git rebase -i master # rebase the current branch on top of >> the >> > > given >> > > > > > >> branch >> > > > > > >> >> > > > > > >> On Mon, Aug 24, 2015 at 5:07 PM, Cameron McKenzie < >> > > > > > mckenzie.cam@gmail.com >> > > > > > >> > >> > > > > > >> wrote: >> > > > > > >> >> > > > > > >> > Scott, >> > > > > > >> > I've been using a similar approach to Jordan given that's >> what >> > > I'm >> > > > > > used >> > > > > > >> to, >> > > > > > >> > but I'm happy to try your approach. I'm going to try and >> fix >> > up >> > > > > > >> CURATOR-167 >> > > > > > >> > as it will no longer cleanly merge (it's been sitting >> there a >> > > > > while). >> > > > > > >> So, I >> > > > > > >> > should rebase master into the CURATOR-167 branch? >> > > > > > >> > cheers >> > > > > > >> > >> > > > > > >> > On Tue, Aug 25, 2015 at 2:55 AM, Scott Blum < >> > > > dragonsinth@apache.org >> > > > > > >> > > > > > >> > wrote: >> > > > > > >> > >> > > > > > >> > > LOL! So sorry to hear that. Yeah, it's definitely >> possible >> > > to >> > > > > mess >> > > > > > >> > > things up badly. If I'm doing something particularly >> risky, >> > > > I'll >> > > > > > just >> > > > > > >> > "git >> > > > > > >> > > branch original" before I start, so as to leave a branc= h >> > > pointer >> > > > > at >> > > > > > my >> > > > > > >> > > start point as a safe recovery if it goes south. I als= o >> use >> > > > gitk >> > > > > to >> > > > > > >> > > visualize sometimes. >> > > > > > >> > > >> > > > > > >> > > Another major selling point for rebase (-i) is that it'= s >> > > > *really* >> > > > > > >> hard to >> > > > > > >> > > merge the wrong branch. If the list of commits that >> comes >> > up >> > > > > > doesn't >> > > > > > >> > look >> > > > > > >> > > basically correct, you probably did something wrong-- >> trying >> > > to >> > > > > > rebase >> > > > > > >> > onto >> > > > > > >> > > the wrong branch will give you tons of commits, most of >> > which >> > > > > aren't >> > > > > > >> > yours. >> > > > > > >> > > >> > > > > > >> > > I think what you've been doing is fine, it's definitely >> the >> > > > right >> > > > > > >> > approach >> > > > > > >> > > if you're doing a merge strategy! I've just ended up >> > > > gravitating >> > > > > > to a >> > > > > > >> > > rebase strategy over the years for the reasons I've >> > mentioned. >> > > > > > >> > > >> > > > > > >> > > On Mon, Aug 24, 2015 at 12:43 PM, Jordan Zimmerman < >> > > > > > >> > > jordan@jordanzimmerman.com> wrote: >> > > > > > >> > > >> > > > > > >> > >> I=E2=80=99ll admit that rebase terrifies me. I=E2=80= =99ve f=E2=80=99d up several >> > > > projects >> > > > > > >> with >> > > > > > >> > it >> > > > > > >> > >> so I can=E2=80=99t even type the letters without break= ing into a >> > > sweat. >> > > > > > "git >> > > > > > >> > rebase >> > > > > > >> > >> -i=E2=80=9D is a lot safer, though. Here=E2=80=99s wha= t I=E2=80=99ve been doing >> - >> > let >> > > > me >> > > > > > >> know if >> > > > > > >> > >> it=E2=80=99s OK. For branches that are off of CURATOR-= 3.0, I >> never >> > > > merge >> > > > > > >> > master. I >> > > > > > >> > >> only merge CURATOR-3.0: =E2=80=9Cgit merge CURATOR-3.0= =E2=80=9D. In >> fact, >> > > > should >> > > > > we >> > > > > > >> > have a >> > > > > > >> > >> branch naming scheme to enforce this? >> > > > > > >> > >> >> > > > > > >> > >> -Jordan >> > > > > > >> > >> >> > > > > > >> > >> >> > > > > > >> > >> >> > > > > > >> > >> On August 24, 2015 at 11:30:50 AM, Scott Blum ( >> > > > > > >> dragonsinth@apache.org) >> > > > > > >> > >> wrote: >> > > > > > >> > >> >> > > > > > >> > >> Correct. When I say "main" branch vs. "feature" branch= I >> > just >> > > > > mean >> > > > > > >> the >> > > > > > >> > >> stable branch everyone is working against (3.0 or >> master) >> > > vs. a >> > > > > > >> feature >> > > > > > >> > >> branch where you're actively working. >> > > > > > >> > >> >> > > > > > >> > >> You'll get to a point in development where you'll thin= k >> > "Hey, >> > > > > there >> > > > > > >> are >> > > > > > >> > >> changes on the main branch I'm working against that I >> > really >> > > > need >> > > > > > to >> > > > > > >> > pull >> > > > > > >> > >> into my feature branch." At that point (particularly i= f >> you >> > > > have >> > > > > an >> > > > > > >> svn >> > > > > > >> > >> background) you'll be tempted to merge the main branch >> into >> > > > your >> > > > > > >> feature >> > > > > > >> > >> branch. I would suggest not doing that, as it makes th= e >> > > history >> > > > > > very >> > > > > > >> > muddy >> > > > > > >> > >> to follow. Instead, my workflow is usually more like >> this: >> > > > > > >> > >> >> > > > > > >> > >> Suppose I'm working on CURATOR-218. It was originally >> > > branched >> > > > > off >> > > > > > >> 3.0, >> > > > > > >> > >> and I want to pull in new changes. >> > > > > > >> > >> >> > > > > > >> > >> git remote update >> > > > > > >> > >> git rebase -i origin/CURATOR-3.0 >> > > > > > >> > >> >> > > > > > >> > >> This pulls up an editor that gives me the list of >> commits >> > to >> > > > > > rebase. >> > > > > > >> I >> > > > > > >> > >> would typically exit out of the editor to at this poin= t >> to >> > > > accept >> > > > > > the >> > > > > > >> > >> commit list, but if I'm so inclined, I'll do things li= ke >> > > > reorder >> > > > > > the >> > > > > > >> > list, >> > > > > > >> > >> or squash commits like like "wip" or "minor reformat" >> into >> > a >> > > > more >> > > > > > >> > curated >> > > > > > >> > >> set of logical commits. >> > > > > > >> > >> >> > > > > > >> > >> Once you exit the editor, git goes through and applies >> each >> > > > > commit, >> > > > > > >> one >> > > > > > >> > at >> > > > > > >> > >> a time, to the head of the target branch. It's like >> picking >> > > up >> > > > > your >> > > > > > >> > commit >> > > > > > >> > >> chain and dumping it at the end of the target branch, >> as if >> > > all >> > > > > > your >> > > > > > >> > work >> > > > > > >> > >> had been done against what's now the head of that >> branch. >> > > > You'll >> > > > > > may >> > > > > > >> > have >> > > > > > >> > >> to fix conflicts along the way, but usually not much >> more >> > > than >> > > > if >> > > > > > you >> > > > > > >> > did >> > > > > > >> > >> it as a merge. >> > > > > > >> > >> >> > > > > > >> > >> I'd encourage us to try this out a couple times and ge= t >> a >> > > feel >> > > > > for >> > > > > > >> the >> > > > > > >> > >> rebase flow. It's a little more to get your head aroun= d >> at >> > > > first, >> > > > > > but >> > > > > > >> > the >> > > > > > >> > >> upside is you end up with really easy to follow commit >> > > > histories, >> > > > > > >> which >> > > > > > >> > >> makes it way easier to untangle problems later if they >> crop >> > > up. >> > > > > > >> > >> >> > > > > > >> > >> On Mon, Aug 24, 2015 at 12:17 PM, Jordan Zimmerman < >> > > > > > >> > >> jordan@jordanzimmerman.com> wrote: >> > > > > > >> > >> >> > > > > > >> > >> > Can you explain this in detail? For me, I have some >> > > features >> > > > > that >> > > > > > >> are >> > > > > > >> > >> > 3.0.0 based so I=E2=80=99m treating CURATOR-3.0 as a= kind of >> > > master. >> > > > > The >> > > > > > >> true >> > > > > > >> > >> > =E2=80=9Cmaster=E2=80=9D is Curator 2.x only, right? >> > > > > > >> > >> > >> > > > > > >> > >> > -Jordan >> > > > > > >> > >> > >> > > > > > >> > >> > >> > > > > > >> > >> > >> > > > > > >> > >> > On August 24, 2015 at 11:10:08 AM, Scott Blum ( >> > > > > > >> dragonsinth@apache.org >> > > > > > >> > ) >> > > > > > >> > >> > wrote: >> > > > > > >> > >> > >> > > > > > >> > >> > BTW: I noticed a couple of new commits >> > > > > > >> > >> > (ba4b5d8cb1f9733d3901b0b619528454d3dbf8c8 >> > > > > > >> > >> > & 2343daf29388566b0efa0b0a2ad21574fb534a27) where 3.= 0 >> is >> > > > > getting >> > > > > > >> > merged >> > > > > > >> > >> > into feature branches. Almost every project I've bee= n >> on >> > we >> > > > > don't >> > > > > > >> tend >> > > > > > >> > >> to >> > > > > > >> > >> > do that as it leads to confusing history (this isn't >> just >> > > > > > >> aesthetic, >> > > > > > >> > it >> > > > > > >> > >> > can >> > > > > > >> > >> > get harder for tooling to figure out what happened). >> If I >> > > > want >> > > > > to >> > > > > > >> pull >> > > > > > >> > >> > changes from the main branch into my feature branch,= I >> > > would >> > > > > > >> typically >> > > > > > >> > >> > *rebase* my feature branch against the main branch. >> > > > > > >> > >> > >> > > > > > >> > >> > On Mon, Aug 24, 2015 at 12:05 PM, Scott Blum < >> > > > > > >> dragonsinth@apache.org> >> > > > > > >> > >> > wrote: >> > > > > > >> > >> > >> > > > > > >> > >> > > Yeah, 217 & 161 were the first two big things in >> 3.0. >> > > > > > >> > >> > > >> > > > > > >> > >> > > On Mon, Aug 24, 2015 at 9:53 AM, Jordan Zimmerman = < >> > > > > > >> > >> > > jordan@jordanzimmerman.com> wrote: >> > > > > > >> > >> > > >> > > > > > >> > >> > >> OK - Also, is CURATOR-161 complete? The issue is >> still >> > > > open >> > > > > in >> > > > > > >> > Jira. >> > > > > > >> > >> > >> >> > > > > > >> > >> > >> >> > > > > > >> > >> > >> >> > > > > > >> > >> > >> On August 24, 2015 at 12:47:21 AM, Cameron >> McKenzie ( >> > > > > > >> > >> > >> mckenzie.cam@gmail.com) wrote: >> > > > > > >> > >> > >> >> > > > > > >> > >> > >> Yes, I merged it in last week some time. >> > > > > > >> > >> > >> >> > > > > > >> > >> > >> On Mon, Aug 24, 2015 at 3:25 PM, Jordan Zimmerman= < >> > > > > > >> > >> > >> jordan@jordanzimmerman.com> wrote: >> > > > > > >> > >> > >> >> > > > > > >> > >> > >> > Scott, did CURATOR-217 get merged into the new >> > > > > CURATOR-3.0? >> > > > > > >> > >> > >> > >> > > > > > >> > >> > >> > -Jordan >> > > > > > >> > >> > >> > >> > > > > > >> > >> > >> > >> > > > > > >> > >> > >> > >> > > > > > >> > >> > >> >> > > > > > >> > >> > > >> > > > > > >> > >> > > >> > > > > > >> > >> > >> > > > > > >> > >> > >> > > > > > >> > >> >> > > > > > >> > > >> > > > > > >> > > >> > > > > > >> > >> > > > > > >> >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > > --001a1135f6a01f2bce051e2ae96a--