PR reviews

2020-02-25 Thread Mario Ivanac
Hi geode dev,

please could someone review PRs:


  *   https://github.com/apache/geode/pull/4711

  *   https://github.com/apache/geode/pull/4719

Thanks,
Mario


Re: [DISCUSS] Prevent locator startup if startup/restart thread throws an uncaught exception

2020-02-25 Thread Bruce Schuchardt
I think that sounds reasonable.  There are two threads involved - the 
ReconnectThread, which is running InternalDistributedSystem.reconnect(), and 
the Location Services Restart Thread, which is running code in InternalLocator. 
 If one of them gives up it ought to stop the other one as well and make the 
process exit via, I guess, LocatorLauncher code.

On 2/21/20, 10:42 AM, "Dale Emery"  wrote:

I would like to consider preventing locator startup if a startup or restart 
thread throws an uncaught exception. Otherwise, the cluster can include a 
locator that lacks critical services. We have created 
https://issues.apache.org/jira/browse/GEODE-7775 
 to address this.

We recently observed a serious problem in a user's Geode cluster. The 
problem was enabled by a restart thread's policy of catching uncaught 
exceptions, logging them as "fatal," then exiting the thread without further 
action.

Here's how the problem happened:

The cluster had 3 locators and 4 servers. An NPE occurred in the "Location 
services restart thread" while a locator was restarting. The thread logged the 
NPE and exited, having never started the configuration persistence service. 
This incomplete locator then joined the cluster.

The user then issued numerous gfsh commands to create, destroy, and 
re-create regions, routing each gfsh command to a different locator in 
round-robin fashion.

Approximately a third of the commands were executed via the incomplete 
locator. Though the commands properly created or destroyed the regions, these 
results were never recorded in the persisted configuration. As a result, the 
persisted configuration was missing definitions for a third of the regions, and 
had duplicate or even triplicate definitions for others.

When the user tried to restart a server, the server detected that the 
persisted configuration was invalid and refused to start.

We have fixed the NPE that initially triggered the problem.

We still have a vulnerability: If in the future a startup/restart thread 
suffers some other exception before it finishes starting its services, the 
thread will log it and exit, allowing the incomplete locator to join the 
cluster.

Some things I don't know:
- What was the reason for instituting the LoggingThread's policy of logging 
exceptions as "fatal" and otherwise ignoring them?
- In which threads should uncaught exceptions prevent startup?
- In which threads should uncaught exceptions be logged and ignored?

Cheers,
Dale

—
Dale Emery
dem...@pivotal.io
dem...@vmware.com






Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread Anthony Baker
Here’s a couple things I’d like to avoid:

1) Issuing a patch release for every single commit that we back port onto a 
supported minor version.  This seems like a high cost approach.  Of course, 
some issues may be important enough to require that.

2) Merging a change to develop, and then having to come back weeks later and 
back porting the change to a release branch.  It just seems less optimal since 
I’ll have lost the context on the changes, particularly if the cherry-pick is 
non-trivial.

More comments below.

Anthony


> On Feb 24, 2020, at 2:16 PM, Owen Nichols  wrote:
> 
> Hi Alexander, currently we don’t start a patch release until someone proposes 
> a critical fix, which then drives the release (the community may propose 
> “extra” fixes to tag along once a release branch is cut).  This keeps the 
> process simple, neat and tidy.
> 
> Another option I hadn’t thought of is to begin collecting “extra” fixes 
> proactively on a “dormant” branch, so that when someone finally proposes 
> releasing a patch, it will already be primed with a bunch of fixes.  This 
> adds complexity (does a different standard apply to bring fixes to a dormant 
> branch?  Are release branches separate from support branches?  How will 
> committers be able to keep track of what is dormant and what is not?)
> 

Why not just either a) keep the release branch alive? Or b) create a support 
branch from the release tag?

> To implement an N-2 support policy, does it make more sense for Geode to make 
> small focused patch releases when needed, or to maintain what amounts to “3 
> develop branches at all times”?
> 

To me, “develop branch” implies ongoing work.  I’m proposing “support branch” 
which means only important changes agreed upon by the project community.


> 
>> On Feb 24, 2020, at 11:00 AM, Alexander Murmann  wrote:
>> 
>> Thanks for proposing this, Anthony!
>> 
>> 
>>> I don’t think it’s necessary for this proposal to re-define or clarify
>>> what constitutes a critical fix; it sounds like the bar would be the same
>>> as the standard we already apply when back-porting to release branches
>>> (proposal /w justification, and 3 votes in favor).  The only difference
>>> seems to be that now proposals may list up to three target branches, not
>>> just one.
>>> 
>> re: Owen
>> TL;DR: +1 using the same process as we use for merging critical fixes
>> during an ongoing release seems appropriate.
>> 
>> Generally merging a fix to a dormant release branch seems less problematic
>> than merging a fix to an active release branch where a merge will reset all
>> release work that has already happened. The cost of merging to a
>> dormant release branch is much lower than merging to one that's being
>> actively released. Ideally we could just do a PR to merge fixes back in
>> most cases. Unfortunately, I believe it's unreasonable to expect that
>> everyone will be aware at all times what's actively being released and
>> what's not => Let's pretend we are always shipping these branches.
>> 
>> 
>> 
>> 
>> On Fri, Feb 21, 2020 at 7:35 PM Owen Nichols  wrote:
>> 
>>> Thank you Anthony for proposing this “N-2” support policy.  It isn’t a big
>>> change, but it is helpful to know that the Geode PMC will now be standing
>>> behind (and ready to vote on) patch releases within a 9-month window.
>>> 
>>> Overall, this sounds much like how 1.9.1 and 1.9.2 started as community
>>> proposals, found a release manager, and went on to be successfully released.
>>> 
>>> I don’t think it’s necessary for this proposal to re-define or clarify
>>> what constitutes a critical fix; it sounds like the bar would be the same
>>> as the standard we already apply when back-porting to release branches
>>> (proposal /w justification, and 3 votes in favor).  The only difference
>>> seems to be that now proposals may list up to three target branches, not
>>> just one.
>>> 
>>> I also don’t think it’s necessary to alter our current process to maintain
>>> a standing "support/x.y" branch.  The proposal states that patch releases
>>> will be “ad-hoc (as needed)”.  Our current process serves this quite well:
>>> we propose a patch release at the time it is needed, then get a release
>>> manager and create a release branch specifically for that release (e.g.
>>> release/1.9.2 was created from the rel/v1.9.1 tag), then clean up
>>> afterwards so no unattended pipelines or branches linger.
>>> 
>>> The rotating release manager role has been a hallmark of the Geode
>>> community process, so I hope this proposal will not dissuade anyone
>>> interested in helping with a release.  However, getting the automation
>>> improvements we need will require some continuity over several releases.  I
>>> would love to volunteer for this!
>>> 
>>> -Owen
>>> 
 On Feb 21, 2020, at 5:30 PM, Anthony Baker  wrote:
 
 Hi everyone,
 
 I'd like to propose shipping patch releases of Geode as a way to
 improve our engagement and support of our user community.  Please

Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread Dave Barnes
The proposal mentions "semi-permanent community release managers".
Assuming that a patch release is simpler than a full release, these patch
releases might serve well as training opportunities for first-time release
managers.
+1 if that's the case.

On Tue, Feb 25, 2020 at 9:29 AM Anthony Baker  wrote:

> Here’s a couple things I’d like to avoid:
>
> 1) Issuing a patch release for every single commit that we back port onto
> a supported minor version.  This seems like a high cost approach.  Of
> course, some issues may be important enough to require that.
>
> 2) Merging a change to develop, and then having to come back weeks later
> and back porting the change to a release branch.  It just seems less
> optimal since I’ll have lost the context on the changes, particularly if
> the cherry-pick is non-trivial.
>
> More comments below.
>
> Anthony
>
>
> > On Feb 24, 2020, at 2:16 PM, Owen Nichols  wrote:
> >
> > Hi Alexander, currently we don’t start a patch release until someone
> proposes a critical fix, which then drives the release (the community may
> propose “extra” fixes to tag along once a release branch is cut).  This
> keeps the process simple, neat and tidy.
> >
> > Another option I hadn’t thought of is to begin collecting “extra” fixes
> proactively on a “dormant” branch, so that when someone finally proposes
> releasing a patch, it will already be primed with a bunch of fixes.  This
> adds complexity (does a different standard apply to bring fixes to a
> dormant branch?  Are release branches separate from support branches?  How
> will committers be able to keep track of what is dormant and what is not?)
> >
>
> Why not just either a) keep the release branch alive? Or b) create a
> support branch from the release tag?
>
> > To implement an N-2 support policy, does it make more sense for Geode to
> make small focused patch releases when needed, or to maintain what amounts
> to “3 develop branches at all times”?
> >
>
> To me, “develop branch” implies ongoing work.  I’m proposing “support
> branch” which means only important changes agreed upon by the project
> community.
>
>
> >
> >> On Feb 24, 2020, at 11:00 AM, Alexander Murmann 
> wrote:
> >>
> >> Thanks for proposing this, Anthony!
> >>
> >>
> >>> I don’t think it’s necessary for this proposal to re-define or clarify
> >>> what constitutes a critical fix; it sounds like the bar would be the
> same
> >>> as the standard we already apply when back-porting to release branches
> >>> (proposal /w justification, and 3 votes in favor).  The only difference
> >>> seems to be that now proposals may list up to three target branches,
> not
> >>> just one.
> >>>
> >> re: Owen
> >> TL;DR: +1 using the same process as we use for merging critical fixes
> >> during an ongoing release seems appropriate.
> >>
> >> Generally merging a fix to a dormant release branch seems less
> problematic
> >> than merging a fix to an active release branch where a merge will reset
> all
> >> release work that has already happened. The cost of merging to a
> >> dormant release branch is much lower than merging to one that's being
> >> actively released. Ideally we could just do a PR to merge fixes back in
> >> most cases. Unfortunately, I believe it's unreasonable to expect that
> >> everyone will be aware at all times what's actively being released and
> >> what's not => Let's pretend we are always shipping these branches.
> >>
> >>
> >>
> >>
> >> On Fri, Feb 21, 2020 at 7:35 PM Owen Nichols 
> wrote:
> >>
> >>> Thank you Anthony for proposing this “N-2” support policy.  It isn’t a
> big
> >>> change, but it is helpful to know that the Geode PMC will now be
> standing
> >>> behind (and ready to vote on) patch releases within a 9-month window.
> >>>
> >>> Overall, this sounds much like how 1.9.1 and 1.9.2 started as community
> >>> proposals, found a release manager, and went on to be successfully
> released.
> >>>
> >>> I don’t think it’s necessary for this proposal to re-define or clarify
> >>> what constitutes a critical fix; it sounds like the bar would be the
> same
> >>> as the standard we already apply when back-porting to release branches
> >>> (proposal /w justification, and 3 votes in favor).  The only difference
> >>> seems to be that now proposals may list up to three target branches,
> not
> >>> just one.
> >>>
> >>> I also don’t think it’s necessary to alter our current process to
> maintain
> >>> a standing "support/x.y" branch.  The proposal states that patch
> releases
> >>> will be “ad-hoc (as needed)”.  Our current process serves this quite
> well:
> >>> we propose a patch release at the time it is needed, then get a release
> >>> manager and create a release branch specifically for that release (e.g.
> >>> release/1.9.2 was created from the rel/v1.9.1 tag), then clean up
> >>> afterwards so no unattended pipelines or branches linger.
> >>>
> >>> The rotating release manager role has been a hallmark of the Geode
> >>> community process, so I hope this proposal 

Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread Owen Nichols
These concerns make sense.  We could satisfy them within our existing 
“on-demand” process:

1) the first time there is a change to backport to support branches, propose 
the patch release.  Now we have a branch.  Decide as a community how urgently 
it needs to be released vs how long to hold it open for other potential fixes.

Or, we could emphasize the shift in process with bigger changes:
i. Instead of cutting "release/1.13.0" on May 4, we could instead cut 
"support/1.13"
ii instead of creating "apache-release-1-13-0-main" pipeline, we would instead 
create "apache-release-1-13-main"
iii. Instead of cleaning up the pipeline and branch after 1.13.0 was released, 
we could keep it around for 9 months and re-use it for collecting patches and 
making patch releases during that time.

The community process around deciding how long to gather fixes before shipping 
a patch release isn’t any easier either way.

One advantage of our current process is that a release doesn’t happen until 
someone volunteers to make it happen.  We can do as many or as few patch 
releases as the community is willing -- a release always has a champion.  

I would like to see more discussion on the community impact of increasing the 
commitment required of a release manager.  In the short term it would be good 
for Geode to have someone focused on improving the release process for a longer 
period of time than a single release.  But in the long term, people may be less 
likely to volunteer, and release experience will be concentrated in fewer 
members of the community...


> On Feb 25, 2020, at 9:29 AM, Anthony Baker  wrote:
> 
> Here’s a couple things I’d like to avoid:
> 
> 1) Issuing a patch release for every single commit that we back port onto a 
> supported minor version.  This seems like a high cost approach.  Of course, 
> some issues may be important enough to require that.
> 
> 2) Merging a change to develop, and then having to come back weeks later and 
> back porting the change to a release branch.  It just seems less optimal 
> since I’ll have lost the context on the changes, particularly if the 
> cherry-pick is non-trivial.
> 
> More comments below.
> 
> Anthony
> 
> 
>> On Feb 24, 2020, at 2:16 PM, Owen Nichols  wrote:
>> 
>> Hi Alexander, currently we don’t start a patch release until someone 
>> proposes a critical fix, which then drives the release (the community may 
>> propose “extra” fixes to tag along once a release branch is cut).  This 
>> keeps the process simple, neat and tidy.
>> 
>> Another option I hadn’t thought of is to begin collecting “extra” fixes 
>> proactively on a “dormant” branch, so that when someone finally proposes 
>> releasing a patch, it will already be primed with a bunch of fixes.  This 
>> adds complexity (does a different standard apply to bring fixes to a dormant 
>> branch?  Are release branches separate from support branches?  How will 
>> committers be able to keep track of what is dormant and what is not?)
>> 
> 
> Why not just either a) keep the release branch alive? Or b) create a support 
> branch from the release tag?
> 
>> To implement an N-2 support policy, does it make more sense for Geode to 
>> make small focused patch releases when needed, or to maintain what amounts 
>> to “3 develop branches at all times”?
>> 
> 
> To me, “develop branch” implies ongoing work.  I’m proposing “support branch” 
> which means only important changes agreed upon by the project community.
> 
> 
>> 
>>> On Feb 24, 2020, at 11:00 AM, Alexander Murmann  wrote:
>>> 
>>> Thanks for proposing this, Anthony!
>>> 
>>> 
 I don’t think it’s necessary for this proposal to re-define or clarify
 what constitutes a critical fix; it sounds like the bar would be the same
 as the standard we already apply when back-porting to release branches
 (proposal /w justification, and 3 votes in favor).  The only difference
 seems to be that now proposals may list up to three target branches, not
 just one.
 
>>> re: Owen
>>> TL;DR: +1 using the same process as we use for merging critical fixes
>>> during an ongoing release seems appropriate.
>>> 
>>> Generally merging a fix to a dormant release branch seems less problematic
>>> than merging a fix to an active release branch where a merge will reset all
>>> release work that has already happened. The cost of merging to a
>>> dormant release branch is much lower than merging to one that's being
>>> actively released. Ideally we could just do a PR to merge fixes back in
>>> most cases. Unfortunately, I believe it's unreasonable to expect that
>>> everyone will be aware at all times what's actively being released and
>>> what's not => Let's pretend we are always shipping these branches.
>>> 
>>> 
>>> 
>>> 
>>> On Fri, Feb 21, 2020 at 7:35 PM Owen Nichols  wrote:
>>> 
 Thank you Anthony for proposing this “N-2” support policy.  It isn’t a big
 change, but it is helpful to know that the Geode PMC will now be standing
 behind (and r

Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread Alexander Murmann
>
> Or, we could emphasize the shift in process with bigger changes:
> i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
> "support/1.13"
> ii instead of creating "apache-release-1-13-0-main" pipeline, we would
> instead create "apache-release-1-13-main"
> iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
> released, we could keep it around for 9 months and re-use it for collecting
> patches and making patch releases during that time.
>
+1 I cannot see any argument against cutting a release branch for the minor
version and keeping it around.

The community process around deciding how long to gather fixes before
> shipping a patch release isn’t any easier either way.

How about we wait for someone to call out the need to ship a patch release.  At
that point we use the rule of thumb "aim for no more than 1 patch release
per minor per month" to guide our community discussion.

I would like to see more discussion on the community impact of increasing
> the commitment required of a release manager.  In the short term it would
> be good for Geode to have someone focused on improving the release process
> for a longer period of time than a single release.  But in the long term,
> people may be less likely to volunteer, and release experience will be
> concentrated in fewer members of the community...

Are there more things that could be automated? When I filled the role ~1
year ago there was lots of copying and pasting of scripts and I even wrote
one to help validate fixVersions. Although release process automation
should probably be taken to a different discussion, since it's mostly
separate form Anthony's proposal.


On Tue, Feb 25, 2020 at 11:06 AM Owen Nichols  wrote:

> These concerns make sense.  We could satisfy them within our existing
> “on-demand” process:
>
> 1) the first time there is a change to backport to support branches,
> propose the patch release.  Now we have a branch.  Decide as a community
> how urgently it needs to be released vs how long to hold it open for other
> potential fixes.
>
> Or, we could emphasize the shift in process with bigger changes:
> i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
> "support/1.13"
> ii instead of creating "apache-release-1-13-0-main" pipeline, we would
> instead create "apache-release-1-13-main"
> iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
> released, we could keep it around for 9 months and re-use it for collecting
> patches and making patch releases during that time.
>
> The community process around deciding how long to gather fixes before
> shipping a patch release isn’t any easier either way.
>
> One advantage of our current process is that a release doesn’t happen
> until someone volunteers to make it happen.  We can do as many or as few
> patch releases as the community is willing -- a release always has a
> champion.
>
> I would like to see more discussion on the community impact of increasing
> the commitment required of a release manager.  In the short term it would
> be good for Geode to have someone focused on improving the release process
> for a longer period of time than a single release.  But in the long term,
> people may be less likely to volunteer, and release experience will be
> concentrated in fewer members of the community...
>
>
> > On Feb 25, 2020, at 9:29 AM, Anthony Baker  wrote:
> >
> > Here’s a couple things I’d like to avoid:
> >
> > 1) Issuing a patch release for every single commit that we back port
> onto a supported minor version.  This seems like a high cost approach.  Of
> course, some issues may be important enough to require that.
> >
> > 2) Merging a change to develop, and then having to come back weeks later
> and back porting the change to a release branch.  It just seems less
> optimal since I’ll have lost the context on the changes, particularly if
> the cherry-pick is non-trivial.
> >
> > More comments below.
> >
> > Anthony
> >
> >
> >> On Feb 24, 2020, at 2:16 PM, Owen Nichols  wrote:
> >>
> >> Hi Alexander, currently we don’t start a patch release until someone
> proposes a critical fix, which then drives the release (the community may
> propose “extra” fixes to tag along once a release branch is cut).  This
> keeps the process simple, neat and tidy.
> >>
> >> Another option I hadn’t thought of is to begin collecting “extra” fixes
> proactively on a “dormant” branch, so that when someone finally proposes
> releasing a patch, it will already be primed with a bunch of fixes.  This
> adds complexity (does a different standard apply to bring fixes to a
> dormant branch?  Are release branches separate from support branches?  How
> will committers be able to keep track of what is dormant and what is not?)
> >>
> >
> > Why not just either a) keep the release branch alive? Or b) create a
> support branch from the release tag?
> >
> >> To implement an N-2 support policy, does it make more sense for Geode
> to make small focused patch

Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread John Blum
Real quick thought... IMO:

1. There should be patch (maintenance) releases for each major.minor, up to
N-2 for a set period of time (e.g. 1.5 years), or until N-2 becomes N-3
where N-3 is no longer supported.
2. All important changes should be backported.  I say "important" loosely
since that should be decided by the community, but in general, that means
Blocker, Critical, Security fixes or other changes that can impact the
contract, functionality or proper behavior of Apache Geode in whatever
context.
3. Patch (maintenance) releases should occur at a regular, "predictable"
intervals (e.g. every 6 weeks), not on an adhoc basis.

$0.02
-John


On Tue, Feb 25, 2020 at 11:23 AM Alexander Murmann 
wrote:

> >
> > Or, we could emphasize the shift in process with bigger changes:
> > i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
> > "support/1.13"
> > ii instead of creating "apache-release-1-13-0-main" pipeline, we would
> > instead create "apache-release-1-13-main"
> > iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
> > released, we could keep it around for 9 months and re-use it for
> collecting
> > patches and making patch releases during that time.
> >
> +1 I cannot see any argument against cutting a release branch for the minor
> version and keeping it around.
>
> The community process around deciding how long to gather fixes before
> > shipping a patch release isn’t any easier either way.
>
> How about we wait for someone to call out the need to ship a patch
> release.  At
> that point we use the rule of thumb "aim for no more than 1 patch release
> per minor per month" to guide our community discussion.
>
> I would like to see more discussion on the community impact of increasing
> > the commitment required of a release manager.  In the short term it would
> > be good for Geode to have someone focused on improving the release
> process
> > for a longer period of time than a single release.  But in the long term,
> > people may be less likely to volunteer, and release experience will be
> > concentrated in fewer members of the community...
>
> Are there more things that could be automated? When I filled the role ~1
> year ago there was lots of copying and pasting of scripts and I even wrote
> one to help validate fixVersions. Although release process automation
> should probably be taken to a different discussion, since it's mostly
> separate form Anthony's proposal.
>
>
> On Tue, Feb 25, 2020 at 11:06 AM Owen Nichols  wrote:
>
> > These concerns make sense.  We could satisfy them within our existing
> > “on-demand” process:
> >
> > 1) the first time there is a change to backport to support branches,
> > propose the patch release.  Now we have a branch.  Decide as a community
> > how urgently it needs to be released vs how long to hold it open for
> other
> > potential fixes.
> >
> > Or, we could emphasize the shift in process with bigger changes:
> > i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
> > "support/1.13"
> > ii instead of creating "apache-release-1-13-0-main" pipeline, we would
> > instead create "apache-release-1-13-main"
> > iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
> > released, we could keep it around for 9 months and re-use it for
> collecting
> > patches and making patch releases during that time.
> >
> > The community process around deciding how long to gather fixes before
> > shipping a patch release isn’t any easier either way.
> >
> > One advantage of our current process is that a release doesn’t happen
> > until someone volunteers to make it happen.  We can do as many or as few
> > patch releases as the community is willing -- a release always has a
> > champion.
> >
> > I would like to see more discussion on the community impact of increasing
> > the commitment required of a release manager.  In the short term it would
> > be good for Geode to have someone focused on improving the release
> process
> > for a longer period of time than a single release.  But in the long term,
> > people may be less likely to volunteer, and release experience will be
> > concentrated in fewer members of the community...
> >
> >
> > > On Feb 25, 2020, at 9:29 AM, Anthony Baker  wrote:
> > >
> > > Here’s a couple things I’d like to avoid:
> > >
> > > 1) Issuing a patch release for every single commit that we back port
> > onto a supported minor version.  This seems like a high cost approach.
> Of
> > course, some issues may be important enough to require that.
> > >
> > > 2) Merging a change to develop, and then having to come back weeks
> later
> > and back porting the change to a release branch.  It just seems less
> > optimal since I’ll have lost the context on the changes, particularly if
> > the cherry-pick is non-trivial.
> > >
> > > More comments below.
> > >
> > > Anthony
> > >
> > >
> > >> On Feb 24, 2020, at 2:16 PM, Owen Nichols 
> wrote:
> > >>
> > >> Hi Alexander, currently we don’t start a patch 

Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread Alexander Murmann
Hi John,

I think what you are calling out in 1. and 2. matches what was discussed in
the proposal and thread. Please call out if you disagree on a detail.

What's your reasoning behind 3?
I see little reason to ship a patch release (which is significant work) if
there was no important fix.
Likewise I am concerned about waiting to ship a critical fix to our users
or leave them with gaping security vulnerabilities when we have a fix, but
the next patch release train doesn't depart for several weeks.

On Tue, Feb 25, 2020 at 11:41 AM John Blum  wrote:

> Real quick thought... IMO:
>
> 1. There should be patch (maintenance) releases for each major.minor, up to
> N-2 for a set period of time (e.g. 1.5 years), or until N-2 becomes N-3
> where N-3 is no longer supported.
> 2. All important changes should be backported.  I say "important" loosely
> since that should be decided by the community, but in general, that means
> Blocker, Critical, Security fixes or other changes that can impact the
> contract, functionality or proper behavior of Apache Geode in whatever
> context.
> 3. Patch (maintenance) releases should occur at a regular, "predictable"
> intervals (e.g. every 6 weeks), not on an adhoc basis.
>
> $0.02
> -John
>
>
> On Tue, Feb 25, 2020 at 11:23 AM Alexander Murmann 
> wrote:
>
> > >
> > > Or, we could emphasize the shift in process with bigger changes:
> > > i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
> > > "support/1.13"
> > > ii instead of creating "apache-release-1-13-0-main" pipeline, we would
> > > instead create "apache-release-1-13-main"
> > > iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
> > > released, we could keep it around for 9 months and re-use it for
> > collecting
> > > patches and making patch releases during that time.
> > >
> > +1 I cannot see any argument against cutting a release branch for the
> minor
> > version and keeping it around.
> >
> > The community process around deciding how long to gather fixes before
> > > shipping a patch release isn’t any easier either way.
> >
> > How about we wait for someone to call out the need to ship a patch
> > release.  At
> > that point we use the rule of thumb "aim for no more than 1 patch release
> > per minor per month" to guide our community discussion.
> >
> > I would like to see more discussion on the community impact of increasing
> > > the commitment required of a release manager.  In the short term it
> would
> > > be good for Geode to have someone focused on improving the release
> > process
> > > for a longer period of time than a single release.  But in the long
> term,
> > > people may be less likely to volunteer, and release experience will be
> > > concentrated in fewer members of the community...
> >
> > Are there more things that could be automated? When I filled the role ~1
> > year ago there was lots of copying and pasting of scripts and I even
> wrote
> > one to help validate fixVersions. Although release process automation
> > should probably be taken to a different discussion, since it's mostly
> > separate form Anthony's proposal.
> >
> >
> > On Tue, Feb 25, 2020 at 11:06 AM Owen Nichols 
> wrote:
> >
> > > These concerns make sense.  We could satisfy them within our existing
> > > “on-demand” process:
> > >
> > > 1) the first time there is a change to backport to support branches,
> > > propose the patch release.  Now we have a branch.  Decide as a
> community
> > > how urgently it needs to be released vs how long to hold it open for
> > other
> > > potential fixes.
> > >
> > > Or, we could emphasize the shift in process with bigger changes:
> > > i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
> > > "support/1.13"
> > > ii instead of creating "apache-release-1-13-0-main" pipeline, we would
> > > instead create "apache-release-1-13-main"
> > > iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
> > > released, we could keep it around for 9 months and re-use it for
> > collecting
> > > patches and making patch releases during that time.
> > >
> > > The community process around deciding how long to gather fixes before
> > > shipping a patch release isn’t any easier either way.
> > >
> > > One advantage of our current process is that a release doesn’t happen
> > > until someone volunteers to make it happen.  We can do as many or as
> few
> > > patch releases as the community is willing -- a release always has a
> > > champion.
> > >
> > > I would like to see more discussion on the community impact of
> increasing
> > > the commitment required of a release manager.  In the short term it
> would
> > > be good for Geode to have someone focused on improving the release
> > process
> > > for a longer period of time than a single release.  But in the long
> term,
> > > people may be less likely to volunteer, and release experience will be
> > > concentrated in fewer members of the community...
> > >
> > >
> > > > On Feb 25, 2020, at 9:29 

Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread Udo Kohlmeyer
From the proposal it seems we are departing from the initial delivery 
paradigm of "always upgrade to the latest version, because all fixes are 
going in there", to the more product orientated approach of, there is a 
support lifespan for each {major}-{minor} version. Which is a more 
traditional product approach.


Is there a specific reason we advocating for moving away from "the fix 
will be in the latest release X:Y:Z" ?


The current methodology or the community voting on changes being 
cherry-picked is related to fixes making it into an unreleased version 
of Geode. From the proposal, are we advocating for extra voting "Do we 
include fix GEODE-, into N , N-1 or N-2? " This does seem to be 
something that might be more work for the community, rather than just 
updating to latest RELEASE. Or is the suggestion that closer to each 
release period, a list of candidate tickets are proposed for back 
porting? Or is the back porting and vote on inclusion done based on 
discretion and on a ticket by ticket basis?


With the reduced scope of supported versions, does this also mean we 
reduce scope of backward compatibility testing between versions? i.e can 
we now change our backward compatibility testing to mimic the same 
behavior where we only test compatibility between, HEAD,N,N-1 and N-2?


--Udo

On 2/25/20 11:51 AM, Alexander Murmann wrote:

Hi John,

I think what you are calling out in 1. and 2. matches what was discussed in
the proposal and thread. Please call out if you disagree on a detail.

What's your reasoning behind 3?
I see little reason to ship a patch release (which is significant work) if
there was no important fix.
Likewise I am concerned about waiting to ship a critical fix to our users
or leave them with gaping security vulnerabilities when we have a fix, but
the next patch release train doesn't depart for several weeks.

On Tue, Feb 25, 2020 at 11:41 AM John Blum  wrote:


Real quick thought... IMO:

1. There should be patch (maintenance) releases for each major.minor, up to
N-2 for a set period of time (e.g. 1.5 years), or until N-2 becomes N-3
where N-3 is no longer supported.
2. All important changes should be backported.  I say "important" loosely
since that should be decided by the community, but in general, that means
Blocker, Critical, Security fixes or other changes that can impact the
contract, functionality or proper behavior of Apache Geode in whatever
context.
3. Patch (maintenance) releases should occur at a regular, "predictable"
intervals (e.g. every 6 weeks), not on an adhoc basis.

$0.02
-John


On Tue, Feb 25, 2020 at 11:23 AM Alexander Murmann 
wrote:


Or, we could emphasize the shift in process with bigger changes:
i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
"support/1.13"
ii instead of creating "apache-release-1-13-0-main" pipeline, we would
instead create "apache-release-1-13-main"
iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
released, we could keep it around for 9 months and re-use it for

collecting

patches and making patch releases during that time.


+1 I cannot see any argument against cutting a release branch for the

minor

version and keeping it around.

The community process around deciding how long to gather fixes before

shipping a patch release isn’t any easier either way.

How about we wait for someone to call out the need to ship a patch
release.  At
that point we use the rule of thumb "aim for no more than 1 patch release
per minor per month" to guide our community discussion.

I would like to see more discussion on the community impact of increasing

the commitment required of a release manager.  In the short term it

would

be good for Geode to have someone focused on improving the release

process

for a longer period of time than a single release.  But in the long

term,

people may be less likely to volunteer, and release experience will be
concentrated in fewer members of the community...

Are there more things that could be automated? When I filled the role ~1
year ago there was lots of copying and pasting of scripts and I even

wrote

one to help validate fixVersions. Although release process automation
should probably be taken to a different discussion, since it's mostly
separate form Anthony's proposal.


On Tue, Feb 25, 2020 at 11:06 AM Owen Nichols 

wrote:

These concerns make sense.  We could satisfy them within our existing
“on-demand” process:

1) the first time there is a change to backport to support branches,
propose the patch release.  Now we have a branch.  Decide as a

community

how urgently it needs to be released vs how long to hold it open for

other

potential fixes.

Or, we could emphasize the shift in process with bigger changes:
i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
"support/1.13"
ii instead of creating "apache-release-1-13-0-main" pipeline, we would
instead create "apache-release-1-13-main"
iii. Instead of cleaning up the pipeline an

Re: [DISCUSS] RFC: Shipping Geode patch releases

2020-02-25 Thread John Blum
NOTE: Sorry Udo, you caught me mid-flight in my response to Alexander...

Alexander-

Certainly there are circumstances (e.g. Security vulnerabilites) which may
warrant a patch/maintenance release sooner than 6 weeks, along with other
circumstances may cause a release to take longer than 6 weeks, if
"important" changes, as called out in #2, take a bit longer to complete
than expected.

Sometimes this might be dictated by upstream dependencies as well (e.g.
Apache Lucene).  You should take the 6 week window to mean a general
guideline, and not an absolute, in order to have predictability so users
can plan upgrades, even for patch releases, which is the best interest of
everyone to stay current with.

I would find it unlikely that there would not be a need for regular patches
~every 6 weeks to N, N-1 and N-2 versions.  This is not to say is "always"
going to be "important" changes, but I suspect most of the time, certain
things probably can and should be backported, regardless of "our workload
effort" that I am quite certain our users are not as concerned about.

-j

On Tue, Feb 25, 2020 at 1:42 PM Udo Kohlmeyer  wrote:

>  From the proposal it seems we are departing from the initial delivery
> paradigm of "always upgrade to the latest version, because all fixes are
> going in there", to the more product orientated approach of, there is a
> support lifespan for each {major}-{minor} version. Which is a more
> traditional product approach.
>
> Is there a specific reason we advocating for moving away from "the fix
> will be in the latest release X:Y:Z" ?
>
> The current methodology or the community voting on changes being
> cherry-picked is related to fixes making it into an unreleased version
> of Geode. From the proposal, are we advocating for extra voting "Do we
> include fix GEODE-, into N , N-1 or N-2? " This does seem to be
> something that might be more work for the community, rather than just
> updating to latest RELEASE. Or is the suggestion that closer to each
> release period, a list of candidate tickets are proposed for back
> porting? Or is the back porting and vote on inclusion done based on
> discretion and on a ticket by ticket basis?
>
> With the reduced scope of supported versions, does this also mean we
> reduce scope of backward compatibility testing between versions? i.e can
> we now change our backward compatibility testing to mimic the same
> behavior where we only test compatibility between, HEAD,N,N-1 and N-2?
>
> --Udo
>
> On 2/25/20 11:51 AM, Alexander Murmann wrote:
> > Hi John,
> >
> > I think what you are calling out in 1. and 2. matches what was discussed
> in
> > the proposal and thread. Please call out if you disagree on a detail.
> >
> > What's your reasoning behind 3?
> > I see little reason to ship a patch release (which is significant work)
> if
> > there was no important fix.
> > Likewise I am concerned about waiting to ship a critical fix to our users
> > or leave them with gaping security vulnerabilities when we have a fix,
> but
> > the next patch release train doesn't depart for several weeks.
> >
> > On Tue, Feb 25, 2020 at 11:41 AM John Blum  wrote:
> >
> >> Real quick thought... IMO:
> >>
> >> 1. There should be patch (maintenance) releases for each major.minor,
> up to
> >> N-2 for a set period of time (e.g. 1.5 years), or until N-2 becomes N-3
> >> where N-3 is no longer supported.
> >> 2. All important changes should be backported.  I say "important"
> loosely
> >> since that should be decided by the community, but in general, that
> means
> >> Blocker, Critical, Security fixes or other changes that can impact the
> >> contract, functionality or proper behavior of Apache Geode in whatever
> >> context.
> >> 3. Patch (maintenance) releases should occur at a regular, "predictable"
> >> intervals (e.g. every 6 weeks), not on an adhoc basis.
> >>
> >> $0.02
> >> -John
> >>
> >>
> >> On Tue, Feb 25, 2020 at 11:23 AM Alexander Murmann  >
> >> wrote:
> >>
>  Or, we could emphasize the shift in process with bigger changes:
>  i. Instead of cutting "release/1.13.0" on May 4, we could instead cut
>  "support/1.13"
>  ii instead of creating "apache-release-1-13-0-main" pipeline, we would
>  instead create "apache-release-1-13-main"
>  iii. Instead of cleaning up the pipeline and branch after 1.13.0 was
>  released, we could keep it around for 9 months and re-use it for
> >>> collecting
>  patches and making patch releases during that time.
> 
> >>> +1 I cannot see any argument against cutting a release branch for the
> >> minor
> >>> version and keeping it around.
> >>>
> >>> The community process around deciding how long to gather fixes before
>  shipping a patch release isn’t any easier either way.
> >>> How about we wait for someone to call out the need to ship a patch
> >>> release.  At
> >>> that point we use the rule of thumb "aim for no more than 1 patch
> release
> >>> per minor per month" to guide our community discussion.