You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Guozhang Wang <wa...@gmail.com> on 2017/07/18 22:36:34 UTC

[DISCUSS] 2017 October release planning and release version

Hi all,

With 0.11.0.0 out of the way, I would like to volunteer to be the
release manager
for our next time-based feature release. See https://cwiki.apache.org/
confluence/display/KAFKA/Time+Based+Release+Plan if you missed
previous communication
on time-based releases or need a reminder.

I put together a draft release plan with October 2017 as the release month
(as previously agreed) and a list of KIPs that have already been voted:

https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct
As of today we already have 10 KIPs voted, including 2 merged and 3 with
PRs under review. As we start the process more KIPs are expected to be
added until the KIP freeze date.

In addition to the current release plan, I would also like to propose to
set the release version to 1.0.0. More specifically, we will bump up the
major version from 0.11 to 1.0, and change the semantics of release digits
as:

major.minor.bugfix[.release-candidate]

To be better aligned with software versioning (https://en.wikipedia.org/
wiki/Software_versioning). Moving forward we can use three digits instead
of four in most places that do not require to indicate the rc number. Here
is my motivation:

1) Kafka has significantly evolved from its first Apache release of 0.7.0
(incubating) as a pub-sub messaging system into a distributed streaming
platform that can enable publish / store / process real-time data streams,
with the addition of replication (0.8.0), quota / security support for
multi-tenancy (0.8.2, 0.9.0), Connect and Streams API (0.9.0, 0.10.0), and
most recently the exactly-once support to have the desired
semantics (0.11.0); I think now is a good time to mark the release as a
major milestone in the evolution of Apache Kafka.

2) Some people believe 0.x means that the software is immature or not
stable, or the public APIs may subject to change incompatibly regardless
the fact that Kafka has been widely adopted in productions and the
community has made a great effort on maintaining backward compatibility.
Making Kafka 1.x will help with promoting the project for that perception.

3) Having three digits as of "major.minor.bugfix" is more natural from a
software version understanding pov and aligned with other open source
projects as well.

How do people feel about 1.0.0.x as the next Kafka version? Please share
your thoughts.

-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
Makes sense, have updated the wiki page to use dashes for rc numbers.

Guozhang

On Tue, Jul 25, 2017 at 3:40 AM, Ismael Juma <is...@juma.me.uk> wrote:

> On Tue, Jul 18, 2017 at 4:04 PM, Guozhang Wang <wa...@gmail.com> wrote:
>
> > I was actually thinking about using dot as well for the rc as well moving
> > forward, but I can be convinced if we have some reason to keep it as dash
> > as well.
>
>
> It seems reasonable to use a dash for the RC part as it's a qualifier that
> is never part of an official release. Not a huge deal though.
>
> Ismael
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@juma.me.uk>.
On Tue, Jul 18, 2017 at 4:04 PM, Guozhang Wang <wa...@gmail.com> wrote:

> I was actually thinking about using dot as well for the rc as well moving
> forward, but I can be convinced if we have some reason to keep it as dash
> as well.


It seems reasonable to use a dash for the RC part as it's a qualifier that
is never part of an official release. Not a huge deal though.

Ismael

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
On Tue, Jul 18, 2017 at 3:42 PM, Ismael Juma <is...@juma.me.uk> wrote:

> Hi Guozhang,
>
> Thanks for volunteering to be the release manager for the next release!
>
> I am +1 on naming the next release 1.0.0. As you said, Kafka is mature
> enough and this will make it easier for others to understand our versioning
> policy.
>
> A couple of minor questions inline.
>
> On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com> wrote:
>
> > major.minor.bugfix[.release-candidate]
> >
>
> I think you mean major.minor.bugfix-rc (i.e. we typically use a dash
> instead of dot for the RCx qualifier).
>
>
I was actually thinking about using dot as well for the rc as well moving
forward, but I can be convinced if we have some reason to keep it as dash
as well.


> >
> > How do people feel about 1.0.0.x as the next Kafka version?


> Do you mean 1.0.0?
>
>
Yup. Just 1.0.0.


> Ismael
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@juma.me.uk>.
Thanks Sonke, that's great. I filed an initial JIRA:

https://issues.apache.org/jira/browse/KAFKA-5637

As per our offline conversation, you captured the thread discussion
already, so feel free to flesh out the JIRA.

Ismael

On Mon, Jul 24, 2017 at 8:45 PM, Sönke Liebau <
soenke.liebau@opencore.com.invalid> wrote:

> I am happy to volunteer for working on documenting the release logistics
> and related topics if someone is needed for that part.
>
> Best regards,
> Sönke
>
> Am 24.07.2017 9:28 nachm. schrieb "Guozhang Wang" <wa...@gmail.com>:
>
> > Thanks for everyone who has shared their thoughts and feedbacks to this
> > discussion. Here is my conclusion:
> >
> > 1. So far everyone has agreed on naming the next major release version to
> > 1.0; if I did not hear any other opinions by the end of today PDT time I
> > will name the next release as 1.0.0 and update the release wiki page
> > correspondingly.
> >
> > 2. People have also expressed expectations to some of the release
> logistics
> > while we are releasing 1.0.0, including old version support period,
> upgrade
> > support period, bug fix / security fix backport policies etc. Ismael has
> a
> > detailed summary on these in this email thread and we will look for
> someone
> > to drive the documentation of these in parallel with the 1.0.0 release
> > process.
> >
> >
> > Guozhang
> >
> >
> > On Mon, Jul 24, 2017 at 11:45 AM, Becket Qin <be...@gmail.com>
> wrote:
> >
> > > +1 on 1.0. I think it makes a lot of sense given the point Kafka is
> now.
> > To
> > > me Kafka has absolutely reached 1.0 in terms of features/functions.
> That
> > > said, I do share the same opinion with others that the usablity and
> > > policies might still need some improvement to meet the 1.0 standard.
> > >
> > > On Sat, Jul 22, 2017 at 7:21 AM, Matthias J. Sax <
> matthias@confluent.io>
> > > wrote:
> > >
> > > > I agree with Ismael. If we go for 1.0 (what I do support), we need to
> > > > meet people's expectations and should document all policies and
> > > > guarantees explicitly. We might also consider to support older
> releases
> > > > longer and do bug fix release for older releases, too.
> > > >
> > > > Other projects (like Flink) do a fantastic job with this regard and
> we
> > > > should learn from them.
> > > >
> > > > -Matthias
> > > >
> > > > On 7/21/17 9:50 PM, Guozhang Wang wrote:
> > > > > That's fair enough too.
> > > > >
> > > > > Guozhang
> > > > >
> > > > > On Fri, Jul 21, 2017 at 12:13 PM, Ismael Juma <is...@gmail.com>
> > > wrote:
> > > > >
> > > > >> Yes, I agree that the choice of version number can be done
> > separately.
> > > > >> That's why I said I'd file a separate JIRA for the documentation
> > > > >> improvements. Having said that, there are some expectations that
> > > people
> > > > >> have for projects that have reached 1.0.0 and we should try to
> > > allocate
> > > > >> time for the important ones.
> > > > >>
> > > > >> Ismael
> > > > >>
> > > > >> On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com>
> wrote:
> > > > >>
> > > > >>> Thanks Ismael. I agree with you on all these points, and for some
> > of
> > > > >> these
> > > > >>> points like 3) we never have a written-down policy though in
> > practice
> > > > we
> > > > >>> tend to follow some patterns.
> > > > >>>
> > > > >>> To me deciding what's the version number of the next major
> release
> > > does
> > > > >> not
> > > > >>> necessarily mean we need now to change any of these or to set the
> > > hard
> > > > >>> rules along with it; I'd like to keep them as two separate
> > > discussions
> > > > as
> > > > >>> they seem semi-orthogonal to me.
> > > > >>>
> > > > >>>
> > > > >>> Guozhang
> > > > >>>
> > > > >>>
> > > > >>> On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk>
> > > > wrote:
> > > > >>>
> > > > >>>> On the topic of documentation, we should also document which
> > > releases
> > > > >> are
> > > > >>>> still supported and which are not. There a few factors to
> > consider:
> > > > >>>>
> > > > >>>> 1. Which branches receive bug fixes. We typically backport fixes
> > to
> > > > the
> > > > >>> two
> > > > >>>> most recent stable branches (the most recent stable branch
> > typically
> > > > >> gets
> > > > >>>> more backports than the older one).
> > > > >>>>
> > > > >>>> 2. Which branches receive security fixes. This could be the same
> > as
> > > > >> `1`,
> > > > >>>> but we could attempt to backport more aggressively for security
> > > fixes
> > > > >> as
> > > > >>>> they tend to be rare (so far at least) and the impact could be
> > > severe.
> > > > >>>>
> > > > >>>> 3. The release policy for stable branches. We tend to stop
> > releasing
> > > > >>> from a
> > > > >>>> given stable branch before we stop backporting fixes. Maybe
> that's
> > > OK,
> > > > >>> but
> > > > >>>> it would be good to document how we decide that a bug fix
> release
> > is
> > > > >>>> needed.
> > > > >>>>
> > > > >>>> 4. How long are direct upgrades supported for. During the
> > time-based
> > > > >>>> releases discussion, we agreed to support direct upgrades for 2
> > > years.
> > > > >> As
> > > > >>>> it happens, direct upgrades from 0.8.2 to 1.0.0 would not be
> > > supported
> > > > >> if
> > > > >>>> we follow this strictly. Not clear if we want to do that.
> > > > >>>>
> > > > >>>> 5. How long are older clients supported for. Current brokers
> > support
> > > > >>>> clients all the way to 0.8.x.
> > > > >>>>
> > > > >>>> 6. How long are older brokers supported for. Current clients
> > support
> > > > >>> 0.10.x
> > > > >>>> and newer brokers.
> > > > >>>>
> > > > >>>> 7. How long are message formats supported for. We never
> discussed
> > > > >> this. I
> > > > >>>> think 5 years would probably be the minimum.
> > > > >>>>
> > > > >>>> Ismael
> > > > >>>>
> > > > >>>> P.S. I'll file a JIRA to capture this information.
> > > > >>>>
> > > > >>>> On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <
> ismael@juma.me.uk>
> > > > >> wrote:
> > > > >>>>
> > > > >>>>> Hi Stevo,
> > > > >>>>>
> > > > >>>>> Thanks for your feedback. We should definitely do a better job
> of
> > > > >>>>> documenting things. We basically follow semantic versioning,
> but
> > > it's
> > > > >>>>> currently a bit confusing because:
> > > > >>>>>
> > > > >>>>> 1. There are 4 segments in the version. The "0." part should be
> > > > >> ignored
> > > > >>>>> when deciding what is major, minor and patch at the moment, but
> > > many
> > > > >>>> people
> > > > >>>>> don't know this. Once we move to 1.0.0, that problem goes away.
> > > > >>>>>
> > > > >>>>> 2. To know what is a public API, you must check the Javadoc (
> > > > >>>>> https://kafka.apache.org/0110/javadoc/index.html?org/
> > > > >>>>> apache/kafka/clients/consumer/KafkaConsumer.html). If it's not
> > > > >> listed
> > > > >>>>> there, it's not public API. Ideally, it would be obvious from
> the
> > > > >>> package
> > > > >>>>> name (i.e. there would be "internals" in the name), but we are
> > not
> > > > >>> there
> > > > >>>>> yet. The exception are the old Scala APIs, but they have all
> been
> > > > >>>>> deprecated and they will be removed eventually (the old Scala
> > > > >> consumers
> > > > >>>>> won't be removed until the June 2018 release at the earliest in
> > > order
> > > > >>> to
> > > > >>>>> give people time to migrate).
> > > > >>>>>
> > > > >>>>> 3. Even though we are following reasonably common practices, we
> > > > >> haven't
> > > > >>>>> documented them all in one place. It would be great to do it
> > during
> > > > >> the
> > > > >>>>> next release cycle.
> > > > >>>>>
> > > > >>>>> A few comments below.
> > > > >>>>>
> > > > >>>>> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <
> sslavic@gmail.com
> > >
> > > > >>> wrote:
> > > > >>>>>
> > > > >>>>>> - APIs not labeled or labeled as stable
> > > > >>>>>> -- change in major version is only one that can break backward
> > > > >>>>>> compatibility (client APIs or behavior)
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> To clarify, stable APIs should not be changed in an
> incompatible
> > > way
> > > > >>>>> without a deprecation cycle. Independently of whether it's a
> > major
> > > > >>>> release
> > > > >>>>> or not.
> > > > >>>>>
> > > > >>>>>
> > > > >>>>>> -- change in minor version can introduce new features, but not
> > > break
> > > > >>>>>> backward compatibility
> > > > >>>>>> -- change in patch version, is for bug fixes only.
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> Right, this has been the case for a while already. Also see
> > > > >> annotations
> > > > >>>>> below.
> > > > >>>>>
> > > > >>>>>
> > > > >>>>>> - APIs labeled as evolving can be broken in backward
> > incompatible
> > > > >> way
> > > > >>> in
> > > > >>>>>> any release, but are assumed less likely to be broken compared
> > to
> > > > >>>> unstable
> > > > >>>>>> APIs
> > > > >>>>>> - APIs labeled as unstable can be broken in backward
> > incompatible
> > > > >> way
> > > > >>> in
> > > > >>>>>> any release, major, minor or patch
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> The relevant annotations do explain this:
> > > > >>>>>
> > > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > > >>>> common/annotation/
> > > > >>>>> InterfaceStability.html
> > > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > > >>>> common/annotation/
> > > > >>>>> InterfaceStability.Stable.html
> > > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > > >>>> common/annotation/
> > > > >>>>> InterfaceStability.Evolving.html
> > > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > > >>>> common/annotation/
> > > > >>>>> InterfaceStability.Unstable.html
> > > > >>>>>
> > > > >>>>> But we should have a section in our documentation as well.
> > > > >>>>>
> > > > >>>>>
> > > > >>>>>> - deprecated stable APIs are treated as any stable APIs, they
> > can
> > > be
> > > > >>>>>> removed only in major release, are not allowed to be changed
> in
> > > > >>> backward
> > > > >>>>>> incompatible way in either patch or minor version release
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> Right, but note that stable non-deprecated APIs provide
> stronger
> > > > >>>>> guarantees in major releases (they can't be changed in an
> > > > >> incompatible
> > > > >>>> way).
> > > > >>>>>
> > > > >>>>>>
> > > > >>>>>> This means one should be able to upgrade server and
> > > recompile/deploy
> > > > >>>> apps
> > > > >>>>>> with clients to new minor.patch release with dependency
> version
> > > > >> change
> > > > >>>>>> being only change needed and there would be no drama.
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> That should have been the case for a while as long as you are
> > using
> > > > >>>> stable
> > > > >>>>> public APIs.
> > > > >>>>>
> > > > >>>>>>
> > > > >>>>>> Practice/"features" like protocol version being a parameter,
> and
> > > > >>>>>> defaulting
> > > > >>>>>> to latest so auto updated with dependency update which
> > introduces
> > > > >> new
> > > > >>>>>> protocol/behavior should not be used in public client APIs. To
> > > > >> switch
> > > > >>>>>> between backward incompatible APIs (contract and behaviors),
> > > ideally
> > > > >>>> user
> > > > >>>>>> should explicitly have to change code and not dependency only,
> > but
> > > > >> at
> > > > >>>>>> least
> > > > >>>>>> it should be clearly communicated that there are breaking
> > changes
> > > to
> > > > >>>>>> expect
> > > > >>>>>> even with just dependency update by e.g. giving major version
> > > > >> release
> > > > >>>>>> clear
> > > > >>>>>> meaning. If app dependency on Kafka client library minor.patch
> > on
> > > > >> same
> > > > >>>>>> major is updated, and if there's a change in behavior or API
> > > > >> requiring
> > > > >>>> app
> > > > >>>>>> code change - it's a bug.
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> Hmm, if the protocol bump provides improved behaviour, that is
> > not
> > > a
> > > > >>>>> backwards incompatible change though. So, I don't think I agree
> > > with
> > > > >>>> this.
> > > > >>>>> Of course,
> > > > >>>>> it does mean that _downgrading_ may cause loss of
> functionality.
> > > > >> That's
> > > > >>>>> OK, in my opinion.
> > > > >>>>>
> > > > >>>>> Change introduced contrary to the SLO, is OK to be reported as
> > bug.
> > > > >>>>>> Everything else is improvement or feature request.
> > > > >>>>>>
> > > > >>>>>> If this was the case, and 1.0.0 was released today with APIs
> as
> > > they
> > > > >>> are
> > > > >>>>>> now, Scala client APIs even though deprecated would not break
> > and
> > > > >>>> require
> > > > >>>>>> refactoring with every 1.* minor/patch release, and would only
> > be
> > > > >>>> allowed
> > > > >>>>>> to be broken or removed in future major release, like 2.0.0
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> Yes, that is the plan for any _public_ Scala client APIs that
> are
> > > > >> still
> > > > >>>>> present in 1.0.0. The public Scala client APIs are the producer
> > and
> > > > >>>>> consumer, basically. Again, we should make this clear in our
> > > > >>>> documentation.
> > > > >>>>> Note that we have made an effort to keep those APIs compatible
> > for
> > > > >>> quite
> > > > >>>> a
> > > > >>>>> while. It sounds like you have had some issues, were they
> related
> > > to
> > > > >>>> usage
> > > > >>>>> of internal Admin APIs by any chance (since we didn't have a
> > public
> > > > >>>>> AdminClient API until very recently)?
> > > > >>>>>
> > > > >>>>>>
> > > > >>>>>> It should be also clear how long is each version supported -
> > e.g.
> > > if
> > > > >>>>>> minor.patch had meaning that there are no backward
> incompatible
> > > > >>> changes,
> > > > >>>>>> it's OK to file a bug only for current major.minor.patch;
> > previous
> > > > >>> major
> > > > >>>>>> and its last minor.patch can only have patches released up to
> > some
> > > > >>> time
> > > > >>>>>> like 1 up to 3 months.
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> I am not sure I understood this point correctly. Can you please
> > > > >>> clarify?
> > > > >>>>>
> > > > >>>>> If there are changes in release cadence with new versioning, it
> > > > >> should
> > > > >>> be
> > > > >>>>>> clear too.
> > > > >>>>>>
> > > > >>>>>
> > > > >>>>> No changes are planned. We have started time-based releases
> less
> > > > >> than a
> > > > >>>>> year ago and they seem to be going well.
> > > > >>>>>
> > > > >>>>> Ismael
> > > > >>>>>
> > > > >>>>
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>> --
> > > > >>> -- Guozhang
> > > > >>>
> > > > >>
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > -- Guozhang
> >
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Sönke Liebau <so...@opencore.com.INVALID>.
I am happy to volunteer for working on documenting the release logistics
and related topics if someone is needed for that part.

Best regards,
Sönke

Am 24.07.2017 9:28 nachm. schrieb "Guozhang Wang" <wa...@gmail.com>:

> Thanks for everyone who has shared their thoughts and feedbacks to this
> discussion. Here is my conclusion:
>
> 1. So far everyone has agreed on naming the next major release version to
> 1.0; if I did not hear any other opinions by the end of today PDT time I
> will name the next release as 1.0.0 and update the release wiki page
> correspondingly.
>
> 2. People have also expressed expectations to some of the release logistics
> while we are releasing 1.0.0, including old version support period, upgrade
> support period, bug fix / security fix backport policies etc. Ismael has a
> detailed summary on these in this email thread and we will look for someone
> to drive the documentation of these in parallel with the 1.0.0 release
> process.
>
>
> Guozhang
>
>
> On Mon, Jul 24, 2017 at 11:45 AM, Becket Qin <be...@gmail.com> wrote:
>
> > +1 on 1.0. I think it makes a lot of sense given the point Kafka is now.
> To
> > me Kafka has absolutely reached 1.0 in terms of features/functions. That
> > said, I do share the same opinion with others that the usablity and
> > policies might still need some improvement to meet the 1.0 standard.
> >
> > On Sat, Jul 22, 2017 at 7:21 AM, Matthias J. Sax <ma...@confluent.io>
> > wrote:
> >
> > > I agree with Ismael. If we go for 1.0 (what I do support), we need to
> > > meet people's expectations and should document all policies and
> > > guarantees explicitly. We might also consider to support older releases
> > > longer and do bug fix release for older releases, too.
> > >
> > > Other projects (like Flink) do a fantastic job with this regard and we
> > > should learn from them.
> > >
> > > -Matthias
> > >
> > > On 7/21/17 9:50 PM, Guozhang Wang wrote:
> > > > That's fair enough too.
> > > >
> > > > Guozhang
> > > >
> > > > On Fri, Jul 21, 2017 at 12:13 PM, Ismael Juma <is...@gmail.com>
> > wrote:
> > > >
> > > >> Yes, I agree that the choice of version number can be done
> separately.
> > > >> That's why I said I'd file a separate JIRA for the documentation
> > > >> improvements. Having said that, there are some expectations that
> > people
> > > >> have for projects that have reached 1.0.0 and we should try to
> > allocate
> > > >> time for the important ones.
> > > >>
> > > >> Ismael
> > > >>
> > > >> On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com> wrote:
> > > >>
> > > >>> Thanks Ismael. I agree with you on all these points, and for some
> of
> > > >> these
> > > >>> points like 3) we never have a written-down policy though in
> practice
> > > we
> > > >>> tend to follow some patterns.
> > > >>>
> > > >>> To me deciding what's the version number of the next major release
> > does
> > > >> not
> > > >>> necessarily mean we need now to change any of these or to set the
> > hard
> > > >>> rules along with it; I'd like to keep them as two separate
> > discussions
> > > as
> > > >>> they seem semi-orthogonal to me.
> > > >>>
> > > >>>
> > > >>> Guozhang
> > > >>>
> > > >>>
> > > >>> On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk>
> > > wrote:
> > > >>>
> > > >>>> On the topic of documentation, we should also document which
> > releases
> > > >> are
> > > >>>> still supported and which are not. There a few factors to
> consider:
> > > >>>>
> > > >>>> 1. Which branches receive bug fixes. We typically backport fixes
> to
> > > the
> > > >>> two
> > > >>>> most recent stable branches (the most recent stable branch
> typically
> > > >> gets
> > > >>>> more backports than the older one).
> > > >>>>
> > > >>>> 2. Which branches receive security fixes. This could be the same
> as
> > > >> `1`,
> > > >>>> but we could attempt to backport more aggressively for security
> > fixes
> > > >> as
> > > >>>> they tend to be rare (so far at least) and the impact could be
> > severe.
> > > >>>>
> > > >>>> 3. The release policy for stable branches. We tend to stop
> releasing
> > > >>> from a
> > > >>>> given stable branch before we stop backporting fixes. Maybe that's
> > OK,
> > > >>> but
> > > >>>> it would be good to document how we decide that a bug fix release
> is
> > > >>>> needed.
> > > >>>>
> > > >>>> 4. How long are direct upgrades supported for. During the
> time-based
> > > >>>> releases discussion, we agreed to support direct upgrades for 2
> > years.
> > > >> As
> > > >>>> it happens, direct upgrades from 0.8.2 to 1.0.0 would not be
> > supported
> > > >> if
> > > >>>> we follow this strictly. Not clear if we want to do that.
> > > >>>>
> > > >>>> 5. How long are older clients supported for. Current brokers
> support
> > > >>>> clients all the way to 0.8.x.
> > > >>>>
> > > >>>> 6. How long are older brokers supported for. Current clients
> support
> > > >>> 0.10.x
> > > >>>> and newer brokers.
> > > >>>>
> > > >>>> 7. How long are message formats supported for. We never discussed
> > > >> this. I
> > > >>>> think 5 years would probably be the minimum.
> > > >>>>
> > > >>>> Ismael
> > > >>>>
> > > >>>> P.S. I'll file a JIRA to capture this information.
> > > >>>>
> > > >>>> On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk>
> > > >> wrote:
> > > >>>>
> > > >>>>> Hi Stevo,
> > > >>>>>
> > > >>>>> Thanks for your feedback. We should definitely do a better job of
> > > >>>>> documenting things. We basically follow semantic versioning, but
> > it's
> > > >>>>> currently a bit confusing because:
> > > >>>>>
> > > >>>>> 1. There are 4 segments in the version. The "0." part should be
> > > >> ignored
> > > >>>>> when deciding what is major, minor and patch at the moment, but
> > many
> > > >>>> people
> > > >>>>> don't know this. Once we move to 1.0.0, that problem goes away.
> > > >>>>>
> > > >>>>> 2. To know what is a public API, you must check the Javadoc (
> > > >>>>> https://kafka.apache.org/0110/javadoc/index.html?org/
> > > >>>>> apache/kafka/clients/consumer/KafkaConsumer.html). If it's not
> > > >> listed
> > > >>>>> there, it's not public API. Ideally, it would be obvious from the
> > > >>> package
> > > >>>>> name (i.e. there would be "internals" in the name), but we are
> not
> > > >>> there
> > > >>>>> yet. The exception are the old Scala APIs, but they have all been
> > > >>>>> deprecated and they will be removed eventually (the old Scala
> > > >> consumers
> > > >>>>> won't be removed until the June 2018 release at the earliest in
> > order
> > > >>> to
> > > >>>>> give people time to migrate).
> > > >>>>>
> > > >>>>> 3. Even though we are following reasonably common practices, we
> > > >> haven't
> > > >>>>> documented them all in one place. It would be great to do it
> during
> > > >> the
> > > >>>>> next release cycle.
> > > >>>>>
> > > >>>>> A few comments below.
> > > >>>>>
> > > >>>>> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <sslavic@gmail.com
> >
> > > >>> wrote:
> > > >>>>>
> > > >>>>>> - APIs not labeled or labeled as stable
> > > >>>>>> -- change in major version is only one that can break backward
> > > >>>>>> compatibility (client APIs or behavior)
> > > >>>>>>
> > > >>>>>
> > > >>>>> To clarify, stable APIs should not be changed in an incompatible
> > way
> > > >>>>> without a deprecation cycle. Independently of whether it's a
> major
> > > >>>> release
> > > >>>>> or not.
> > > >>>>>
> > > >>>>>
> > > >>>>>> -- change in minor version can introduce new features, but not
> > break
> > > >>>>>> backward compatibility
> > > >>>>>> -- change in patch version, is for bug fixes only.
> > > >>>>>>
> > > >>>>>
> > > >>>>> Right, this has been the case for a while already. Also see
> > > >> annotations
> > > >>>>> below.
> > > >>>>>
> > > >>>>>
> > > >>>>>> - APIs labeled as evolving can be broken in backward
> incompatible
> > > >> way
> > > >>> in
> > > >>>>>> any release, but are assumed less likely to be broken compared
> to
> > > >>>> unstable
> > > >>>>>> APIs
> > > >>>>>> - APIs labeled as unstable can be broken in backward
> incompatible
> > > >> way
> > > >>> in
> > > >>>>>> any release, major, minor or patch
> > > >>>>>>
> > > >>>>>
> > > >>>>> The relevant annotations do explain this:
> > > >>>>>
> > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > >>>> common/annotation/
> > > >>>>> InterfaceStability.html
> > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > >>>> common/annotation/
> > > >>>>> InterfaceStability.Stable.html
> > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > >>>> common/annotation/
> > > >>>>> InterfaceStability.Evolving.html
> > > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > >>>> common/annotation/
> > > >>>>> InterfaceStability.Unstable.html
> > > >>>>>
> > > >>>>> But we should have a section in our documentation as well.
> > > >>>>>
> > > >>>>>
> > > >>>>>> - deprecated stable APIs are treated as any stable APIs, they
> can
> > be
> > > >>>>>> removed only in major release, are not allowed to be changed in
> > > >>> backward
> > > >>>>>> incompatible way in either patch or minor version release
> > > >>>>>>
> > > >>>>>
> > > >>>>> Right, but note that stable non-deprecated APIs provide stronger
> > > >>>>> guarantees in major releases (they can't be changed in an
> > > >> incompatible
> > > >>>> way).
> > > >>>>>
> > > >>>>>>
> > > >>>>>> This means one should be able to upgrade server and
> > recompile/deploy
> > > >>>> apps
> > > >>>>>> with clients to new minor.patch release with dependency version
> > > >> change
> > > >>>>>> being only change needed and there would be no drama.
> > > >>>>>>
> > > >>>>>
> > > >>>>> That should have been the case for a while as long as you are
> using
> > > >>>> stable
> > > >>>>> public APIs.
> > > >>>>>
> > > >>>>>>
> > > >>>>>> Practice/"features" like protocol version being a parameter, and
> > > >>>>>> defaulting
> > > >>>>>> to latest so auto updated with dependency update which
> introduces
> > > >> new
> > > >>>>>> protocol/behavior should not be used in public client APIs. To
> > > >> switch
> > > >>>>>> between backward incompatible APIs (contract and behaviors),
> > ideally
> > > >>>> user
> > > >>>>>> should explicitly have to change code and not dependency only,
> but
> > > >> at
> > > >>>>>> least
> > > >>>>>> it should be clearly communicated that there are breaking
> changes
> > to
> > > >>>>>> expect
> > > >>>>>> even with just dependency update by e.g. giving major version
> > > >> release
> > > >>>>>> clear
> > > >>>>>> meaning. If app dependency on Kafka client library minor.patch
> on
> > > >> same
> > > >>>>>> major is updated, and if there's a change in behavior or API
> > > >> requiring
> > > >>>> app
> > > >>>>>> code change - it's a bug.
> > > >>>>>>
> > > >>>>>
> > > >>>>> Hmm, if the protocol bump provides improved behaviour, that is
> not
> > a
> > > >>>>> backwards incompatible change though. So, I don't think I agree
> > with
> > > >>>> this.
> > > >>>>> Of course,
> > > >>>>> it does mean that _downgrading_ may cause loss of functionality.
> > > >> That's
> > > >>>>> OK, in my opinion.
> > > >>>>>
> > > >>>>> Change introduced contrary to the SLO, is OK to be reported as
> bug.
> > > >>>>>> Everything else is improvement or feature request.
> > > >>>>>>
> > > >>>>>> If this was the case, and 1.0.0 was released today with APIs as
> > they
> > > >>> are
> > > >>>>>> now, Scala client APIs even though deprecated would not break
> and
> > > >>>> require
> > > >>>>>> refactoring with every 1.* minor/patch release, and would only
> be
> > > >>>> allowed
> > > >>>>>> to be broken or removed in future major release, like 2.0.0
> > > >>>>>>
> > > >>>>>
> > > >>>>> Yes, that is the plan for any _public_ Scala client APIs that are
> > > >> still
> > > >>>>> present in 1.0.0. The public Scala client APIs are the producer
> and
> > > >>>>> consumer, basically. Again, we should make this clear in our
> > > >>>> documentation.
> > > >>>>> Note that we have made an effort to keep those APIs compatible
> for
> > > >>> quite
> > > >>>> a
> > > >>>>> while. It sounds like you have had some issues, were they related
> > to
> > > >>>> usage
> > > >>>>> of internal Admin APIs by any chance (since we didn't have a
> public
> > > >>>>> AdminClient API until very recently)?
> > > >>>>>
> > > >>>>>>
> > > >>>>>> It should be also clear how long is each version supported -
> e.g.
> > if
> > > >>>>>> minor.patch had meaning that there are no backward incompatible
> > > >>> changes,
> > > >>>>>> it's OK to file a bug only for current major.minor.patch;
> previous
> > > >>> major
> > > >>>>>> and its last minor.patch can only have patches released up to
> some
> > > >>> time
> > > >>>>>> like 1 up to 3 months.
> > > >>>>>>
> > > >>>>>
> > > >>>>> I am not sure I understood this point correctly. Can you please
> > > >>> clarify?
> > > >>>>>
> > > >>>>> If there are changes in release cadence with new versioning, it
> > > >> should
> > > >>> be
> > > >>>>>> clear too.
> > > >>>>>>
> > > >>>>>
> > > >>>>> No changes are planned. We have started time-based releases less
> > > >> than a
> > > >>>>> year ago and they seem to be going well.
> > > >>>>>
> > > >>>>> Ismael
> > > >>>>>
> > > >>>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> -- Guozhang
> > > >>>
> > > >>
> > > >
> > > >
> > > >
> > >
> > >
> >
>
>
>
> --
> -- Guozhang
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
Hello,

Since I have not heard any further comments till now. I will close this
discussion and formally name our next major release (this coming Oct.)
1.0.0; will update the wiki pages accordingly.


Sönke,

Thanks for volunteering in documenting the release logistics. I'll leave it
to Ismael to to sync up with you (probably over JIRA) since he mentioned he
will create a ticket for capturing all the aspects.

Guozhang


On Mon, Jul 24, 2017 at 12:28 PM, Guozhang Wang <wa...@gmail.com> wrote:

> Thanks for everyone who has shared their thoughts and feedbacks to this
> discussion. Here is my conclusion:
>
> 1. So far everyone has agreed on naming the next major release version to
> 1.0; if I did not hear any other opinions by the end of today PDT time I
> will name the next release as 1.0.0 and update the release wiki page
> correspondingly.
>
> 2. People have also expressed expectations to some of the release
> logistics while we are releasing 1.0.0, including old version support
> period, upgrade support period, bug fix / security fix backport policies
> etc. Ismael has a detailed summary on these in this email thread and we
> will look for someone to drive the documentation of these in parallel with
> the 1.0.0 release process.
>
>
> Guozhang
>
>
> On Mon, Jul 24, 2017 at 11:45 AM, Becket Qin <be...@gmail.com> wrote:
>
>> +1 on 1.0. I think it makes a lot of sense given the point Kafka is now.
>> To
>> me Kafka has absolutely reached 1.0 in terms of features/functions. That
>> said, I do share the same opinion with others that the usablity and
>> policies might still need some improvement to meet the 1.0 standard.
>>
>> On Sat, Jul 22, 2017 at 7:21 AM, Matthias J. Sax <ma...@confluent.io>
>> wrote:
>>
>> > I agree with Ismael. If we go for 1.0 (what I do support), we need to
>> > meet people's expectations and should document all policies and
>> > guarantees explicitly. We might also consider to support older releases
>> > longer and do bug fix release for older releases, too.
>> >
>> > Other projects (like Flink) do a fantastic job with this regard and we
>> > should learn from them.
>> >
>> > -Matthias
>> >
>> > On 7/21/17 9:50 PM, Guozhang Wang wrote:
>> > > That's fair enough too.
>> > >
>> > > Guozhang
>> > >
>> > > On Fri, Jul 21, 2017 at 12:13 PM, Ismael Juma <is...@gmail.com>
>> wrote:
>> > >
>> > >> Yes, I agree that the choice of version number can be done
>> separately.
>> > >> That's why I said I'd file a separate JIRA for the documentation
>> > >> improvements. Having said that, there are some expectations that
>> people
>> > >> have for projects that have reached 1.0.0 and we should try to
>> allocate
>> > >> time for the important ones.
>> > >>
>> > >> Ismael
>> > >>
>> > >> On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com> wrote:
>> > >>
>> > >>> Thanks Ismael. I agree with you on all these points, and for some of
>> > >> these
>> > >>> points like 3) we never have a written-down policy though in
>> practice
>> > we
>> > >>> tend to follow some patterns.
>> > >>>
>> > >>> To me deciding what's the version number of the next major release
>> does
>> > >> not
>> > >>> necessarily mean we need now to change any of these or to set the
>> hard
>> > >>> rules along with it; I'd like to keep them as two separate
>> discussions
>> > as
>> > >>> they seem semi-orthogonal to me.
>> > >>>
>> > >>>
>> > >>> Guozhang
>> > >>>
>> > >>>
>> > >>> On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk>
>> > wrote:
>> > >>>
>> > >>>> On the topic of documentation, we should also document which
>> releases
>> > >> are
>> > >>>> still supported and which are not. There a few factors to consider:
>> > >>>>
>> > >>>> 1. Which branches receive bug fixes. We typically backport fixes to
>> > the
>> > >>> two
>> > >>>> most recent stable branches (the most recent stable branch
>> typically
>> > >> gets
>> > >>>> more backports than the older one).
>> > >>>>
>> > >>>> 2. Which branches receive security fixes. This could be the same as
>> > >> `1`,
>> > >>>> but we could attempt to backport more aggressively for security
>> fixes
>> > >> as
>> > >>>> they tend to be rare (so far at least) and the impact could be
>> severe.
>> > >>>>
>> > >>>> 3. The release policy for stable branches. We tend to stop
>> releasing
>> > >>> from a
>> > >>>> given stable branch before we stop backporting fixes. Maybe that's
>> OK,
>> > >>> but
>> > >>>> it would be good to document how we decide that a bug fix release
>> is
>> > >>>> needed.
>> > >>>>
>> > >>>> 4. How long are direct upgrades supported for. During the
>> time-based
>> > >>>> releases discussion, we agreed to support direct upgrades for 2
>> years.
>> > >> As
>> > >>>> it happens, direct upgrades from 0.8.2 to 1.0.0 would not be
>> supported
>> > >> if
>> > >>>> we follow this strictly. Not clear if we want to do that.
>> > >>>>
>> > >>>> 5. How long are older clients supported for. Current brokers
>> support
>> > >>>> clients all the way to 0.8.x.
>> > >>>>
>> > >>>> 6. How long are older brokers supported for. Current clients
>> support
>> > >>> 0.10.x
>> > >>>> and newer brokers.
>> > >>>>
>> > >>>> 7. How long are message formats supported for. We never discussed
>> > >> this. I
>> > >>>> think 5 years would probably be the minimum.
>> > >>>>
>> > >>>> Ismael
>> > >>>>
>> > >>>> P.S. I'll file a JIRA to capture this information.
>> > >>>>
>> > >>>> On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk>
>> > >> wrote:
>> > >>>>
>> > >>>>> Hi Stevo,
>> > >>>>>
>> > >>>>> Thanks for your feedback. We should definitely do a better job of
>> > >>>>> documenting things. We basically follow semantic versioning, but
>> it's
>> > >>>>> currently a bit confusing because:
>> > >>>>>
>> > >>>>> 1. There are 4 segments in the version. The "0." part should be
>> > >> ignored
>> > >>>>> when deciding what is major, minor and patch at the moment, but
>> many
>> > >>>> people
>> > >>>>> don't know this. Once we move to 1.0.0, that problem goes away.
>> > >>>>>
>> > >>>>> 2. To know what is a public API, you must check the Javadoc (
>> > >>>>> https://kafka.apache.org/0110/javadoc/index.html?org/
>> > >>>>> apache/kafka/clients/consumer/KafkaConsumer.html). If it's not
>> > >> listed
>> > >>>>> there, it's not public API. Ideally, it would be obvious from the
>> > >>> package
>> > >>>>> name (i.e. there would be "internals" in the name), but we are not
>> > >>> there
>> > >>>>> yet. The exception are the old Scala APIs, but they have all been
>> > >>>>> deprecated and they will be removed eventually (the old Scala
>> > >> consumers
>> > >>>>> won't be removed until the June 2018 release at the earliest in
>> order
>> > >>> to
>> > >>>>> give people time to migrate).
>> > >>>>>
>> > >>>>> 3. Even though we are following reasonably common practices, we
>> > >> haven't
>> > >>>>> documented them all in one place. It would be great to do it
>> during
>> > >> the
>> > >>>>> next release cycle.
>> > >>>>>
>> > >>>>> A few comments below.
>> > >>>>>
>> > >>>>> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
>> > >>> wrote:
>> > >>>>>
>> > >>>>>> - APIs not labeled or labeled as stable
>> > >>>>>> -- change in major version is only one that can break backward
>> > >>>>>> compatibility (client APIs or behavior)
>> > >>>>>>
>> > >>>>>
>> > >>>>> To clarify, stable APIs should not be changed in an incompatible
>> way
>> > >>>>> without a deprecation cycle. Independently of whether it's a major
>> > >>>> release
>> > >>>>> or not.
>> > >>>>>
>> > >>>>>
>> > >>>>>> -- change in minor version can introduce new features, but not
>> break
>> > >>>>>> backward compatibility
>> > >>>>>> -- change in patch version, is for bug fixes only.
>> > >>>>>>
>> > >>>>>
>> > >>>>> Right, this has been the case for a while already. Also see
>> > >> annotations
>> > >>>>> below.
>> > >>>>>
>> > >>>>>
>> > >>>>>> - APIs labeled as evolving can be broken in backward incompatible
>> > >> way
>> > >>> in
>> > >>>>>> any release, but are assumed less likely to be broken compared to
>> > >>>> unstable
>> > >>>>>> APIs
>> > >>>>>> - APIs labeled as unstable can be broken in backward incompatible
>> > >> way
>> > >>> in
>> > >>>>>> any release, major, minor or patch
>> > >>>>>>
>> > >>>>>
>> > >>>>> The relevant annotations do explain this:
>> > >>>>>
>> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>> > >>>> common/annotation/
>> > >>>>> InterfaceStability.html
>> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>> > >>>> common/annotation/
>> > >>>>> InterfaceStability.Stable.html
>> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>> > >>>> common/annotation/
>> > >>>>> InterfaceStability.Evolving.html
>> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>> > >>>> common/annotation/
>> > >>>>> InterfaceStability.Unstable.html
>> > >>>>>
>> > >>>>> But we should have a section in our documentation as well.
>> > >>>>>
>> > >>>>>
>> > >>>>>> - deprecated stable APIs are treated as any stable APIs, they
>> can be
>> > >>>>>> removed only in major release, are not allowed to be changed in
>> > >>> backward
>> > >>>>>> incompatible way in either patch or minor version release
>> > >>>>>>
>> > >>>>>
>> > >>>>> Right, but note that stable non-deprecated APIs provide stronger
>> > >>>>> guarantees in major releases (they can't be changed in an
>> > >> incompatible
>> > >>>> way).
>> > >>>>>
>> > >>>>>>
>> > >>>>>> This means one should be able to upgrade server and
>> recompile/deploy
>> > >>>> apps
>> > >>>>>> with clients to new minor.patch release with dependency version
>> > >> change
>> > >>>>>> being only change needed and there would be no drama.
>> > >>>>>>
>> > >>>>>
>> > >>>>> That should have been the case for a while as long as you are
>> using
>> > >>>> stable
>> > >>>>> public APIs.
>> > >>>>>
>> > >>>>>>
>> > >>>>>> Practice/"features" like protocol version being a parameter, and
>> > >>>>>> defaulting
>> > >>>>>> to latest so auto updated with dependency update which introduces
>> > >> new
>> > >>>>>> protocol/behavior should not be used in public client APIs. To
>> > >> switch
>> > >>>>>> between backward incompatible APIs (contract and behaviors),
>> ideally
>> > >>>> user
>> > >>>>>> should explicitly have to change code and not dependency only,
>> but
>> > >> at
>> > >>>>>> least
>> > >>>>>> it should be clearly communicated that there are breaking
>> changes to
>> > >>>>>> expect
>> > >>>>>> even with just dependency update by e.g. giving major version
>> > >> release
>> > >>>>>> clear
>> > >>>>>> meaning. If app dependency on Kafka client library minor.patch on
>> > >> same
>> > >>>>>> major is updated, and if there's a change in behavior or API
>> > >> requiring
>> > >>>> app
>> > >>>>>> code change - it's a bug.
>> > >>>>>>
>> > >>>>>
>> > >>>>> Hmm, if the protocol bump provides improved behaviour, that is
>> not a
>> > >>>>> backwards incompatible change though. So, I don't think I agree
>> with
>> > >>>> this.
>> > >>>>> Of course,
>> > >>>>> it does mean that _downgrading_ may cause loss of functionality.
>> > >> That's
>> > >>>>> OK, in my opinion.
>> > >>>>>
>> > >>>>> Change introduced contrary to the SLO, is OK to be reported as
>> bug.
>> > >>>>>> Everything else is improvement or feature request.
>> > >>>>>>
>> > >>>>>> If this was the case, and 1.0.0 was released today with APIs as
>> they
>> > >>> are
>> > >>>>>> now, Scala client APIs even though deprecated would not break and
>> > >>>> require
>> > >>>>>> refactoring with every 1.* minor/patch release, and would only be
>> > >>>> allowed
>> > >>>>>> to be broken or removed in future major release, like 2.0.0
>> > >>>>>>
>> > >>>>>
>> > >>>>> Yes, that is the plan for any _public_ Scala client APIs that are
>> > >> still
>> > >>>>> present in 1.0.0. The public Scala client APIs are the producer
>> and
>> > >>>>> consumer, basically. Again, we should make this clear in our
>> > >>>> documentation.
>> > >>>>> Note that we have made an effort to keep those APIs compatible for
>> > >>> quite
>> > >>>> a
>> > >>>>> while. It sounds like you have had some issues, were they related
>> to
>> > >>>> usage
>> > >>>>> of internal Admin APIs by any chance (since we didn't have a
>> public
>> > >>>>> AdminClient API until very recently)?
>> > >>>>>
>> > >>>>>>
>> > >>>>>> It should be also clear how long is each version supported -
>> e.g. if
>> > >>>>>> minor.patch had meaning that there are no backward incompatible
>> > >>> changes,
>> > >>>>>> it's OK to file a bug only for current major.minor.patch;
>> previous
>> > >>> major
>> > >>>>>> and its last minor.patch can only have patches released up to
>> some
>> > >>> time
>> > >>>>>> like 1 up to 3 months.
>> > >>>>>>
>> > >>>>>
>> > >>>>> I am not sure I understood this point correctly. Can you please
>> > >>> clarify?
>> > >>>>>
>> > >>>>> If there are changes in release cadence with new versioning, it
>> > >> should
>> > >>> be
>> > >>>>>> clear too.
>> > >>>>>>
>> > >>>>>
>> > >>>>> No changes are planned. We have started time-based releases less
>> > >> than a
>> > >>>>> year ago and they seem to be going well.
>> > >>>>>
>> > >>>>> Ismael
>> > >>>>>
>> > >>>>
>> > >>>
>> > >>>
>> > >>>
>> > >>> --
>> > >>> -- Guozhang
>> > >>>
>> > >>
>> > >
>> > >
>> > >
>> >
>> >
>>
>
>
>
> --
> -- Guozhang
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
Thanks for everyone who has shared their thoughts and feedbacks to this
discussion. Here is my conclusion:

1. So far everyone has agreed on naming the next major release version to
1.0; if I did not hear any other opinions by the end of today PDT time I
will name the next release as 1.0.0 and update the release wiki page
correspondingly.

2. People have also expressed expectations to some of the release logistics
while we are releasing 1.0.0, including old version support period, upgrade
support period, bug fix / security fix backport policies etc. Ismael has a
detailed summary on these in this email thread and we will look for someone
to drive the documentation of these in parallel with the 1.0.0 release
process.


Guozhang


On Mon, Jul 24, 2017 at 11:45 AM, Becket Qin <be...@gmail.com> wrote:

> +1 on 1.0. I think it makes a lot of sense given the point Kafka is now. To
> me Kafka has absolutely reached 1.0 in terms of features/functions. That
> said, I do share the same opinion with others that the usablity and
> policies might still need some improvement to meet the 1.0 standard.
>
> On Sat, Jul 22, 2017 at 7:21 AM, Matthias J. Sax <ma...@confluent.io>
> wrote:
>
> > I agree with Ismael. If we go for 1.0 (what I do support), we need to
> > meet people's expectations and should document all policies and
> > guarantees explicitly. We might also consider to support older releases
> > longer and do bug fix release for older releases, too.
> >
> > Other projects (like Flink) do a fantastic job with this regard and we
> > should learn from them.
> >
> > -Matthias
> >
> > On 7/21/17 9:50 PM, Guozhang Wang wrote:
> > > That's fair enough too.
> > >
> > > Guozhang
> > >
> > > On Fri, Jul 21, 2017 at 12:13 PM, Ismael Juma <is...@gmail.com>
> wrote:
> > >
> > >> Yes, I agree that the choice of version number can be done separately.
> > >> That's why I said I'd file a separate JIRA for the documentation
> > >> improvements. Having said that, there are some expectations that
> people
> > >> have for projects that have reached 1.0.0 and we should try to
> allocate
> > >> time for the important ones.
> > >>
> > >> Ismael
> > >>
> > >> On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com> wrote:
> > >>
> > >>> Thanks Ismael. I agree with you on all these points, and for some of
> > >> these
> > >>> points like 3) we never have a written-down policy though in practice
> > we
> > >>> tend to follow some patterns.
> > >>>
> > >>> To me deciding what's the version number of the next major release
> does
> > >> not
> > >>> necessarily mean we need now to change any of these or to set the
> hard
> > >>> rules along with it; I'd like to keep them as two separate
> discussions
> > as
> > >>> they seem semi-orthogonal to me.
> > >>>
> > >>>
> > >>> Guozhang
> > >>>
> > >>>
> > >>> On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk>
> > wrote:
> > >>>
> > >>>> On the topic of documentation, we should also document which
> releases
> > >> are
> > >>>> still supported and which are not. There a few factors to consider:
> > >>>>
> > >>>> 1. Which branches receive bug fixes. We typically backport fixes to
> > the
> > >>> two
> > >>>> most recent stable branches (the most recent stable branch typically
> > >> gets
> > >>>> more backports than the older one).
> > >>>>
> > >>>> 2. Which branches receive security fixes. This could be the same as
> > >> `1`,
> > >>>> but we could attempt to backport more aggressively for security
> fixes
> > >> as
> > >>>> they tend to be rare (so far at least) and the impact could be
> severe.
> > >>>>
> > >>>> 3. The release policy for stable branches. We tend to stop releasing
> > >>> from a
> > >>>> given stable branch before we stop backporting fixes. Maybe that's
> OK,
> > >>> but
> > >>>> it would be good to document how we decide that a bug fix release is
> > >>>> needed.
> > >>>>
> > >>>> 4. How long are direct upgrades supported for. During the time-based
> > >>>> releases discussion, we agreed to support direct upgrades for 2
> years.
> > >> As
> > >>>> it happens, direct upgrades from 0.8.2 to 1.0.0 would not be
> supported
> > >> if
> > >>>> we follow this strictly. Not clear if we want to do that.
> > >>>>
> > >>>> 5. How long are older clients supported for. Current brokers support
> > >>>> clients all the way to 0.8.x.
> > >>>>
> > >>>> 6. How long are older brokers supported for. Current clients support
> > >>> 0.10.x
> > >>>> and newer brokers.
> > >>>>
> > >>>> 7. How long are message formats supported for. We never discussed
> > >> this. I
> > >>>> think 5 years would probably be the minimum.
> > >>>>
> > >>>> Ismael
> > >>>>
> > >>>> P.S. I'll file a JIRA to capture this information.
> > >>>>
> > >>>> On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk>
> > >> wrote:
> > >>>>
> > >>>>> Hi Stevo,
> > >>>>>
> > >>>>> Thanks for your feedback. We should definitely do a better job of
> > >>>>> documenting things. We basically follow semantic versioning, but
> it's
> > >>>>> currently a bit confusing because:
> > >>>>>
> > >>>>> 1. There are 4 segments in the version. The "0." part should be
> > >> ignored
> > >>>>> when deciding what is major, minor and patch at the moment, but
> many
> > >>>> people
> > >>>>> don't know this. Once we move to 1.0.0, that problem goes away.
> > >>>>>
> > >>>>> 2. To know what is a public API, you must check the Javadoc (
> > >>>>> https://kafka.apache.org/0110/javadoc/index.html?org/
> > >>>>> apache/kafka/clients/consumer/KafkaConsumer.html). If it's not
> > >> listed
> > >>>>> there, it's not public API. Ideally, it would be obvious from the
> > >>> package
> > >>>>> name (i.e. there would be "internals" in the name), but we are not
> > >>> there
> > >>>>> yet. The exception are the old Scala APIs, but they have all been
> > >>>>> deprecated and they will be removed eventually (the old Scala
> > >> consumers
> > >>>>> won't be removed until the June 2018 release at the earliest in
> order
> > >>> to
> > >>>>> give people time to migrate).
> > >>>>>
> > >>>>> 3. Even though we are following reasonably common practices, we
> > >> haven't
> > >>>>> documented them all in one place. It would be great to do it during
> > >> the
> > >>>>> next release cycle.
> > >>>>>
> > >>>>> A few comments below.
> > >>>>>
> > >>>>> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> > >>> wrote:
> > >>>>>
> > >>>>>> - APIs not labeled or labeled as stable
> > >>>>>> -- change in major version is only one that can break backward
> > >>>>>> compatibility (client APIs or behavior)
> > >>>>>>
> > >>>>>
> > >>>>> To clarify, stable APIs should not be changed in an incompatible
> way
> > >>>>> without a deprecation cycle. Independently of whether it's a major
> > >>>> release
> > >>>>> or not.
> > >>>>>
> > >>>>>
> > >>>>>> -- change in minor version can introduce new features, but not
> break
> > >>>>>> backward compatibility
> > >>>>>> -- change in patch version, is for bug fixes only.
> > >>>>>>
> > >>>>>
> > >>>>> Right, this has been the case for a while already. Also see
> > >> annotations
> > >>>>> below.
> > >>>>>
> > >>>>>
> > >>>>>> - APIs labeled as evolving can be broken in backward incompatible
> > >> way
> > >>> in
> > >>>>>> any release, but are assumed less likely to be broken compared to
> > >>>> unstable
> > >>>>>> APIs
> > >>>>>> - APIs labeled as unstable can be broken in backward incompatible
> > >> way
> > >>> in
> > >>>>>> any release, major, minor or patch
> > >>>>>>
> > >>>>>
> > >>>>> The relevant annotations do explain this:
> > >>>>>
> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > >>>> common/annotation/
> > >>>>> InterfaceStability.html
> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > >>>> common/annotation/
> > >>>>> InterfaceStability.Stable.html
> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > >>>> common/annotation/
> > >>>>> InterfaceStability.Evolving.html
> > >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > >>>> common/annotation/
> > >>>>> InterfaceStability.Unstable.html
> > >>>>>
> > >>>>> But we should have a section in our documentation as well.
> > >>>>>
> > >>>>>
> > >>>>>> - deprecated stable APIs are treated as any stable APIs, they can
> be
> > >>>>>> removed only in major release, are not allowed to be changed in
> > >>> backward
> > >>>>>> incompatible way in either patch or minor version release
> > >>>>>>
> > >>>>>
> > >>>>> Right, but note that stable non-deprecated APIs provide stronger
> > >>>>> guarantees in major releases (they can't be changed in an
> > >> incompatible
> > >>>> way).
> > >>>>>
> > >>>>>>
> > >>>>>> This means one should be able to upgrade server and
> recompile/deploy
> > >>>> apps
> > >>>>>> with clients to new minor.patch release with dependency version
> > >> change
> > >>>>>> being only change needed and there would be no drama.
> > >>>>>>
> > >>>>>
> > >>>>> That should have been the case for a while as long as you are using
> > >>>> stable
> > >>>>> public APIs.
> > >>>>>
> > >>>>>>
> > >>>>>> Practice/"features" like protocol version being a parameter, and
> > >>>>>> defaulting
> > >>>>>> to latest so auto updated with dependency update which introduces
> > >> new
> > >>>>>> protocol/behavior should not be used in public client APIs. To
> > >> switch
> > >>>>>> between backward incompatible APIs (contract and behaviors),
> ideally
> > >>>> user
> > >>>>>> should explicitly have to change code and not dependency only, but
> > >> at
> > >>>>>> least
> > >>>>>> it should be clearly communicated that there are breaking changes
> to
> > >>>>>> expect
> > >>>>>> even with just dependency update by e.g. giving major version
> > >> release
> > >>>>>> clear
> > >>>>>> meaning. If app dependency on Kafka client library minor.patch on
> > >> same
> > >>>>>> major is updated, and if there's a change in behavior or API
> > >> requiring
> > >>>> app
> > >>>>>> code change - it's a bug.
> > >>>>>>
> > >>>>>
> > >>>>> Hmm, if the protocol bump provides improved behaviour, that is not
> a
> > >>>>> backwards incompatible change though. So, I don't think I agree
> with
> > >>>> this.
> > >>>>> Of course,
> > >>>>> it does mean that _downgrading_ may cause loss of functionality.
> > >> That's
> > >>>>> OK, in my opinion.
> > >>>>>
> > >>>>> Change introduced contrary to the SLO, is OK to be reported as bug.
> > >>>>>> Everything else is improvement or feature request.
> > >>>>>>
> > >>>>>> If this was the case, and 1.0.0 was released today with APIs as
> they
> > >>> are
> > >>>>>> now, Scala client APIs even though deprecated would not break and
> > >>>> require
> > >>>>>> refactoring with every 1.* minor/patch release, and would only be
> > >>>> allowed
> > >>>>>> to be broken or removed in future major release, like 2.0.0
> > >>>>>>
> > >>>>>
> > >>>>> Yes, that is the plan for any _public_ Scala client APIs that are
> > >> still
> > >>>>> present in 1.0.0. The public Scala client APIs are the producer and
> > >>>>> consumer, basically. Again, we should make this clear in our
> > >>>> documentation.
> > >>>>> Note that we have made an effort to keep those APIs compatible for
> > >>> quite
> > >>>> a
> > >>>>> while. It sounds like you have had some issues, were they related
> to
> > >>>> usage
> > >>>>> of internal Admin APIs by any chance (since we didn't have a public
> > >>>>> AdminClient API until very recently)?
> > >>>>>
> > >>>>>>
> > >>>>>> It should be also clear how long is each version supported - e.g.
> if
> > >>>>>> minor.patch had meaning that there are no backward incompatible
> > >>> changes,
> > >>>>>> it's OK to file a bug only for current major.minor.patch; previous
> > >>> major
> > >>>>>> and its last minor.patch can only have patches released up to some
> > >>> time
> > >>>>>> like 1 up to 3 months.
> > >>>>>>
> > >>>>>
> > >>>>> I am not sure I understood this point correctly. Can you please
> > >>> clarify?
> > >>>>>
> > >>>>> If there are changes in release cadence with new versioning, it
> > >> should
> > >>> be
> > >>>>>> clear too.
> > >>>>>>
> > >>>>>
> > >>>>> No changes are planned. We have started time-based releases less
> > >> than a
> > >>>>> year ago and they seem to be going well.
> > >>>>>
> > >>>>> Ismael
> > >>>>>
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> -- Guozhang
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Becket Qin <be...@gmail.com>.
+1 on 1.0. I think it makes a lot of sense given the point Kafka is now. To
me Kafka has absolutely reached 1.0 in terms of features/functions. That
said, I do share the same opinion with others that the usablity and
policies might still need some improvement to meet the 1.0 standard.

On Sat, Jul 22, 2017 at 7:21 AM, Matthias J. Sax <ma...@confluent.io>
wrote:

> I agree with Ismael. If we go for 1.0 (what I do support), we need to
> meet people's expectations and should document all policies and
> guarantees explicitly. We might also consider to support older releases
> longer and do bug fix release for older releases, too.
>
> Other projects (like Flink) do a fantastic job with this regard and we
> should learn from them.
>
> -Matthias
>
> On 7/21/17 9:50 PM, Guozhang Wang wrote:
> > That's fair enough too.
> >
> > Guozhang
> >
> > On Fri, Jul 21, 2017 at 12:13 PM, Ismael Juma <is...@gmail.com> wrote:
> >
> >> Yes, I agree that the choice of version number can be done separately.
> >> That's why I said I'd file a separate JIRA for the documentation
> >> improvements. Having said that, there are some expectations that people
> >> have for projects that have reached 1.0.0 and we should try to allocate
> >> time for the important ones.
> >>
> >> Ismael
> >>
> >> On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com> wrote:
> >>
> >>> Thanks Ismael. I agree with you on all these points, and for some of
> >> these
> >>> points like 3) we never have a written-down policy though in practice
> we
> >>> tend to follow some patterns.
> >>>
> >>> To me deciding what's the version number of the next major release does
> >> not
> >>> necessarily mean we need now to change any of these or to set the hard
> >>> rules along with it; I'd like to keep them as two separate discussions
> as
> >>> they seem semi-orthogonal to me.
> >>>
> >>>
> >>> Guozhang
> >>>
> >>>
> >>> On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk>
> wrote:
> >>>
> >>>> On the topic of documentation, we should also document which releases
> >> are
> >>>> still supported and which are not. There a few factors to consider:
> >>>>
> >>>> 1. Which branches receive bug fixes. We typically backport fixes to
> the
> >>> two
> >>>> most recent stable branches (the most recent stable branch typically
> >> gets
> >>>> more backports than the older one).
> >>>>
> >>>> 2. Which branches receive security fixes. This could be the same as
> >> `1`,
> >>>> but we could attempt to backport more aggressively for security fixes
> >> as
> >>>> they tend to be rare (so far at least) and the impact could be severe.
> >>>>
> >>>> 3. The release policy for stable branches. We tend to stop releasing
> >>> from a
> >>>> given stable branch before we stop backporting fixes. Maybe that's OK,
> >>> but
> >>>> it would be good to document how we decide that a bug fix release is
> >>>> needed.
> >>>>
> >>>> 4. How long are direct upgrades supported for. During the time-based
> >>>> releases discussion, we agreed to support direct upgrades for 2 years.
> >> As
> >>>> it happens, direct upgrades from 0.8.2 to 1.0.0 would not be supported
> >> if
> >>>> we follow this strictly. Not clear if we want to do that.
> >>>>
> >>>> 5. How long are older clients supported for. Current brokers support
> >>>> clients all the way to 0.8.x.
> >>>>
> >>>> 6. How long are older brokers supported for. Current clients support
> >>> 0.10.x
> >>>> and newer brokers.
> >>>>
> >>>> 7. How long are message formats supported for. We never discussed
> >> this. I
> >>>> think 5 years would probably be the minimum.
> >>>>
> >>>> Ismael
> >>>>
> >>>> P.S. I'll file a JIRA to capture this information.
> >>>>
> >>>> On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk>
> >> wrote:
> >>>>
> >>>>> Hi Stevo,
> >>>>>
> >>>>> Thanks for your feedback. We should definitely do a better job of
> >>>>> documenting things. We basically follow semantic versioning, but it's
> >>>>> currently a bit confusing because:
> >>>>>
> >>>>> 1. There are 4 segments in the version. The "0." part should be
> >> ignored
> >>>>> when deciding what is major, minor and patch at the moment, but many
> >>>> people
> >>>>> don't know this. Once we move to 1.0.0, that problem goes away.
> >>>>>
> >>>>> 2. To know what is a public API, you must check the Javadoc (
> >>>>> https://kafka.apache.org/0110/javadoc/index.html?org/
> >>>>> apache/kafka/clients/consumer/KafkaConsumer.html). If it's not
> >> listed
> >>>>> there, it's not public API. Ideally, it would be obvious from the
> >>> package
> >>>>> name (i.e. there would be "internals" in the name), but we are not
> >>> there
> >>>>> yet. The exception are the old Scala APIs, but they have all been
> >>>>> deprecated and they will be removed eventually (the old Scala
> >> consumers
> >>>>> won't be removed until the June 2018 release at the earliest in order
> >>> to
> >>>>> give people time to migrate).
> >>>>>
> >>>>> 3. Even though we are following reasonably common practices, we
> >> haven't
> >>>>> documented them all in one place. It would be great to do it during
> >> the
> >>>>> next release cycle.
> >>>>>
> >>>>> A few comments below.
> >>>>>
> >>>>> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> >>> wrote:
> >>>>>
> >>>>>> - APIs not labeled or labeled as stable
> >>>>>> -- change in major version is only one that can break backward
> >>>>>> compatibility (client APIs or behavior)
> >>>>>>
> >>>>>
> >>>>> To clarify, stable APIs should not be changed in an incompatible way
> >>>>> without a deprecation cycle. Independently of whether it's a major
> >>>> release
> >>>>> or not.
> >>>>>
> >>>>>
> >>>>>> -- change in minor version can introduce new features, but not break
> >>>>>> backward compatibility
> >>>>>> -- change in patch version, is for bug fixes only.
> >>>>>>
> >>>>>
> >>>>> Right, this has been the case for a while already. Also see
> >> annotations
> >>>>> below.
> >>>>>
> >>>>>
> >>>>>> - APIs labeled as evolving can be broken in backward incompatible
> >> way
> >>> in
> >>>>>> any release, but are assumed less likely to be broken compared to
> >>>> unstable
> >>>>>> APIs
> >>>>>> - APIs labeled as unstable can be broken in backward incompatible
> >> way
> >>> in
> >>>>>> any release, major, minor or patch
> >>>>>>
> >>>>>
> >>>>> The relevant annotations do explain this:
> >>>>>
> >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> >>>> common/annotation/
> >>>>> InterfaceStability.html
> >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> >>>> common/annotation/
> >>>>> InterfaceStability.Stable.html
> >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> >>>> common/annotation/
> >>>>> InterfaceStability.Evolving.html
> >>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> >>>> common/annotation/
> >>>>> InterfaceStability.Unstable.html
> >>>>>
> >>>>> But we should have a section in our documentation as well.
> >>>>>
> >>>>>
> >>>>>> - deprecated stable APIs are treated as any stable APIs, they can be
> >>>>>> removed only in major release, are not allowed to be changed in
> >>> backward
> >>>>>> incompatible way in either patch or minor version release
> >>>>>>
> >>>>>
> >>>>> Right, but note that stable non-deprecated APIs provide stronger
> >>>>> guarantees in major releases (they can't be changed in an
> >> incompatible
> >>>> way).
> >>>>>
> >>>>>>
> >>>>>> This means one should be able to upgrade server and recompile/deploy
> >>>> apps
> >>>>>> with clients to new minor.patch release with dependency version
> >> change
> >>>>>> being only change needed and there would be no drama.
> >>>>>>
> >>>>>
> >>>>> That should have been the case for a while as long as you are using
> >>>> stable
> >>>>> public APIs.
> >>>>>
> >>>>>>
> >>>>>> Practice/"features" like protocol version being a parameter, and
> >>>>>> defaulting
> >>>>>> to latest so auto updated with dependency update which introduces
> >> new
> >>>>>> protocol/behavior should not be used in public client APIs. To
> >> switch
> >>>>>> between backward incompatible APIs (contract and behaviors), ideally
> >>>> user
> >>>>>> should explicitly have to change code and not dependency only, but
> >> at
> >>>>>> least
> >>>>>> it should be clearly communicated that there are breaking changes to
> >>>>>> expect
> >>>>>> even with just dependency update by e.g. giving major version
> >> release
> >>>>>> clear
> >>>>>> meaning. If app dependency on Kafka client library minor.patch on
> >> same
> >>>>>> major is updated, and if there's a change in behavior or API
> >> requiring
> >>>> app
> >>>>>> code change - it's a bug.
> >>>>>>
> >>>>>
> >>>>> Hmm, if the protocol bump provides improved behaviour, that is not a
> >>>>> backwards incompatible change though. So, I don't think I agree with
> >>>> this.
> >>>>> Of course,
> >>>>> it does mean that _downgrading_ may cause loss of functionality.
> >> That's
> >>>>> OK, in my opinion.
> >>>>>
> >>>>> Change introduced contrary to the SLO, is OK to be reported as bug.
> >>>>>> Everything else is improvement or feature request.
> >>>>>>
> >>>>>> If this was the case, and 1.0.0 was released today with APIs as they
> >>> are
> >>>>>> now, Scala client APIs even though deprecated would not break and
> >>>> require
> >>>>>> refactoring with every 1.* minor/patch release, and would only be
> >>>> allowed
> >>>>>> to be broken or removed in future major release, like 2.0.0
> >>>>>>
> >>>>>
> >>>>> Yes, that is the plan for any _public_ Scala client APIs that are
> >> still
> >>>>> present in 1.0.0. The public Scala client APIs are the producer and
> >>>>> consumer, basically. Again, we should make this clear in our
> >>>> documentation.
> >>>>> Note that we have made an effort to keep those APIs compatible for
> >>> quite
> >>>> a
> >>>>> while. It sounds like you have had some issues, were they related to
> >>>> usage
> >>>>> of internal Admin APIs by any chance (since we didn't have a public
> >>>>> AdminClient API until very recently)?
> >>>>>
> >>>>>>
> >>>>>> It should be also clear how long is each version supported - e.g. if
> >>>>>> minor.patch had meaning that there are no backward incompatible
> >>> changes,
> >>>>>> it's OK to file a bug only for current major.minor.patch; previous
> >>> major
> >>>>>> and its last minor.patch can only have patches released up to some
> >>> time
> >>>>>> like 1 up to 3 months.
> >>>>>>
> >>>>>
> >>>>> I am not sure I understood this point correctly. Can you please
> >>> clarify?
> >>>>>
> >>>>> If there are changes in release cadence with new versioning, it
> >> should
> >>> be
> >>>>>> clear too.
> >>>>>>
> >>>>>
> >>>>> No changes are planned. We have started time-based releases less
> >> than a
> >>>>> year ago and they seem to be going well.
> >>>>>
> >>>>> Ismael
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> -- Guozhang
> >>>
> >>
> >
> >
> >
>
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by "Matthias J. Sax" <ma...@confluent.io>.
I agree with Ismael. If we go for 1.0 (what I do support), we need to
meet people's expectations and should document all policies and
guarantees explicitly. We might also consider to support older releases
longer and do bug fix release for older releases, too.

Other projects (like Flink) do a fantastic job with this regard and we
should learn from them.

-Matthias

On 7/21/17 9:50 PM, Guozhang Wang wrote:
> That's fair enough too.
> 
> Guozhang
> 
> On Fri, Jul 21, 2017 at 12:13 PM, Ismael Juma <is...@gmail.com> wrote:
> 
>> Yes, I agree that the choice of version number can be done separately.
>> That's why I said I'd file a separate JIRA for the documentation
>> improvements. Having said that, there are some expectations that people
>> have for projects that have reached 1.0.0 and we should try to allocate
>> time for the important ones.
>>
>> Ismael
>>
>> On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com> wrote:
>>
>>> Thanks Ismael. I agree with you on all these points, and for some of
>> these
>>> points like 3) we never have a written-down policy though in practice we
>>> tend to follow some patterns.
>>>
>>> To me deciding what's the version number of the next major release does
>> not
>>> necessarily mean we need now to change any of these or to set the hard
>>> rules along with it; I'd like to keep them as two separate discussions as
>>> they seem semi-orthogonal to me.
>>>
>>>
>>> Guozhang
>>>
>>>
>>> On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk> wrote:
>>>
>>>> On the topic of documentation, we should also document which releases
>> are
>>>> still supported and which are not. There a few factors to consider:
>>>>
>>>> 1. Which branches receive bug fixes. We typically backport fixes to the
>>> two
>>>> most recent stable branches (the most recent stable branch typically
>> gets
>>>> more backports than the older one).
>>>>
>>>> 2. Which branches receive security fixes. This could be the same as
>> `1`,
>>>> but we could attempt to backport more aggressively for security fixes
>> as
>>>> they tend to be rare (so far at least) and the impact could be severe.
>>>>
>>>> 3. The release policy for stable branches. We tend to stop releasing
>>> from a
>>>> given stable branch before we stop backporting fixes. Maybe that's OK,
>>> but
>>>> it would be good to document how we decide that a bug fix release is
>>>> needed.
>>>>
>>>> 4. How long are direct upgrades supported for. During the time-based
>>>> releases discussion, we agreed to support direct upgrades for 2 years.
>> As
>>>> it happens, direct upgrades from 0.8.2 to 1.0.0 would not be supported
>> if
>>>> we follow this strictly. Not clear if we want to do that.
>>>>
>>>> 5. How long are older clients supported for. Current brokers support
>>>> clients all the way to 0.8.x.
>>>>
>>>> 6. How long are older brokers supported for. Current clients support
>>> 0.10.x
>>>> and newer brokers.
>>>>
>>>> 7. How long are message formats supported for. We never discussed
>> this. I
>>>> think 5 years would probably be the minimum.
>>>>
>>>> Ismael
>>>>
>>>> P.S. I'll file a JIRA to capture this information.
>>>>
>>>> On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk>
>> wrote:
>>>>
>>>>> Hi Stevo,
>>>>>
>>>>> Thanks for your feedback. We should definitely do a better job of
>>>>> documenting things. We basically follow semantic versioning, but it's
>>>>> currently a bit confusing because:
>>>>>
>>>>> 1. There are 4 segments in the version. The "0." part should be
>> ignored
>>>>> when deciding what is major, minor and patch at the moment, but many
>>>> people
>>>>> don't know this. Once we move to 1.0.0, that problem goes away.
>>>>>
>>>>> 2. To know what is a public API, you must check the Javadoc (
>>>>> https://kafka.apache.org/0110/javadoc/index.html?org/
>>>>> apache/kafka/clients/consumer/KafkaConsumer.html). If it's not
>> listed
>>>>> there, it's not public API. Ideally, it would be obvious from the
>>> package
>>>>> name (i.e. there would be "internals" in the name), but we are not
>>> there
>>>>> yet. The exception are the old Scala APIs, but they have all been
>>>>> deprecated and they will be removed eventually (the old Scala
>> consumers
>>>>> won't be removed until the June 2018 release at the earliest in order
>>> to
>>>>> give people time to migrate).
>>>>>
>>>>> 3. Even though we are following reasonably common practices, we
>> haven't
>>>>> documented them all in one place. It would be great to do it during
>> the
>>>>> next release cycle.
>>>>>
>>>>> A few comments below.
>>>>>
>>>>> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
>>> wrote:
>>>>>
>>>>>> - APIs not labeled or labeled as stable
>>>>>> -- change in major version is only one that can break backward
>>>>>> compatibility (client APIs or behavior)
>>>>>>
>>>>>
>>>>> To clarify, stable APIs should not be changed in an incompatible way
>>>>> without a deprecation cycle. Independently of whether it's a major
>>>> release
>>>>> or not.
>>>>>
>>>>>
>>>>>> -- change in minor version can introduce new features, but not break
>>>>>> backward compatibility
>>>>>> -- change in patch version, is for bug fixes only.
>>>>>>
>>>>>
>>>>> Right, this has been the case for a while already. Also see
>> annotations
>>>>> below.
>>>>>
>>>>>
>>>>>> - APIs labeled as evolving can be broken in backward incompatible
>> way
>>> in
>>>>>> any release, but are assumed less likely to be broken compared to
>>>> unstable
>>>>>> APIs
>>>>>> - APIs labeled as unstable can be broken in backward incompatible
>> way
>>> in
>>>>>> any release, major, minor or patch
>>>>>>
>>>>>
>>>>> The relevant annotations do explain this:
>>>>>
>>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>>>> common/annotation/
>>>>> InterfaceStability.html
>>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>>>> common/annotation/
>>>>> InterfaceStability.Stable.html
>>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>>>> common/annotation/
>>>>> InterfaceStability.Evolving.html
>>>>> https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>>>> common/annotation/
>>>>> InterfaceStability.Unstable.html
>>>>>
>>>>> But we should have a section in our documentation as well.
>>>>>
>>>>>
>>>>>> - deprecated stable APIs are treated as any stable APIs, they can be
>>>>>> removed only in major release, are not allowed to be changed in
>>> backward
>>>>>> incompatible way in either patch or minor version release
>>>>>>
>>>>>
>>>>> Right, but note that stable non-deprecated APIs provide stronger
>>>>> guarantees in major releases (they can't be changed in an
>> incompatible
>>>> way).
>>>>>
>>>>>>
>>>>>> This means one should be able to upgrade server and recompile/deploy
>>>> apps
>>>>>> with clients to new minor.patch release with dependency version
>> change
>>>>>> being only change needed and there would be no drama.
>>>>>>
>>>>>
>>>>> That should have been the case for a while as long as you are using
>>>> stable
>>>>> public APIs.
>>>>>
>>>>>>
>>>>>> Practice/"features" like protocol version being a parameter, and
>>>>>> defaulting
>>>>>> to latest so auto updated with dependency update which introduces
>> new
>>>>>> protocol/behavior should not be used in public client APIs. To
>> switch
>>>>>> between backward incompatible APIs (contract and behaviors), ideally
>>>> user
>>>>>> should explicitly have to change code and not dependency only, but
>> at
>>>>>> least
>>>>>> it should be clearly communicated that there are breaking changes to
>>>>>> expect
>>>>>> even with just dependency update by e.g. giving major version
>> release
>>>>>> clear
>>>>>> meaning. If app dependency on Kafka client library minor.patch on
>> same
>>>>>> major is updated, and if there's a change in behavior or API
>> requiring
>>>> app
>>>>>> code change - it's a bug.
>>>>>>
>>>>>
>>>>> Hmm, if the protocol bump provides improved behaviour, that is not a
>>>>> backwards incompatible change though. So, I don't think I agree with
>>>> this.
>>>>> Of course,
>>>>> it does mean that _downgrading_ may cause loss of functionality.
>> That's
>>>>> OK, in my opinion.
>>>>>
>>>>> Change introduced contrary to the SLO, is OK to be reported as bug.
>>>>>> Everything else is improvement or feature request.
>>>>>>
>>>>>> If this was the case, and 1.0.0 was released today with APIs as they
>>> are
>>>>>> now, Scala client APIs even though deprecated would not break and
>>>> require
>>>>>> refactoring with every 1.* minor/patch release, and would only be
>>>> allowed
>>>>>> to be broken or removed in future major release, like 2.0.0
>>>>>>
>>>>>
>>>>> Yes, that is the plan for any _public_ Scala client APIs that are
>> still
>>>>> present in 1.0.0. The public Scala client APIs are the producer and
>>>>> consumer, basically. Again, we should make this clear in our
>>>> documentation.
>>>>> Note that we have made an effort to keep those APIs compatible for
>>> quite
>>>> a
>>>>> while. It sounds like you have had some issues, were they related to
>>>> usage
>>>>> of internal Admin APIs by any chance (since we didn't have a public
>>>>> AdminClient API until very recently)?
>>>>>
>>>>>>
>>>>>> It should be also clear how long is each version supported - e.g. if
>>>>>> minor.patch had meaning that there are no backward incompatible
>>> changes,
>>>>>> it's OK to file a bug only for current major.minor.patch; previous
>>> major
>>>>>> and its last minor.patch can only have patches released up to some
>>> time
>>>>>> like 1 up to 3 months.
>>>>>>
>>>>>
>>>>> I am not sure I understood this point correctly. Can you please
>>> clarify?
>>>>>
>>>>> If there are changes in release cadence with new versioning, it
>> should
>>> be
>>>>>> clear too.
>>>>>>
>>>>>
>>>>> No changes are planned. We have started time-based releases less
>> than a
>>>>> year ago and they seem to be going well.
>>>>>
>>>>> Ismael
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> -- Guozhang
>>>
>>
> 
> 
> 


Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
That's fair enough too.

Guozhang

On Fri, Jul 21, 2017 at 12:13 PM, Ismael Juma <is...@gmail.com> wrote:

> Yes, I agree that the choice of version number can be done separately.
> That's why I said I'd file a separate JIRA for the documentation
> improvements. Having said that, there are some expectations that people
> have for projects that have reached 1.0.0 and we should try to allocate
> time for the important ones.
>
> Ismael
>
> On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com> wrote:
>
> > Thanks Ismael. I agree with you on all these points, and for some of
> these
> > points like 3) we never have a written-down policy though in practice we
> > tend to follow some patterns.
> >
> > To me deciding what's the version number of the next major release does
> not
> > necessarily mean we need now to change any of these or to set the hard
> > rules along with it; I'd like to keep them as two separate discussions as
> > they seem semi-orthogonal to me.
> >
> >
> > Guozhang
> >
> >
> > On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk> wrote:
> >
> > > On the topic of documentation, we should also document which releases
> are
> > > still supported and which are not. There a few factors to consider:
> > >
> > > 1. Which branches receive bug fixes. We typically backport fixes to the
> > two
> > > most recent stable branches (the most recent stable branch typically
> gets
> > > more backports than the older one).
> > >
> > > 2. Which branches receive security fixes. This could be the same as
> `1`,
> > > but we could attempt to backport more aggressively for security fixes
> as
> > > they tend to be rare (so far at least) and the impact could be severe.
> > >
> > > 3. The release policy for stable branches. We tend to stop releasing
> > from a
> > > given stable branch before we stop backporting fixes. Maybe that's OK,
> > but
> > > it would be good to document how we decide that a bug fix release is
> > > needed.
> > >
> > > 4. How long are direct upgrades supported for. During the time-based
> > > releases discussion, we agreed to support direct upgrades for 2 years.
> As
> > > it happens, direct upgrades from 0.8.2 to 1.0.0 would not be supported
> if
> > > we follow this strictly. Not clear if we want to do that.
> > >
> > > 5. How long are older clients supported for. Current brokers support
> > > clients all the way to 0.8.x.
> > >
> > > 6. How long are older brokers supported for. Current clients support
> > 0.10.x
> > > and newer brokers.
> > >
> > > 7. How long are message formats supported for. We never discussed
> this. I
> > > think 5 years would probably be the minimum.
> > >
> > > Ismael
> > >
> > > P.S. I'll file a JIRA to capture this information.
> > >
> > > On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk>
> wrote:
> > >
> > > > Hi Stevo,
> > > >
> > > > Thanks for your feedback. We should definitely do a better job of
> > > > documenting things. We basically follow semantic versioning, but it's
> > > > currently a bit confusing because:
> > > >
> > > > 1. There are 4 segments in the version. The "0." part should be
> ignored
> > > > when deciding what is major, minor and patch at the moment, but many
> > > people
> > > > don't know this. Once we move to 1.0.0, that problem goes away.
> > > >
> > > > 2. To know what is a public API, you must check the Javadoc (
> > > > https://kafka.apache.org/0110/javadoc/index.html?org/
> > > > apache/kafka/clients/consumer/KafkaConsumer.html). If it's not
> listed
> > > > there, it's not public API. Ideally, it would be obvious from the
> > package
> > > > name (i.e. there would be "internals" in the name), but we are not
> > there
> > > > yet. The exception are the old Scala APIs, but they have all been
> > > > deprecated and they will be removed eventually (the old Scala
> consumers
> > > > won't be removed until the June 2018 release at the earliest in order
> > to
> > > > give people time to migrate).
> > > >
> > > > 3. Even though we are following reasonably common practices, we
> haven't
> > > > documented them all in one place. It would be great to do it during
> the
> > > > next release cycle.
> > > >
> > > > A few comments below.
> > > >
> > > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> > wrote:
> > > >
> > > >> - APIs not labeled or labeled as stable
> > > >> -- change in major version is only one that can break backward
> > > >> compatibility (client APIs or behavior)
> > > >>
> > > >
> > > > To clarify, stable APIs should not be changed in an incompatible way
> > > > without a deprecation cycle. Independently of whether it's a major
> > > release
> > > > or not.
> > > >
> > > >
> > > >> -- change in minor version can introduce new features, but not break
> > > >> backward compatibility
> > > >> -- change in patch version, is for bug fixes only.
> > > >>
> > > >
> > > > Right, this has been the case for a while already. Also see
> annotations
> > > > below.
> > > >
> > > >
> > > >> - APIs labeled as evolving can be broken in backward incompatible
> way
> > in
> > > >> any release, but are assumed less likely to be broken compared to
> > > unstable
> > > >> APIs
> > > >> - APIs labeled as unstable can be broken in backward incompatible
> way
> > in
> > > >> any release, major, minor or patch
> > > >>
> > > >
> > > > The relevant annotations do explain this:
> > > >
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > InterfaceStability.html
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > InterfaceStability.Stable.html
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > InterfaceStability.Evolving.html
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > InterfaceStability.Unstable.html
> > > >
> > > > But we should have a section in our documentation as well.
> > > >
> > > >
> > > >> - deprecated stable APIs are treated as any stable APIs, they can be
> > > >> removed only in major release, are not allowed to be changed in
> > backward
> > > >> incompatible way in either patch or minor version release
> > > >>
> > > >
> > > > Right, but note that stable non-deprecated APIs provide stronger
> > > > guarantees in major releases (they can't be changed in an
> incompatible
> > > way).
> > > >
> > > >>
> > > >> This means one should be able to upgrade server and recompile/deploy
> > > apps
> > > >> with clients to new minor.patch release with dependency version
> change
> > > >> being only change needed and there would be no drama.
> > > >>
> > > >
> > > > That should have been the case for a while as long as you are using
> > > stable
> > > > public APIs.
> > > >
> > > >>
> > > >> Practice/"features" like protocol version being a parameter, and
> > > >> defaulting
> > > >> to latest so auto updated with dependency update which introduces
> new
> > > >> protocol/behavior should not be used in public client APIs. To
> switch
> > > >> between backward incompatible APIs (contract and behaviors), ideally
> > > user
> > > >> should explicitly have to change code and not dependency only, but
> at
> > > >> least
> > > >> it should be clearly communicated that there are breaking changes to
> > > >> expect
> > > >> even with just dependency update by e.g. giving major version
> release
> > > >> clear
> > > >> meaning. If app dependency on Kafka client library minor.patch on
> same
> > > >> major is updated, and if there's a change in behavior or API
> requiring
> > > app
> > > >> code change - it's a bug.
> > > >>
> > > >
> > > > Hmm, if the protocol bump provides improved behaviour, that is not a
> > > > backwards incompatible change though. So, I don't think I agree with
> > > this.
> > > > Of course,
> > > > it does mean that _downgrading_ may cause loss of functionality.
> That's
> > > > OK, in my opinion.
> > > >
> > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > >> Everything else is improvement or feature request.
> > > >>
> > > >> If this was the case, and 1.0.0 was released today with APIs as they
> > are
> > > >> now, Scala client APIs even though deprecated would not break and
> > > require
> > > >> refactoring with every 1.* minor/patch release, and would only be
> > > allowed
> > > >> to be broken or removed in future major release, like 2.0.0
> > > >>
> > > >
> > > > Yes, that is the plan for any _public_ Scala client APIs that are
> still
> > > > present in 1.0.0. The public Scala client APIs are the producer and
> > > > consumer, basically. Again, we should make this clear in our
> > > documentation.
> > > > Note that we have made an effort to keep those APIs compatible for
> > quite
> > > a
> > > > while. It sounds like you have had some issues, were they related to
> > > usage
> > > > of internal Admin APIs by any chance (since we didn't have a public
> > > > AdminClient API until very recently)?
> > > >
> > > >>
> > > >> It should be also clear how long is each version supported - e.g. if
> > > >> minor.patch had meaning that there are no backward incompatible
> > changes,
> > > >> it's OK to file a bug only for current major.minor.patch; previous
> > major
> > > >> and its last minor.patch can only have patches released up to some
> > time
> > > >> like 1 up to 3 months.
> > > >>
> > > >
> > > > I am not sure I understood this point correctly. Can you please
> > clarify?
> > > >
> > > > If there are changes in release cadence with new versioning, it
> should
> > be
> > > >> clear too.
> > > >>
> > > >
> > > > No changes are planned. We have started time-based releases less
> than a
> > > > year ago and they seem to be going well.
> > > >
> > > > Ismael
> > > >
> > >
> >
> >
> >
> > --
> > -- Guozhang
> >
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@gmail.com>.
Yes, I agree that the choice of version number can be done separately.
That's why I said I'd file a separate JIRA for the documentation
improvements. Having said that, there are some expectations that people
have for projects that have reached 1.0.0 and we should try to allocate
time for the important ones.

Ismael

On 21 Jul 2017 8:07 pm, "Guozhang Wang" <wa...@gmail.com> wrote:

> Thanks Ismael. I agree with you on all these points, and for some of these
> points like 3) we never have a written-down policy though in practice we
> tend to follow some patterns.
>
> To me deciding what's the version number of the next major release does not
> necessarily mean we need now to change any of these or to set the hard
> rules along with it; I'd like to keep them as two separate discussions as
> they seem semi-orthogonal to me.
>
>
> Guozhang
>
>
> On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk> wrote:
>
> > On the topic of documentation, we should also document which releases are
> > still supported and which are not. There a few factors to consider:
> >
> > 1. Which branches receive bug fixes. We typically backport fixes to the
> two
> > most recent stable branches (the most recent stable branch typically gets
> > more backports than the older one).
> >
> > 2. Which branches receive security fixes. This could be the same as `1`,
> > but we could attempt to backport more aggressively for security fixes as
> > they tend to be rare (so far at least) and the impact could be severe.
> >
> > 3. The release policy for stable branches. We tend to stop releasing
> from a
> > given stable branch before we stop backporting fixes. Maybe that's OK,
> but
> > it would be good to document how we decide that a bug fix release is
> > needed.
> >
> > 4. How long are direct upgrades supported for. During the time-based
> > releases discussion, we agreed to support direct upgrades for 2 years. As
> > it happens, direct upgrades from 0.8.2 to 1.0.0 would not be supported if
> > we follow this strictly. Not clear if we want to do that.
> >
> > 5. How long are older clients supported for. Current brokers support
> > clients all the way to 0.8.x.
> >
> > 6. How long are older brokers supported for. Current clients support
> 0.10.x
> > and newer brokers.
> >
> > 7. How long are message formats supported for. We never discussed this. I
> > think 5 years would probably be the minimum.
> >
> > Ismael
> >
> > P.S. I'll file a JIRA to capture this information.
> >
> > On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk> wrote:
> >
> > > Hi Stevo,
> > >
> > > Thanks for your feedback. We should definitely do a better job of
> > > documenting things. We basically follow semantic versioning, but it's
> > > currently a bit confusing because:
> > >
> > > 1. There are 4 segments in the version. The "0." part should be ignored
> > > when deciding what is major, minor and patch at the moment, but many
> > people
> > > don't know this. Once we move to 1.0.0, that problem goes away.
> > >
> > > 2. To know what is a public API, you must check the Javadoc (
> > > https://kafka.apache.org/0110/javadoc/index.html?org/
> > > apache/kafka/clients/consumer/KafkaConsumer.html). If it's not listed
> > > there, it's not public API. Ideally, it would be obvious from the
> package
> > > name (i.e. there would be "internals" in the name), but we are not
> there
> > > yet. The exception are the old Scala APIs, but they have all been
> > > deprecated and they will be removed eventually (the old Scala consumers
> > > won't be removed until the June 2018 release at the earliest in order
> to
> > > give people time to migrate).
> > >
> > > 3. Even though we are following reasonably common practices, we haven't
> > > documented them all in one place. It would be great to do it during the
> > > next release cycle.
> > >
> > > A few comments below.
> > >
> > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> wrote:
> > >
> > >> - APIs not labeled or labeled as stable
> > >> -- change in major version is only one that can break backward
> > >> compatibility (client APIs or behavior)
> > >>
> > >
> > > To clarify, stable APIs should not be changed in an incompatible way
> > > without a deprecation cycle. Independently of whether it's a major
> > release
> > > or not.
> > >
> > >
> > >> -- change in minor version can introduce new features, but not break
> > >> backward compatibility
> > >> -- change in patch version, is for bug fixes only.
> > >>
> > >
> > > Right, this has been the case for a while already. Also see annotations
> > > below.
> > >
> > >
> > >> - APIs labeled as evolving can be broken in backward incompatible way
> in
> > >> any release, but are assumed less likely to be broken compared to
> > unstable
> > >> APIs
> > >> - APIs labeled as unstable can be broken in backward incompatible way
> in
> > >> any release, major, minor or patch
> > >>
> > >
> > > The relevant annotations do explain this:
> > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > InterfaceStability.html
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > InterfaceStability.Stable.html
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > InterfaceStability.Evolving.html
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > InterfaceStability.Unstable.html
> > >
> > > But we should have a section in our documentation as well.
> > >
> > >
> > >> - deprecated stable APIs are treated as any stable APIs, they can be
> > >> removed only in major release, are not allowed to be changed in
> backward
> > >> incompatible way in either patch or minor version release
> > >>
> > >
> > > Right, but note that stable non-deprecated APIs provide stronger
> > > guarantees in major releases (they can't be changed in an incompatible
> > way).
> > >
> > >>
> > >> This means one should be able to upgrade server and recompile/deploy
> > apps
> > >> with clients to new minor.patch release with dependency version change
> > >> being only change needed and there would be no drama.
> > >>
> > >
> > > That should have been the case for a while as long as you are using
> > stable
> > > public APIs.
> > >
> > >>
> > >> Practice/"features" like protocol version being a parameter, and
> > >> defaulting
> > >> to latest so auto updated with dependency update which introduces new
> > >> protocol/behavior should not be used in public client APIs. To switch
> > >> between backward incompatible APIs (contract and behaviors), ideally
> > user
> > >> should explicitly have to change code and not dependency only, but at
> > >> least
> > >> it should be clearly communicated that there are breaking changes to
> > >> expect
> > >> even with just dependency update by e.g. giving major version release
> > >> clear
> > >> meaning. If app dependency on Kafka client library minor.patch on same
> > >> major is updated, and if there's a change in behavior or API requiring
> > app
> > >> code change - it's a bug.
> > >>
> > >
> > > Hmm, if the protocol bump provides improved behaviour, that is not a
> > > backwards incompatible change though. So, I don't think I agree with
> > this.
> > > Of course,
> > > it does mean that _downgrading_ may cause loss of functionality. That's
> > > OK, in my opinion.
> > >
> > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > >> Everything else is improvement or feature request.
> > >>
> > >> If this was the case, and 1.0.0 was released today with APIs as they
> are
> > >> now, Scala client APIs even though deprecated would not break and
> > require
> > >> refactoring with every 1.* minor/patch release, and would only be
> > allowed
> > >> to be broken or removed in future major release, like 2.0.0
> > >>
> > >
> > > Yes, that is the plan for any _public_ Scala client APIs that are still
> > > present in 1.0.0. The public Scala client APIs are the producer and
> > > consumer, basically. Again, we should make this clear in our
> > documentation.
> > > Note that we have made an effort to keep those APIs compatible for
> quite
> > a
> > > while. It sounds like you have had some issues, were they related to
> > usage
> > > of internal Admin APIs by any chance (since we didn't have a public
> > > AdminClient API until very recently)?
> > >
> > >>
> > >> It should be also clear how long is each version supported - e.g. if
> > >> minor.patch had meaning that there are no backward incompatible
> changes,
> > >> it's OK to file a bug only for current major.minor.patch; previous
> major
> > >> and its last minor.patch can only have patches released up to some
> time
> > >> like 1 up to 3 months.
> > >>
> > >
> > > I am not sure I understood this point correctly. Can you please
> clarify?
> > >
> > > If there are changes in release cadence with new versioning, it should
> be
> > >> clear too.
> > >>
> > >
> > > No changes are planned. We have started time-based releases less than a
> > > year ago and they seem to be going well.
> > >
> > > Ismael
> > >
> >
>
>
>
> --
> -- Guozhang
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
Thanks Ismael. I agree with you on all these points, and for some of these
points like 3) we never have a written-down policy though in practice we
tend to follow some patterns.

To me deciding what's the version number of the next major release does not
necessarily mean we need now to change any of these or to set the hard
rules along with it; I'd like to keep them as two separate discussions as
they seem semi-orthogonal to me.


Guozhang


On Fri, Jul 21, 2017 at 8:44 AM, Ismael Juma <is...@juma.me.uk> wrote:

> On the topic of documentation, we should also document which releases are
> still supported and which are not. There a few factors to consider:
>
> 1. Which branches receive bug fixes. We typically backport fixes to the two
> most recent stable branches (the most recent stable branch typically gets
> more backports than the older one).
>
> 2. Which branches receive security fixes. This could be the same as `1`,
> but we could attempt to backport more aggressively for security fixes as
> they tend to be rare (so far at least) and the impact could be severe.
>
> 3. The release policy for stable branches. We tend to stop releasing from a
> given stable branch before we stop backporting fixes. Maybe that's OK, but
> it would be good to document how we decide that a bug fix release is
> needed.
>
> 4. How long are direct upgrades supported for. During the time-based
> releases discussion, we agreed to support direct upgrades for 2 years. As
> it happens, direct upgrades from 0.8.2 to 1.0.0 would not be supported if
> we follow this strictly. Not clear if we want to do that.
>
> 5. How long are older clients supported for. Current brokers support
> clients all the way to 0.8.x.
>
> 6. How long are older brokers supported for. Current clients support 0.10.x
> and newer brokers.
>
> 7. How long are message formats supported for. We never discussed this. I
> think 5 years would probably be the minimum.
>
> Ismael
>
> P.S. I'll file a JIRA to capture this information.
>
> On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk> wrote:
>
> > Hi Stevo,
> >
> > Thanks for your feedback. We should definitely do a better job of
> > documenting things. We basically follow semantic versioning, but it's
> > currently a bit confusing because:
> >
> > 1. There are 4 segments in the version. The "0." part should be ignored
> > when deciding what is major, minor and patch at the moment, but many
> people
> > don't know this. Once we move to 1.0.0, that problem goes away.
> >
> > 2. To know what is a public API, you must check the Javadoc (
> > https://kafka.apache.org/0110/javadoc/index.html?org/
> > apache/kafka/clients/consumer/KafkaConsumer.html). If it's not listed
> > there, it's not public API. Ideally, it would be obvious from the package
> > name (i.e. there would be "internals" in the name), but we are not there
> > yet. The exception are the old Scala APIs, but they have all been
> > deprecated and they will be removed eventually (the old Scala consumers
> > won't be removed until the June 2018 release at the earliest in order to
> > give people time to migrate).
> >
> > 3. Even though we are following reasonably common practices, we haven't
> > documented them all in one place. It would be great to do it during the
> > next release cycle.
> >
> > A few comments below.
> >
> > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com> wrote:
> >
> >> - APIs not labeled or labeled as stable
> >> -- change in major version is only one that can break backward
> >> compatibility (client APIs or behavior)
> >>
> >
> > To clarify, stable APIs should not be changed in an incompatible way
> > without a deprecation cycle. Independently of whether it's a major
> release
> > or not.
> >
> >
> >> -- change in minor version can introduce new features, but not break
> >> backward compatibility
> >> -- change in patch version, is for bug fixes only.
> >>
> >
> > Right, this has been the case for a while already. Also see annotations
> > below.
> >
> >
> >> - APIs labeled as evolving can be broken in backward incompatible way in
> >> any release, but are assumed less likely to be broken compared to
> unstable
> >> APIs
> >> - APIs labeled as unstable can be broken in backward incompatible way in
> >> any release, major, minor or patch
> >>
> >
> > The relevant annotations do explain this:
> >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > InterfaceStability.html
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > InterfaceStability.Stable.html
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > InterfaceStability.Evolving.html
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > InterfaceStability.Unstable.html
> >
> > But we should have a section in our documentation as well.
> >
> >
> >> - deprecated stable APIs are treated as any stable APIs, they can be
> >> removed only in major release, are not allowed to be changed in backward
> >> incompatible way in either patch or minor version release
> >>
> >
> > Right, but note that stable non-deprecated APIs provide stronger
> > guarantees in major releases (they can't be changed in an incompatible
> way).
> >
> >>
> >> This means one should be able to upgrade server and recompile/deploy
> apps
> >> with clients to new minor.patch release with dependency version change
> >> being only change needed and there would be no drama.
> >>
> >
> > That should have been the case for a while as long as you are using
> stable
> > public APIs.
> >
> >>
> >> Practice/"features" like protocol version being a parameter, and
> >> defaulting
> >> to latest so auto updated with dependency update which introduces new
> >> protocol/behavior should not be used in public client APIs. To switch
> >> between backward incompatible APIs (contract and behaviors), ideally
> user
> >> should explicitly have to change code and not dependency only, but at
> >> least
> >> it should be clearly communicated that there are breaking changes to
> >> expect
> >> even with just dependency update by e.g. giving major version release
> >> clear
> >> meaning. If app dependency on Kafka client library minor.patch on same
> >> major is updated, and if there's a change in behavior or API requiring
> app
> >> code change - it's a bug.
> >>
> >
> > Hmm, if the protocol bump provides improved behaviour, that is not a
> > backwards incompatible change though. So, I don't think I agree with
> this.
> > Of course,
> > it does mean that _downgrading_ may cause loss of functionality. That's
> > OK, in my opinion.
> >
> > Change introduced contrary to the SLO, is OK to be reported as bug.
> >> Everything else is improvement or feature request.
> >>
> >> If this was the case, and 1.0.0 was released today with APIs as they are
> >> now, Scala client APIs even though deprecated would not break and
> require
> >> refactoring with every 1.* minor/patch release, and would only be
> allowed
> >> to be broken or removed in future major release, like 2.0.0
> >>
> >
> > Yes, that is the plan for any _public_ Scala client APIs that are still
> > present in 1.0.0. The public Scala client APIs are the producer and
> > consumer, basically. Again, we should make this clear in our
> documentation.
> > Note that we have made an effort to keep those APIs compatible for quite
> a
> > while. It sounds like you have had some issues, were they related to
> usage
> > of internal Admin APIs by any chance (since we didn't have a public
> > AdminClient API until very recently)?
> >
> >>
> >> It should be also clear how long is each version supported - e.g. if
> >> minor.patch had meaning that there are no backward incompatible changes,
> >> it's OK to file a bug only for current major.minor.patch; previous major
> >> and its last minor.patch can only have patches released up to some time
> >> like 1 up to 3 months.
> >>
> >
> > I am not sure I understood this point correctly. Can you please clarify?
> >
> > If there are changes in release cadence with new versioning, it should be
> >> clear too.
> >>
> >
> > No changes are planned. We have started time-based releases less than a
> > year ago and they seem to be going well.
> >
> > Ismael
> >
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@juma.me.uk>.
On the topic of documentation, we should also document which releases are
still supported and which are not. There a few factors to consider:

1. Which branches receive bug fixes. We typically backport fixes to the two
most recent stable branches (the most recent stable branch typically gets
more backports than the older one).

2. Which branches receive security fixes. This could be the same as `1`,
but we could attempt to backport more aggressively for security fixes as
they tend to be rare (so far at least) and the impact could be severe.

3. The release policy for stable branches. We tend to stop releasing from a
given stable branch before we stop backporting fixes. Maybe that's OK, but
it would be good to document how we decide that a bug fix release is needed.

4. How long are direct upgrades supported for. During the time-based
releases discussion, we agreed to support direct upgrades for 2 years. As
it happens, direct upgrades from 0.8.2 to 1.0.0 would not be supported if
we follow this strictly. Not clear if we want to do that.

5. How long are older clients supported for. Current brokers support
clients all the way to 0.8.x.

6. How long are older brokers supported for. Current clients support 0.10.x
and newer brokers.

7. How long are message formats supported for. We never discussed this. I
think 5 years would probably be the minimum.

Ismael

P.S. I'll file a JIRA to capture this information.

On Wed, Jul 19, 2017 at 10:12 AM, Ismael Juma <is...@juma.me.uk> wrote:

> Hi Stevo,
>
> Thanks for your feedback. We should definitely do a better job of
> documenting things. We basically follow semantic versioning, but it's
> currently a bit confusing because:
>
> 1. There are 4 segments in the version. The "0." part should be ignored
> when deciding what is major, minor and patch at the moment, but many people
> don't know this. Once we move to 1.0.0, that problem goes away.
>
> 2. To know what is a public API, you must check the Javadoc (
> https://kafka.apache.org/0110/javadoc/index.html?org/
> apache/kafka/clients/consumer/KafkaConsumer.html). If it's not listed
> there, it's not public API. Ideally, it would be obvious from the package
> name (i.e. there would be "internals" in the name), but we are not there
> yet. The exception are the old Scala APIs, but they have all been
> deprecated and they will be removed eventually (the old Scala consumers
> won't be removed until the June 2018 release at the earliest in order to
> give people time to migrate).
>
> 3. Even though we are following reasonably common practices, we haven't
> documented them all in one place. It would be great to do it during the
> next release cycle.
>
> A few comments below.
>
> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com> wrote:
>
>> - APIs not labeled or labeled as stable
>> -- change in major version is only one that can break backward
>> compatibility (client APIs or behavior)
>>
>
> To clarify, stable APIs should not be changed in an incompatible way
> without a deprecation cycle. Independently of whether it's a major release
> or not.
>
>
>> -- change in minor version can introduce new features, but not break
>> backward compatibility
>> -- change in patch version, is for bug fixes only.
>>
>
> Right, this has been the case for a while already. Also see annotations
> below.
>
>
>> - APIs labeled as evolving can be broken in backward incompatible way in
>> any release, but are assumed less likely to be broken compared to unstable
>> APIs
>> - APIs labeled as unstable can be broken in backward incompatible way in
>> any release, major, minor or patch
>>
>
> The relevant annotations do explain this:
>
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.html
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.Stable.html
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.Evolving.html
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.Unstable.html
>
> But we should have a section in our documentation as well.
>
>
>> - deprecated stable APIs are treated as any stable APIs, they can be
>> removed only in major release, are not allowed to be changed in backward
>> incompatible way in either patch or minor version release
>>
>
> Right, but note that stable non-deprecated APIs provide stronger
> guarantees in major releases (they can't be changed in an incompatible way).
>
>>
>> This means one should be able to upgrade server and recompile/deploy apps
>> with clients to new minor.patch release with dependency version change
>> being only change needed and there would be no drama.
>>
>
> That should have been the case for a while as long as you are using stable
> public APIs.
>
>>
>> Practice/"features" like protocol version being a parameter, and
>> defaulting
>> to latest so auto updated with dependency update which introduces new
>> protocol/behavior should not be used in public client APIs. To switch
>> between backward incompatible APIs (contract and behaviors), ideally user
>> should explicitly have to change code and not dependency only, but at
>> least
>> it should be clearly communicated that there are breaking changes to
>> expect
>> even with just dependency update by e.g. giving major version release
>> clear
>> meaning. If app dependency on Kafka client library minor.patch on same
>> major is updated, and if there's a change in behavior or API requiring app
>> code change - it's a bug.
>>
>
> Hmm, if the protocol bump provides improved behaviour, that is not a
> backwards incompatible change though. So, I don't think I agree with this.
> Of course,
> it does mean that _downgrading_ may cause loss of functionality. That's
> OK, in my opinion.
>
> Change introduced contrary to the SLO, is OK to be reported as bug.
>> Everything else is improvement or feature request.
>>
>> If this was the case, and 1.0.0 was released today with APIs as they are
>> now, Scala client APIs even though deprecated would not break and require
>> refactoring with every 1.* minor/patch release, and would only be allowed
>> to be broken or removed in future major release, like 2.0.0
>>
>
> Yes, that is the plan for any _public_ Scala client APIs that are still
> present in 1.0.0. The public Scala client APIs are the producer and
> consumer, basically. Again, we should make this clear in our documentation.
> Note that we have made an effort to keep those APIs compatible for quite a
> while. It sounds like you have had some issues, were they related to usage
> of internal Admin APIs by any chance (since we didn't have a public
> AdminClient API until very recently)?
>
>>
>> It should be also clear how long is each version supported - e.g. if
>> minor.patch had meaning that there are no backward incompatible changes,
>> it's OK to file a bug only for current major.minor.patch; previous major
>> and its last minor.patch can only have patches released up to some time
>> like 1 up to 3 months.
>>
>
> I am not sure I understood this point correctly. Can you please clarify?
>
> If there are changes in release cadence with new versioning, it should be
>> clear too.
>>
>
> No changes are planned. We have started time-based releases less than a
> year ago and they seem to be going well.
>
> Ismael
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Michal Borowiecki <mi...@openbet.com>.
+1 for 1.0 (not for 12.0)


On 21/07/17 15:59, Michael Pearce wrote:
> +1
>
> Why not just drop the leading 0, and call next version 12.0.0 instead of 1.0.0, I think in my head I’ve always just dropped the leading 0 anyhow.
>
> On 21/07/2017, 04:15, "Neha Narkhede" <ne...@confluent.io> wrote:
>
>      +1 on 1.0. It's about time :)
>      On Thu, Jul 20, 2017 at 5:11 PM Ewen Cheslack-Postava <ew...@confluent.io>
>      wrote:
>
>      > Ack on the deprecation, as long as we actually give people the window. I
>      > guess we're not doing a good job of communicating what that period is
>      > anyway, so we can play a bit fast and loose.
>      >
>      > -Ewen
>      >
>      > On Thu, Jul 20, 2017 at 4:59 PM, Guozhang Wang <wa...@gmail.com> wrote:
>      >
>      > > We do have the KIP in the candidate list of the next release (see wiki
>      > > https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct)
>      > > as KIP-118:
>      > > Drop Support for Java 7 in Kafka 0.11
>      > > <https://cwiki.apache.org/confluence/display/KAFKA/KIP-
>      > > 118%3A+Drop+Support+for+Java+7+in+Kafka+0.11>
>      > > .
>      > >
>      > > Guozhang
>      > >
>      > > On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com>
>      > wrote:
>      > >
>      > > > +1 on 1.0!
>      > > > Are we also going to move to java 8?
>      > > > I also think we should drop the Unstable annotations completely.
>      > > >
>      > > > Cheers,
>      > > > Damian
>      > > >
>      > > > On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
>      > > >
>      > > > > Hi Stevo,
>      > > > >
>      > > > > Just trying to add to what Ismael has already replied you:
>      > > > >
>      > > > >
>      > > > > > Practice/"features" like protocol version being a parameter, and
>      > > > > defaulting
>      > > > > > to latest so auto updated with dependency update which introduces
>      > new
>      > > > > > protocol/behavior should not be used in public client APIs. To
>      > switch
>      > > > > > between backward incompatible APIs (contract and behaviors),
>      > ideally
>      > > > user
>      > > > > > should explicitly have to change code and not dependency only, but
>      > at
>      > > > > least
>      > > > > > it should be clearly communicated that there are breaking changes
>      > to
>      > > > > expect
>      > > > > > even with just dependency update by e.g. giving major version
>      > release
>      > > > > clear
>      > > > > > meaning. If app dependency on Kafka client library minor.patch on
>      > > same
>      > > > > > major is updated, and if there's a change in behavior or API
>      > > requiring
>      > > > > app
>      > > > > > code change - it's a bug.
>      > > > > >
>      > > > > > Change introduced contrary to the SLO, is OK to be reported as bug.
>      > > > > > Everything else is improvement or feature request.
>      > > > > >
>      > > > > > If this was the case, and 1.0.0 was released today with APIs as
>      > they
>      > > > are
>      > > > > > now, Scala client APIs even though deprecated would not break and
>      > > > require
>      > > > > > refactoring with every 1.* minor/patch release, and would only be
>      > > > allowed
>      > > > > > to be broken or removed in future major release, like 2.0.0
>      > > > >
>      > > > > Just to clarify, my proposal is that moving forward beyond the next
>      > > > release
>      > > > > we will not make any public API breaking changes in any of the major
>      > or
>      > > > > minor releases, but will only mark them as "deprecated", and
>      > deprecated
>      > > > > public APIs will be only considered for removing as early as the next
>      > > > major
>      > > > > release: so if we mark the scala consumer APIs as deprecated in
>      > 1.0.0,
>      > > we
>      > > > > should only be consider removing it at 2.0.0 or even later.
>      > > > >
>      > > > > > It should be also clear how long is each version supported - e.g.
>      > if
>      > > > > > minor.patch had meaning that there are no backward incompatible
>      > > > changes,
>      > > > > > it's OK to file a bug only for current major.minor.patch; previous
>      > > > major
>      > > > > > and its last minor.patch can only have patches released up to some
>      > > time
>      > > > > > like 1 up to 3 months.
>      > > > >
>      > > > > Currently in practice we have not ever done, for example a bugfix
>      > > release
>      > > > > on an older major / minor release: i.e. once we have released say
>      > > > 0.10.2.0
>      > > > > we did not release 0.10.1.2 any more. So practically speaking we do
>      > not
>      > > > > have a "support period" for older versions yet, and in the next
>      > coming
>      > > > > release I do not have plans to propose some concrete policy for that
>      > > > > matter.
>      > > > >
>      > > > >
>      > > > > Guozhang
>      > > > >
>      > > > >
>      > > > >
>      > > > > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk>
>      > > wrote:
>      > > > >
>      > > > > > Hi Stevo,
>      > > > > >
>      > > > > > Thanks for your feedback. We should definitely do a better job of
>      > > > > > documenting things. We basically follow semantic versioning, but
>      > it's
>      > > > > > currently a bit confusing because:
>      > > > > >
>      > > > > > 1. There are 4 segments in the version. The "0." part should be
>      > > ignored
>      > > > > > when deciding what is major, minor and patch at the moment, but
>      > many
>      > > > > people
>      > > > > > don't know this. Once we move to 1.0.0, that problem goes away.
>      > > > > >
>      > > > > > 2. To know what is a public API, you must check the Javadoc (
>      > > > > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
>      > > > > > kafka/clients/consumer/KafkaConsumer.html).
>      > > > > > If it's not listed there, it's not public API. Ideally, it would be
>      > > > > obvious
>      > > > > > from the package name (i.e. there would be "internals" in the
>      > name),
>      > > > but
>      > > > > we
>      > > > > > are not there yet. The exception are the old Scala APIs, but they
>      > > have
>      > > > > all
>      > > > > > been deprecated and they will be removed eventually (the old Scala
>      > > > > > consumers won't be removed until the June 2018 release at the
>      > > earliest
>      > > > in
>      > > > > > order to give people time to migrate).
>      > > > > >
>      > > > > > 3. Even though we are following reasonably common practices, we
>      > > haven't
>      > > > > > documented them all in one place. It would be great to do it during
>      > > the
>      > > > > > next release cycle.
>      > > > > >
>      > > > > > A few comments below.
>      > > > > >
>      > > > > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
>      > > > wrote:
>      > > > > >
>      > > > > > > - APIs not labeled or labeled as stable
>      > > > > > > -- change in major version is only one that can break backward
>      > > > > > > compatibility (client APIs or behavior)
>      > > > > > >
>      > > > > >
>      > > > > > To clarify, stable APIs should not be changed in an incompatible
>      > way
>      > > > > > without a deprecation cycle. Independently of whether it's a major
>      > > > > release
>      > > > > > or not.
>      > > > > >
>      > > > > >
>      > > > > > > -- change in minor version can introduce new features, but not
>      > > break
>      > > > > > > backward compatibility
>      > > > > > > -- change in patch version, is for bug fixes only.
>      > > > > > >
>      > > > > >
>      > > > > > Right, this has been the case for a while already. Also see
>      > > annotations
>      > > > > > below.
>      > > > > >
>      > > > > >
>      > > > > > > - APIs labeled as evolving can be broken in backward incompatible
>      > > way
>      > > > > in
>      > > > > > > any release, but are assumed less likely to be broken compared to
>      > > > > > unstable
>      > > > > > > APIs
>      > > > > > > - APIs labeled as unstable can be broken in backward incompatible
>      > > way
>      > > > > in
>      > > > > > > any release, major, minor or patch
>      > > > > > >
>      > > > > >
>      > > > > > The relevant annotations do explain this:
>      > > > > >
>      > > > > >
>      > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>      > > > common/annotation/
>      > > > > > InterfaceStability.html
>      > > > > >
>      > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>      > > > common/annotation/
>      > > > > > InterfaceStability.Stable.html
>      > > > > >
>      > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>      > > > common/annotation/
>      > > > > > InterfaceStability.Evolving.html
>      > > > > >
>      > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
>      > > > common/annotation/
>      > > > > > InterfaceStability.Unstable.html
>      > > > > >
>      > > > > > But we should have a section in our documentation as well.
>      > > > > >
>      > > > > >
>      > > > > > > - deprecated stable APIs are treated as any stable APIs, they can
>      > > be
>      > > > > > > removed only in major release, are not allowed to be changed in
>      > > > > backward
>      > > > > > > incompatible way in either patch or minor version release
>      > > > > > >
>      > > > > >
>      > > > > > Right, but note that stable non-deprecated APIs provide stronger
>      > > > > guarantees
>      > > > > > in major releases (they can't be changed in an incompatible way).
>      > > > > >
>      > > > > > >
>      > > > > > > This means one should be able to upgrade server and
>      > > recompile/deploy
>      > > > > apps
>      > > > > > > with clients to new minor.patch release with dependency version
>      > > > change
>      > > > > > > being only change needed and there would be no drama.
>      > > > > > >
>      > > > > >
>      > > > > > That should have been the case for a while as long as you are using
>      > > > > stable
>      > > > > > public APIs.
>      > > > > >
>      > > > > > >
>      > > > > > > Practice/"features" like protocol version being a parameter, and
>      > > > > > defaulting
>      > > > > > > to latest so auto updated with dependency update which introduces
>      > > new
>      > > > > > > protocol/behavior should not be used in public client APIs. To
>      > > switch
>      > > > > > > between backward incompatible APIs (contract and behaviors),
>      > > ideally
>      > > > > user
>      > > > > > > should explicitly have to change code and not dependency only,
>      > but
>      > > at
>      > > > > > least
>      > > > > > > it should be clearly communicated that there are breaking changes
>      > > to
>      > > > > > expect
>      > > > > > > even with just dependency update by e.g. giving major version
>      > > release
>      > > > > > clear
>      > > > > > > meaning. If app dependency on Kafka client library minor.patch on
>      > > > same
>      > > > > > > major is updated, and if there's a change in behavior or API
>      > > > requiring
>      > > > > > app
>      > > > > > > code change - it's a bug.
>      > > > > > >
>      > > > > >
>      > > > > > Hmm, if the protocol bump provides improved behaviour, that is not
>      > a
>      > > > > > backwards incompatible change though. So, I don't think I agree
>      > with
>      > > > > this.
>      > > > > > Of course,
>      > > > > > it does mean that _downgrading_ may cause loss of functionality.
>      > > That's
>      > > > > OK,
>      > > > > > in my opinion.
>      > > > > >
>      > > > > > Change introduced contrary to the SLO, is OK to be reported as bug.
>      > > > > > > Everything else is improvement or feature request.
>      > > > > > >
>      > > > > > > If this was the case, and 1.0.0 was released today with APIs as
>      > > they
>      > > > > are
>      > > > > > > now, Scala client APIs even though deprecated would not break and
>      > > > > require
>      > > > > > > refactoring with every 1.* minor/patch release, and would only be
>      > > > > allowed
>      > > > > > > to be broken or removed in future major release, like 2.0.0
>      > > > > > >
>      > > > > >
>      > > > > > Yes, that is the plan for any _public_ Scala client APIs that are
>      > > still
>      > > > > > present in 1.0.0. The public Scala client APIs are the producer and
>      > > > > > consumer, basically. Again, we should make this clear in our
>      > > > > documentation.
>      > > > > > Note that we have made an effort to keep those APIs compatible for
>      > > > quite
>      > > > > a
>      > > > > > while. It sounds like you have had some issues, were they related
>      > to
>      > > > > usage
>      > > > > > of internal Admin APIs by any chance (since we didn't have a public
>      > > > > > AdminClient API until very recently)?
>      > > > > >
>      > > > > > >
>      > > > > > > It should be also clear how long is each version supported - e.g.
>      > > if
>      > > > > > > minor.patch had meaning that there are no backward incompatible
>      > > > > changes,
>      > > > > > > it's OK to file a bug only for current major.minor.patch;
>      > previous
>      > > > > major
>      > > > > > > and its last minor.patch can only have patches released up to
>      > some
>      > > > time
>      > > > > > > like 1 up to 3 months.
>      > > > > > >
>      > > > > >
>      > > > > > I am not sure I understood this point correctly. Can you please
>      > > > clarify?
>      > > > > >
>      > > > > > If there are changes in release cadence with new versioning, it
>      > > should
>      > > > be
>      > > > > > > clear too.
>      > > > > > >
>      > > > > >
>      > > > > > No changes are planned. We have started time-based releases less
>      > > than a
>      > > > > > year ago and they seem to be going well.
>      > > > > >
>      > > > > > Ismael
>      > > > > >
>      > > > >
>      > > > >
>      > > > >
>      > > > > --
>      > > > > -- Guozhang
>      > > > >
>      > > >
>      > >
>      > >
>      > >
>      > > --
>      > > -- Guozhang
>      > >
>      >
>      --
>      Thanks,
>      Neha
>
>
> The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44(020 7896 0011) and then delete the email and any copies of it. Opinions, conclusion (etc) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG is a trading name of IG Markets Limited (a company registered in England and Wales, company number 04008957) and IG Index Limited (a company registered in England and Wales, company number 01190902). Registered address at Cannon Bridge House, 25 Dowgate Hill, London EC4R 2YA. Both IG Markets Limited (register number 195355) and IG Index Limited (register number 114059) are authorised and regulated by the Financial Conduct Authority.

-- 
Signature
Michal Borowiecki 	<http://www.openbet.com/>
*Senior Software Engineer L4*
*T:* 	+44 208 742 1600 <https://signature.openbet/cgi-bin/signature.php#> 	
	
	*E:* 	michal.borowiecki@openbet.com 
<https://signature.openbet/cgi-bin/signature.php#>
*DL: * 	+44 203 249 8448 
<https://signature.openbet/cgi-bin/signature.php#> 	
	
	*W:* 	www.openbet.com <https://signature.openbet/cgi-bin/signature.php#>
** 	
	
	
	** 	

<https://www.openbet.com/com/email_promo>
This message is confidential and intended only for the addressee. If you 
have received this message in error, please immediately notify the 
postmaster@openbet.com <ma...@openbet.com> and delete it 
from your system as well as any copies. The content of e-mails as well 
as traffic data may be monitored by OpenBet for employment and security 
purposes. To protect the environment please do not print this e-mail 
unless necessary. OpenBet Ltd. Registered Office: Chiswick Park Building 
9, 566 Chiswick High Road, London, W4 5XT, United Kingdom. A company 
registered in England and Wales. Registered no. 3134634. VAT no. 
GB927523612


Re: [DISCUSS] 2017 October release planning and release version

Posted by Michael Pearce <Mi...@ig.com>.
+1

Why not just drop the leading 0, and call next version 12.0.0 instead of 1.0.0, I think in my head I’ve always just dropped the leading 0 anyhow.

On 21/07/2017, 04:15, "Neha Narkhede" <ne...@confluent.io> wrote:

    +1 on 1.0. It's about time :)
    On Thu, Jul 20, 2017 at 5:11 PM Ewen Cheslack-Postava <ew...@confluent.io>
    wrote:

    > Ack on the deprecation, as long as we actually give people the window. I
    > guess we're not doing a good job of communicating what that period is
    > anyway, so we can play a bit fast and loose.
    >
    > -Ewen
    >
    > On Thu, Jul 20, 2017 at 4:59 PM, Guozhang Wang <wa...@gmail.com> wrote:
    >
    > > We do have the KIP in the candidate list of the next release (see wiki
    > > https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct)
    > > as KIP-118:
    > > Drop Support for Java 7 in Kafka 0.11
    > > <https://cwiki.apache.org/confluence/display/KAFKA/KIP-
    > > 118%3A+Drop+Support+for+Java+7+in+Kafka+0.11>
    > > .
    > >
    > > Guozhang
    > >
    > > On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com>
    > wrote:
    > >
    > > > +1 on 1.0!
    > > > Are we also going to move to java 8?
    > > > I also think we should drop the Unstable annotations completely.
    > > >
    > > > Cheers,
    > > > Damian
    > > >
    > > > On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
    > > >
    > > > > Hi Stevo,
    > > > >
    > > > > Just trying to add to what Ismael has already replied you:
    > > > >
    > > > >
    > > > > > Practice/"features" like protocol version being a parameter, and
    > > > > defaulting
    > > > > > to latest so auto updated with dependency update which introduces
    > new
    > > > > > protocol/behavior should not be used in public client APIs. To
    > switch
    > > > > > between backward incompatible APIs (contract and behaviors),
    > ideally
    > > > user
    > > > > > should explicitly have to change code and not dependency only, but
    > at
    > > > > least
    > > > > > it should be clearly communicated that there are breaking changes
    > to
    > > > > expect
    > > > > > even with just dependency update by e.g. giving major version
    > release
    > > > > clear
    > > > > > meaning. If app dependency on Kafka client library minor.patch on
    > > same
    > > > > > major is updated, and if there's a change in behavior or API
    > > requiring
    > > > > app
    > > > > > code change - it's a bug.
    > > > > >
    > > > > > Change introduced contrary to the SLO, is OK to be reported as bug.
    > > > > > Everything else is improvement or feature request.
    > > > > >
    > > > > > If this was the case, and 1.0.0 was released today with APIs as
    > they
    > > > are
    > > > > > now, Scala client APIs even though deprecated would not break and
    > > > require
    > > > > > refactoring with every 1.* minor/patch release, and would only be
    > > > allowed
    > > > > > to be broken or removed in future major release, like 2.0.0
    > > > >
    > > > > Just to clarify, my proposal is that moving forward beyond the next
    > > > release
    > > > > we will not make any public API breaking changes in any of the major
    > or
    > > > > minor releases, but will only mark them as "deprecated", and
    > deprecated
    > > > > public APIs will be only considered for removing as early as the next
    > > > major
    > > > > release: so if we mark the scala consumer APIs as deprecated in
    > 1.0.0,
    > > we
    > > > > should only be consider removing it at 2.0.0 or even later.
    > > > >
    > > > > > It should be also clear how long is each version supported - e.g.
    > if
    > > > > > minor.patch had meaning that there are no backward incompatible
    > > > changes,
    > > > > > it's OK to file a bug only for current major.minor.patch; previous
    > > > major
    > > > > > and its last minor.patch can only have patches released up to some
    > > time
    > > > > > like 1 up to 3 months.
    > > > >
    > > > > Currently in practice we have not ever done, for example a bugfix
    > > release
    > > > > on an older major / minor release: i.e. once we have released say
    > > > 0.10.2.0
    > > > > we did not release 0.10.1.2 any more. So practically speaking we do
    > not
    > > > > have a "support period" for older versions yet, and in the next
    > coming
    > > > > release I do not have plans to propose some concrete policy for that
    > > > > matter.
    > > > >
    > > > >
    > > > > Guozhang
    > > > >
    > > > >
    > > > >
    > > > > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk>
    > > wrote:
    > > > >
    > > > > > Hi Stevo,
    > > > > >
    > > > > > Thanks for your feedback. We should definitely do a better job of
    > > > > > documenting things. We basically follow semantic versioning, but
    > it's
    > > > > > currently a bit confusing because:
    > > > > >
    > > > > > 1. There are 4 segments in the version. The "0." part should be
    > > ignored
    > > > > > when deciding what is major, minor and patch at the moment, but
    > many
    > > > > people
    > > > > > don't know this. Once we move to 1.0.0, that problem goes away.
    > > > > >
    > > > > > 2. To know what is a public API, you must check the Javadoc (
    > > > > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
    > > > > > kafka/clients/consumer/KafkaConsumer.html).
    > > > > > If it's not listed there, it's not public API. Ideally, it would be
    > > > > obvious
    > > > > > from the package name (i.e. there would be "internals" in the
    > name),
    > > > but
    > > > > we
    > > > > > are not there yet. The exception are the old Scala APIs, but they
    > > have
    > > > > all
    > > > > > been deprecated and they will be removed eventually (the old Scala
    > > > > > consumers won't be removed until the June 2018 release at the
    > > earliest
    > > > in
    > > > > > order to give people time to migrate).
    > > > > >
    > > > > > 3. Even though we are following reasonably common practices, we
    > > haven't
    > > > > > documented them all in one place. It would be great to do it during
    > > the
    > > > > > next release cycle.
    > > > > >
    > > > > > A few comments below.
    > > > > >
    > > > > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
    > > > wrote:
    > > > > >
    > > > > > > - APIs not labeled or labeled as stable
    > > > > > > -- change in major version is only one that can break backward
    > > > > > > compatibility (client APIs or behavior)
    > > > > > >
    > > > > >
    > > > > > To clarify, stable APIs should not be changed in an incompatible
    > way
    > > > > > without a deprecation cycle. Independently of whether it's a major
    > > > > release
    > > > > > or not.
    > > > > >
    > > > > >
    > > > > > > -- change in minor version can introduce new features, but not
    > > break
    > > > > > > backward compatibility
    > > > > > > -- change in patch version, is for bug fixes only.
    > > > > > >
    > > > > >
    > > > > > Right, this has been the case for a while already. Also see
    > > annotations
    > > > > > below.
    > > > > >
    > > > > >
    > > > > > > - APIs labeled as evolving can be broken in backward incompatible
    > > way
    > > > > in
    > > > > > > any release, but are assumed less likely to be broken compared to
    > > > > > unstable
    > > > > > > APIs
    > > > > > > - APIs labeled as unstable can be broken in backward incompatible
    > > way
    > > > > in
    > > > > > > any release, major, minor or patch
    > > > > > >
    > > > > >
    > > > > > The relevant annotations do explain this:
    > > > > >
    > > > > >
    > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
    > > > common/annotation/
    > > > > > InterfaceStability.html
    > > > > >
    > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
    > > > common/annotation/
    > > > > > InterfaceStability.Stable.html
    > > > > >
    > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
    > > > common/annotation/
    > > > > > InterfaceStability.Evolving.html
    > > > > >
    > > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
    > > > common/annotation/
    > > > > > InterfaceStability.Unstable.html
    > > > > >
    > > > > > But we should have a section in our documentation as well.
    > > > > >
    > > > > >
    > > > > > > - deprecated stable APIs are treated as any stable APIs, they can
    > > be
    > > > > > > removed only in major release, are not allowed to be changed in
    > > > > backward
    > > > > > > incompatible way in either patch or minor version release
    > > > > > >
    > > > > >
    > > > > > Right, but note that stable non-deprecated APIs provide stronger
    > > > > guarantees
    > > > > > in major releases (they can't be changed in an incompatible way).
    > > > > >
    > > > > > >
    > > > > > > This means one should be able to upgrade server and
    > > recompile/deploy
    > > > > apps
    > > > > > > with clients to new minor.patch release with dependency version
    > > > change
    > > > > > > being only change needed and there would be no drama.
    > > > > > >
    > > > > >
    > > > > > That should have been the case for a while as long as you are using
    > > > > stable
    > > > > > public APIs.
    > > > > >
    > > > > > >
    > > > > > > Practice/"features" like protocol version being a parameter, and
    > > > > > defaulting
    > > > > > > to latest so auto updated with dependency update which introduces
    > > new
    > > > > > > protocol/behavior should not be used in public client APIs. To
    > > switch
    > > > > > > between backward incompatible APIs (contract and behaviors),
    > > ideally
    > > > > user
    > > > > > > should explicitly have to change code and not dependency only,
    > but
    > > at
    > > > > > least
    > > > > > > it should be clearly communicated that there are breaking changes
    > > to
    > > > > > expect
    > > > > > > even with just dependency update by e.g. giving major version
    > > release
    > > > > > clear
    > > > > > > meaning. If app dependency on Kafka client library minor.patch on
    > > > same
    > > > > > > major is updated, and if there's a change in behavior or API
    > > > requiring
    > > > > > app
    > > > > > > code change - it's a bug.
    > > > > > >
    > > > > >
    > > > > > Hmm, if the protocol bump provides improved behaviour, that is not
    > a
    > > > > > backwards incompatible change though. So, I don't think I agree
    > with
    > > > > this.
    > > > > > Of course,
    > > > > > it does mean that _downgrading_ may cause loss of functionality.
    > > That's
    > > > > OK,
    > > > > > in my opinion.
    > > > > >
    > > > > > Change introduced contrary to the SLO, is OK to be reported as bug.
    > > > > > > Everything else is improvement or feature request.
    > > > > > >
    > > > > > > If this was the case, and 1.0.0 was released today with APIs as
    > > they
    > > > > are
    > > > > > > now, Scala client APIs even though deprecated would not break and
    > > > > require
    > > > > > > refactoring with every 1.* minor/patch release, and would only be
    > > > > allowed
    > > > > > > to be broken or removed in future major release, like 2.0.0
    > > > > > >
    > > > > >
    > > > > > Yes, that is the plan for any _public_ Scala client APIs that are
    > > still
    > > > > > present in 1.0.0. The public Scala client APIs are the producer and
    > > > > > consumer, basically. Again, we should make this clear in our
    > > > > documentation.
    > > > > > Note that we have made an effort to keep those APIs compatible for
    > > > quite
    > > > > a
    > > > > > while. It sounds like you have had some issues, were they related
    > to
    > > > > usage
    > > > > > of internal Admin APIs by any chance (since we didn't have a public
    > > > > > AdminClient API until very recently)?
    > > > > >
    > > > > > >
    > > > > > > It should be also clear how long is each version supported - e.g.
    > > if
    > > > > > > minor.patch had meaning that there are no backward incompatible
    > > > > changes,
    > > > > > > it's OK to file a bug only for current major.minor.patch;
    > previous
    > > > > major
    > > > > > > and its last minor.patch can only have patches released up to
    > some
    > > > time
    > > > > > > like 1 up to 3 months.
    > > > > > >
    > > > > >
    > > > > > I am not sure I understood this point correctly. Can you please
    > > > clarify?
    > > > > >
    > > > > > If there are changes in release cadence with new versioning, it
    > > should
    > > > be
    > > > > > > clear too.
    > > > > > >
    > > > > >
    > > > > > No changes are planned. We have started time-based releases less
    > > than a
    > > > > > year ago and they seem to be going well.
    > > > > >
    > > > > > Ismael
    > > > > >
    > > > >
    > > > >
    > > > >
    > > > > --
    > > > > -- Guozhang
    > > > >
    > > >
    > >
    > >
    > >
    > > --
    > > -- Guozhang
    > >
    >
    --
    Thanks,
    Neha


The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44(020 7896 0011) and then delete the email and any copies of it. Opinions, conclusion (etc) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG is a trading name of IG Markets Limited (a company registered in England and Wales, company number 04008957) and IG Index Limited (a company registered in England and Wales, company number 01190902). Registered address at Cannon Bridge House, 25 Dowgate Hill, London EC4R 2YA. Both IG Markets Limited (register number 195355) and IG Index Limited (register number 114059) are authorised and regulated by the Financial Conduct Authority.

Re: [DISCUSS] 2017 October release planning and release version

Posted by Neha Narkhede <ne...@confluent.io>.
+1 on 1.0. It's about time :)
On Thu, Jul 20, 2017 at 5:11 PM Ewen Cheslack-Postava <ew...@confluent.io>
wrote:

> Ack on the deprecation, as long as we actually give people the window. I
> guess we're not doing a good job of communicating what that period is
> anyway, so we can play a bit fast and loose.
>
> -Ewen
>
> On Thu, Jul 20, 2017 at 4:59 PM, Guozhang Wang <wa...@gmail.com> wrote:
>
> > We do have the KIP in the candidate list of the next release (see wiki
> > https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct)
> > as KIP-118:
> > Drop Support for Java 7 in Kafka 0.11
> > <https://cwiki.apache.org/confluence/display/KAFKA/KIP-
> > 118%3A+Drop+Support+for+Java+7+in+Kafka+0.11>
> > .
> >
> > Guozhang
> >
> > On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com>
> wrote:
> >
> > > +1 on 1.0!
> > > Are we also going to move to java 8?
> > > I also think we should drop the Unstable annotations completely.
> > >
> > > Cheers,
> > > Damian
> > >
> > > On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
> > >
> > > > Hi Stevo,
> > > >
> > > > Just trying to add to what Ismael has already replied you:
> > > >
> > > >
> > > > > Practice/"features" like protocol version being a parameter, and
> > > > defaulting
> > > > > to latest so auto updated with dependency update which introduces
> new
> > > > > protocol/behavior should not be used in public client APIs. To
> switch
> > > > > between backward incompatible APIs (contract and behaviors),
> ideally
> > > user
> > > > > should explicitly have to change code and not dependency only, but
> at
> > > > least
> > > > > it should be clearly communicated that there are breaking changes
> to
> > > > expect
> > > > > even with just dependency update by e.g. giving major version
> release
> > > > clear
> > > > > meaning. If app dependency on Kafka client library minor.patch on
> > same
> > > > > major is updated, and if there's a change in behavior or API
> > requiring
> > > > app
> > > > > code change - it's a bug.
> > > > >
> > > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > > Everything else is improvement or feature request.
> > > > >
> > > > > If this was the case, and 1.0.0 was released today with APIs as
> they
> > > are
> > > > > now, Scala client APIs even though deprecated would not break and
> > > require
> > > > > refactoring with every 1.* minor/patch release, and would only be
> > > allowed
> > > > > to be broken or removed in future major release, like 2.0.0
> > > >
> > > > Just to clarify, my proposal is that moving forward beyond the next
> > > release
> > > > we will not make any public API breaking changes in any of the major
> or
> > > > minor releases, but will only mark them as "deprecated", and
> deprecated
> > > > public APIs will be only considered for removing as early as the next
> > > major
> > > > release: so if we mark the scala consumer APIs as deprecated in
> 1.0.0,
> > we
> > > > should only be consider removing it at 2.0.0 or even later.
> > > >
> > > > > It should be also clear how long is each version supported - e.g.
> if
> > > > > minor.patch had meaning that there are no backward incompatible
> > > changes,
> > > > > it's OK to file a bug only for current major.minor.patch; previous
> > > major
> > > > > and its last minor.patch can only have patches released up to some
> > time
> > > > > like 1 up to 3 months.
> > > >
> > > > Currently in practice we have not ever done, for example a bugfix
> > release
> > > > on an older major / minor release: i.e. once we have released say
> > > 0.10.2.0
> > > > we did not release 0.10.1.2 any more. So practically speaking we do
> not
> > > > have a "support period" for older versions yet, and in the next
> coming
> > > > release I do not have plans to propose some concrete policy for that
> > > > matter.
> > > >
> > > >
> > > > Guozhang
> > > >
> > > >
> > > >
> > > > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk>
> > wrote:
> > > >
> > > > > Hi Stevo,
> > > > >
> > > > > Thanks for your feedback. We should definitely do a better job of
> > > > > documenting things. We basically follow semantic versioning, but
> it's
> > > > > currently a bit confusing because:
> > > > >
> > > > > 1. There are 4 segments in the version. The "0." part should be
> > ignored
> > > > > when deciding what is major, minor and patch at the moment, but
> many
> > > > people
> > > > > don't know this. Once we move to 1.0.0, that problem goes away.
> > > > >
> > > > > 2. To know what is a public API, you must check the Javadoc (
> > > > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> > > > > kafka/clients/consumer/KafkaConsumer.html).
> > > > > If it's not listed there, it's not public API. Ideally, it would be
> > > > obvious
> > > > > from the package name (i.e. there would be "internals" in the
> name),
> > > but
> > > > we
> > > > > are not there yet. The exception are the old Scala APIs, but they
> > have
> > > > all
> > > > > been deprecated and they will be removed eventually (the old Scala
> > > > > consumers won't be removed until the June 2018 release at the
> > earliest
> > > in
> > > > > order to give people time to migrate).
> > > > >
> > > > > 3. Even though we are following reasonably common practices, we
> > haven't
> > > > > documented them all in one place. It would be great to do it during
> > the
> > > > > next release cycle.
> > > > >
> > > > > A few comments below.
> > > > >
> > > > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> > > wrote:
> > > > >
> > > > > > - APIs not labeled or labeled as stable
> > > > > > -- change in major version is only one that can break backward
> > > > > > compatibility (client APIs or behavior)
> > > > > >
> > > > >
> > > > > To clarify, stable APIs should not be changed in an incompatible
> way
> > > > > without a deprecation cycle. Independently of whether it's a major
> > > > release
> > > > > or not.
> > > > >
> > > > >
> > > > > > -- change in minor version can introduce new features, but not
> > break
> > > > > > backward compatibility
> > > > > > -- change in patch version, is for bug fixes only.
> > > > > >
> > > > >
> > > > > Right, this has been the case for a while already. Also see
> > annotations
> > > > > below.
> > > > >
> > > > >
> > > > > > - APIs labeled as evolving can be broken in backward incompatible
> > way
> > > > in
> > > > > > any release, but are assumed less likely to be broken compared to
> > > > > unstable
> > > > > > APIs
> > > > > > - APIs labeled as unstable can be broken in backward incompatible
> > way
> > > > in
> > > > > > any release, major, minor or patch
> > > > > >
> > > > >
> > > > > The relevant annotations do explain this:
> > > > >
> > > > >
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > > InterfaceStability.html
> > > > >
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > > InterfaceStability.Stable.html
> > > > >
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > > InterfaceStability.Evolving.html
> > > > >
> > > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > > common/annotation/
> > > > > InterfaceStability.Unstable.html
> > > > >
> > > > > But we should have a section in our documentation as well.
> > > > >
> > > > >
> > > > > > - deprecated stable APIs are treated as any stable APIs, they can
> > be
> > > > > > removed only in major release, are not allowed to be changed in
> > > > backward
> > > > > > incompatible way in either patch or minor version release
> > > > > >
> > > > >
> > > > > Right, but note that stable non-deprecated APIs provide stronger
> > > > guarantees
> > > > > in major releases (they can't be changed in an incompatible way).
> > > > >
> > > > > >
> > > > > > This means one should be able to upgrade server and
> > recompile/deploy
> > > > apps
> > > > > > with clients to new minor.patch release with dependency version
> > > change
> > > > > > being only change needed and there would be no drama.
> > > > > >
> > > > >
> > > > > That should have been the case for a while as long as you are using
> > > > stable
> > > > > public APIs.
> > > > >
> > > > > >
> > > > > > Practice/"features" like protocol version being a parameter, and
> > > > > defaulting
> > > > > > to latest so auto updated with dependency update which introduces
> > new
> > > > > > protocol/behavior should not be used in public client APIs. To
> > switch
> > > > > > between backward incompatible APIs (contract and behaviors),
> > ideally
> > > > user
> > > > > > should explicitly have to change code and not dependency only,
> but
> > at
> > > > > least
> > > > > > it should be clearly communicated that there are breaking changes
> > to
> > > > > expect
> > > > > > even with just dependency update by e.g. giving major version
> > release
> > > > > clear
> > > > > > meaning. If app dependency on Kafka client library minor.patch on
> > > same
> > > > > > major is updated, and if there's a change in behavior or API
> > > requiring
> > > > > app
> > > > > > code change - it's a bug.
> > > > > >
> > > > >
> > > > > Hmm, if the protocol bump provides improved behaviour, that is not
> a
> > > > > backwards incompatible change though. So, I don't think I agree
> with
> > > > this.
> > > > > Of course,
> > > > > it does mean that _downgrading_ may cause loss of functionality.
> > That's
> > > > OK,
> > > > > in my opinion.
> > > > >
> > > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > > > Everything else is improvement or feature request.
> > > > > >
> > > > > > If this was the case, and 1.0.0 was released today with APIs as
> > they
> > > > are
> > > > > > now, Scala client APIs even though deprecated would not break and
> > > > require
> > > > > > refactoring with every 1.* minor/patch release, and would only be
> > > > allowed
> > > > > > to be broken or removed in future major release, like 2.0.0
> > > > > >
> > > > >
> > > > > Yes, that is the plan for any _public_ Scala client APIs that are
> > still
> > > > > present in 1.0.0. The public Scala client APIs are the producer and
> > > > > consumer, basically. Again, we should make this clear in our
> > > > documentation.
> > > > > Note that we have made an effort to keep those APIs compatible for
> > > quite
> > > > a
> > > > > while. It sounds like you have had some issues, were they related
> to
> > > > usage
> > > > > of internal Admin APIs by any chance (since we didn't have a public
> > > > > AdminClient API until very recently)?
> > > > >
> > > > > >
> > > > > > It should be also clear how long is each version supported - e.g.
> > if
> > > > > > minor.patch had meaning that there are no backward incompatible
> > > > changes,
> > > > > > it's OK to file a bug only for current major.minor.patch;
> previous
> > > > major
> > > > > > and its last minor.patch can only have patches released up to
> some
> > > time
> > > > > > like 1 up to 3 months.
> > > > > >
> > > > >
> > > > > I am not sure I understood this point correctly. Can you please
> > > clarify?
> > > > >
> > > > > If there are changes in release cadence with new versioning, it
> > should
> > > be
> > > > > > clear too.
> > > > > >
> > > > >
> > > > > No changes are planned. We have started time-based releases less
> > than a
> > > > > year ago and they seem to be going well.
> > > > >
> > > > > Ismael
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > -- Guozhang
> > > >
> > >
> >
> >
> >
> > --
> > -- Guozhang
> >
>
-- 
Thanks,
Neha

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ewen Cheslack-Postava <ew...@confluent.io>.
Ack on the deprecation, as long as we actually give people the window. I
guess we're not doing a good job of communicating what that period is
anyway, so we can play a bit fast and loose.

-Ewen

On Thu, Jul 20, 2017 at 4:59 PM, Guozhang Wang <wa...@gmail.com> wrote:

> We do have the KIP in the candidate list of the next release (see wiki
> https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct)
> as KIP-118:
> Drop Support for Java 7 in Kafka 0.11
> <https://cwiki.apache.org/confluence/display/KAFKA/KIP-
> 118%3A+Drop+Support+for+Java+7+in+Kafka+0.11>
> .
>
> Guozhang
>
> On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com> wrote:
>
> > +1 on 1.0!
> > Are we also going to move to java 8?
> > I also think we should drop the Unstable annotations completely.
> >
> > Cheers,
> > Damian
> >
> > On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
> >
> > > Hi Stevo,
> > >
> > > Just trying to add to what Ismael has already replied you:
> > >
> > >
> > > > Practice/"features" like protocol version being a parameter, and
> > > defaulting
> > > > to latest so auto updated with dependency update which introduces new
> > > > protocol/behavior should not be used in public client APIs. To switch
> > > > between backward incompatible APIs (contract and behaviors), ideally
> > user
> > > > should explicitly have to change code and not dependency only, but at
> > > least
> > > > it should be clearly communicated that there are breaking changes to
> > > expect
> > > > even with just dependency update by e.g. giving major version release
> > > clear
> > > > meaning. If app dependency on Kafka client library minor.patch on
> same
> > > > major is updated, and if there's a change in behavior or API
> requiring
> > > app
> > > > code change - it's a bug.
> > > >
> > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > Everything else is improvement or feature request.
> > > >
> > > > If this was the case, and 1.0.0 was released today with APIs as they
> > are
> > > > now, Scala client APIs even though deprecated would not break and
> > require
> > > > refactoring with every 1.* minor/patch release, and would only be
> > allowed
> > > > to be broken or removed in future major release, like 2.0.0
> > >
> > > Just to clarify, my proposal is that moving forward beyond the next
> > release
> > > we will not make any public API breaking changes in any of the major or
> > > minor releases, but will only mark them as "deprecated", and deprecated
> > > public APIs will be only considered for removing as early as the next
> > major
> > > release: so if we mark the scala consumer APIs as deprecated in 1.0.0,
> we
> > > should only be consider removing it at 2.0.0 or even later.
> > >
> > > > It should be also clear how long is each version supported - e.g. if
> > > > minor.patch had meaning that there are no backward incompatible
> > changes,
> > > > it's OK to file a bug only for current major.minor.patch; previous
> > major
> > > > and its last minor.patch can only have patches released up to some
> time
> > > > like 1 up to 3 months.
> > >
> > > Currently in practice we have not ever done, for example a bugfix
> release
> > > on an older major / minor release: i.e. once we have released say
> > 0.10.2.0
> > > we did not release 0.10.1.2 any more. So practically speaking we do not
> > > have a "support period" for older versions yet, and in the next coming
> > > release I do not have plans to propose some concrete policy for that
> > > matter.
> > >
> > >
> > > Guozhang
> > >
> > >
> > >
> > > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk>
> wrote:
> > >
> > > > Hi Stevo,
> > > >
> > > > Thanks for your feedback. We should definitely do a better job of
> > > > documenting things. We basically follow semantic versioning, but it's
> > > > currently a bit confusing because:
> > > >
> > > > 1. There are 4 segments in the version. The "0." part should be
> ignored
> > > > when deciding what is major, minor and patch at the moment, but many
> > > people
> > > > don't know this. Once we move to 1.0.0, that problem goes away.
> > > >
> > > > 2. To know what is a public API, you must check the Javadoc (
> > > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> > > > kafka/clients/consumer/KafkaConsumer.html).
> > > > If it's not listed there, it's not public API. Ideally, it would be
> > > obvious
> > > > from the package name (i.e. there would be "internals" in the name),
> > but
> > > we
> > > > are not there yet. The exception are the old Scala APIs, but they
> have
> > > all
> > > > been deprecated and they will be removed eventually (the old Scala
> > > > consumers won't be removed until the June 2018 release at the
> earliest
> > in
> > > > order to give people time to migrate).
> > > >
> > > > 3. Even though we are following reasonably common practices, we
> haven't
> > > > documented them all in one place. It would be great to do it during
> the
> > > > next release cycle.
> > > >
> > > > A few comments below.
> > > >
> > > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> > wrote:
> > > >
> > > > > - APIs not labeled or labeled as stable
> > > > > -- change in major version is only one that can break backward
> > > > > compatibility (client APIs or behavior)
> > > > >
> > > >
> > > > To clarify, stable APIs should not be changed in an incompatible way
> > > > without a deprecation cycle. Independently of whether it's a major
> > > release
> > > > or not.
> > > >
> > > >
> > > > > -- change in minor version can introduce new features, but not
> break
> > > > > backward compatibility
> > > > > -- change in patch version, is for bug fixes only.
> > > > >
> > > >
> > > > Right, this has been the case for a while already. Also see
> annotations
> > > > below.
> > > >
> > > >
> > > > > - APIs labeled as evolving can be broken in backward incompatible
> way
> > > in
> > > > > any release, but are assumed less likely to be broken compared to
> > > > unstable
> > > > > APIs
> > > > > - APIs labeled as unstable can be broken in backward incompatible
> way
> > > in
> > > > > any release, major, minor or patch
> > > > >
> > > >
> > > > The relevant annotations do explain this:
> > > >
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Stable.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Evolving.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Unstable.html
> > > >
> > > > But we should have a section in our documentation as well.
> > > >
> > > >
> > > > > - deprecated stable APIs are treated as any stable APIs, they can
> be
> > > > > removed only in major release, are not allowed to be changed in
> > > backward
> > > > > incompatible way in either patch or minor version release
> > > > >
> > > >
> > > > Right, but note that stable non-deprecated APIs provide stronger
> > > guarantees
> > > > in major releases (they can't be changed in an incompatible way).
> > > >
> > > > >
> > > > > This means one should be able to upgrade server and
> recompile/deploy
> > > apps
> > > > > with clients to new minor.patch release with dependency version
> > change
> > > > > being only change needed and there would be no drama.
> > > > >
> > > >
> > > > That should have been the case for a while as long as you are using
> > > stable
> > > > public APIs.
> > > >
> > > > >
> > > > > Practice/"features" like protocol version being a parameter, and
> > > > defaulting
> > > > > to latest so auto updated with dependency update which introduces
> new
> > > > > protocol/behavior should not be used in public client APIs. To
> switch
> > > > > between backward incompatible APIs (contract and behaviors),
> ideally
> > > user
> > > > > should explicitly have to change code and not dependency only, but
> at
> > > > least
> > > > > it should be clearly communicated that there are breaking changes
> to
> > > > expect
> > > > > even with just dependency update by e.g. giving major version
> release
> > > > clear
> > > > > meaning. If app dependency on Kafka client library minor.patch on
> > same
> > > > > major is updated, and if there's a change in behavior or API
> > requiring
> > > > app
> > > > > code change - it's a bug.
> > > > >
> > > >
> > > > Hmm, if the protocol bump provides improved behaviour, that is not a
> > > > backwards incompatible change though. So, I don't think I agree with
> > > this.
> > > > Of course,
> > > > it does mean that _downgrading_ may cause loss of functionality.
> That's
> > > OK,
> > > > in my opinion.
> > > >
> > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > > Everything else is improvement or feature request.
> > > > >
> > > > > If this was the case, and 1.0.0 was released today with APIs as
> they
> > > are
> > > > > now, Scala client APIs even though deprecated would not break and
> > > require
> > > > > refactoring with every 1.* minor/patch release, and would only be
> > > allowed
> > > > > to be broken or removed in future major release, like 2.0.0
> > > > >
> > > >
> > > > Yes, that is the plan for any _public_ Scala client APIs that are
> still
> > > > present in 1.0.0. The public Scala client APIs are the producer and
> > > > consumer, basically. Again, we should make this clear in our
> > > documentation.
> > > > Note that we have made an effort to keep those APIs compatible for
> > quite
> > > a
> > > > while. It sounds like you have had some issues, were they related to
> > > usage
> > > > of internal Admin APIs by any chance (since we didn't have a public
> > > > AdminClient API until very recently)?
> > > >
> > > > >
> > > > > It should be also clear how long is each version supported - e.g.
> if
> > > > > minor.patch had meaning that there are no backward incompatible
> > > changes,
> > > > > it's OK to file a bug only for current major.minor.patch; previous
> > > major
> > > > > and its last minor.patch can only have patches released up to some
> > time
> > > > > like 1 up to 3 months.
> > > > >
> > > >
> > > > I am not sure I understood this point correctly. Can you please
> > clarify?
> > > >
> > > > If there are changes in release cadence with new versioning, it
> should
> > be
> > > > > clear too.
> > > > >
> > > >
> > > > No changes are planned. We have started time-based releases less
> than a
> > > > year ago and they seem to be going well.
> > > >
> > > > Ismael
> > > >
> > >
> > >
> > >
> > > --
> > > -- Guozhang
> > >
> >
>
>
>
> --
> -- Guozhang
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
We do have the KIP in the candidate list of the next release (see wiki
https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct)
as KIP-118:
Drop Support for Java 7 in Kafka 0.11
<https://cwiki.apache.org/confluence/display/KAFKA/KIP-118%3A+Drop+Support+for+Java+7+in+Kafka+0.11>
.

Guozhang

On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com> wrote:

> +1 on 1.0!
> Are we also going to move to java 8?
> I also think we should drop the Unstable annotations completely.
>
> Cheers,
> Damian
>
> On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
>
> > Hi Stevo,
> >
> > Just trying to add to what Ismael has already replied you:
> >
> >
> > > Practice/"features" like protocol version being a parameter, and
> > defaulting
> > > to latest so auto updated with dependency update which introduces new
> > > protocol/behavior should not be used in public client APIs. To switch
> > > between backward incompatible APIs (contract and behaviors), ideally
> user
> > > should explicitly have to change code and not dependency only, but at
> > least
> > > it should be clearly communicated that there are breaking changes to
> > expect
> > > even with just dependency update by e.g. giving major version release
> > clear
> > > meaning. If app dependency on Kafka client library minor.patch on same
> > > major is updated, and if there's a change in behavior or API requiring
> > app
> > > code change - it's a bug.
> > >
> > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > Everything else is improvement or feature request.
> > >
> > > If this was the case, and 1.0.0 was released today with APIs as they
> are
> > > now, Scala client APIs even though deprecated would not break and
> require
> > > refactoring with every 1.* minor/patch release, and would only be
> allowed
> > > to be broken or removed in future major release, like 2.0.0
> >
> > Just to clarify, my proposal is that moving forward beyond the next
> release
> > we will not make any public API breaking changes in any of the major or
> > minor releases, but will only mark them as "deprecated", and deprecated
> > public APIs will be only considered for removing as early as the next
> major
> > release: so if we mark the scala consumer APIs as deprecated in 1.0.0, we
> > should only be consider removing it at 2.0.0 or even later.
> >
> > > It should be also clear how long is each version supported - e.g. if
> > > minor.patch had meaning that there are no backward incompatible
> changes,
> > > it's OK to file a bug only for current major.minor.patch; previous
> major
> > > and its last minor.patch can only have patches released up to some time
> > > like 1 up to 3 months.
> >
> > Currently in practice we have not ever done, for example a bugfix release
> > on an older major / minor release: i.e. once we have released say
> 0.10.2.0
> > we did not release 0.10.1.2 any more. So practically speaking we do not
> > have a "support period" for older versions yet, and in the next coming
> > release I do not have plans to propose some concrete policy for that
> > matter.
> >
> >
> > Guozhang
> >
> >
> >
> > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk> wrote:
> >
> > > Hi Stevo,
> > >
> > > Thanks for your feedback. We should definitely do a better job of
> > > documenting things. We basically follow semantic versioning, but it's
> > > currently a bit confusing because:
> > >
> > > 1. There are 4 segments in the version. The "0." part should be ignored
> > > when deciding what is major, minor and patch at the moment, but many
> > people
> > > don't know this. Once we move to 1.0.0, that problem goes away.
> > >
> > > 2. To know what is a public API, you must check the Javadoc (
> > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> > > kafka/clients/consumer/KafkaConsumer.html).
> > > If it's not listed there, it's not public API. Ideally, it would be
> > obvious
> > > from the package name (i.e. there would be "internals" in the name),
> but
> > we
> > > are not there yet. The exception are the old Scala APIs, but they have
> > all
> > > been deprecated and they will be removed eventually (the old Scala
> > > consumers won't be removed until the June 2018 release at the earliest
> in
> > > order to give people time to migrate).
> > >
> > > 3. Even though we are following reasonably common practices, we haven't
> > > documented them all in one place. It would be great to do it during the
> > > next release cycle.
> > >
> > > A few comments below.
> > >
> > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> wrote:
> > >
> > > > - APIs not labeled or labeled as stable
> > > > -- change in major version is only one that can break backward
> > > > compatibility (client APIs or behavior)
> > > >
> > >
> > > To clarify, stable APIs should not be changed in an incompatible way
> > > without a deprecation cycle. Independently of whether it's a major
> > release
> > > or not.
> > >
> > >
> > > > -- change in minor version can introduce new features, but not break
> > > > backward compatibility
> > > > -- change in patch version, is for bug fixes only.
> > > >
> > >
> > > Right, this has been the case for a while already. Also see annotations
> > > below.
> > >
> > >
> > > > - APIs labeled as evolving can be broken in backward incompatible way
> > in
> > > > any release, but are assumed less likely to be broken compared to
> > > unstable
> > > > APIs
> > > > - APIs labeled as unstable can be broken in backward incompatible way
> > in
> > > > any release, major, minor or patch
> > > >
> > >
> > > The relevant annotations do explain this:
> > >
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.html
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.Stable.html
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.Evolving.html
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.Unstable.html
> > >
> > > But we should have a section in our documentation as well.
> > >
> > >
> > > > - deprecated stable APIs are treated as any stable APIs, they can be
> > > > removed only in major release, are not allowed to be changed in
> > backward
> > > > incompatible way in either patch or minor version release
> > > >
> > >
> > > Right, but note that stable non-deprecated APIs provide stronger
> > guarantees
> > > in major releases (they can't be changed in an incompatible way).
> > >
> > > >
> > > > This means one should be able to upgrade server and recompile/deploy
> > apps
> > > > with clients to new minor.patch release with dependency version
> change
> > > > being only change needed and there would be no drama.
> > > >
> > >
> > > That should have been the case for a while as long as you are using
> > stable
> > > public APIs.
> > >
> > > >
> > > > Practice/"features" like protocol version being a parameter, and
> > > defaulting
> > > > to latest so auto updated with dependency update which introduces new
> > > > protocol/behavior should not be used in public client APIs. To switch
> > > > between backward incompatible APIs (contract and behaviors), ideally
> > user
> > > > should explicitly have to change code and not dependency only, but at
> > > least
> > > > it should be clearly communicated that there are breaking changes to
> > > expect
> > > > even with just dependency update by e.g. giving major version release
> > > clear
> > > > meaning. If app dependency on Kafka client library minor.patch on
> same
> > > > major is updated, and if there's a change in behavior or API
> requiring
> > > app
> > > > code change - it's a bug.
> > > >
> > >
> > > Hmm, if the protocol bump provides improved behaviour, that is not a
> > > backwards incompatible change though. So, I don't think I agree with
> > this.
> > > Of course,
> > > it does mean that _downgrading_ may cause loss of functionality. That's
> > OK,
> > > in my opinion.
> > >
> > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > Everything else is improvement or feature request.
> > > >
> > > > If this was the case, and 1.0.0 was released today with APIs as they
> > are
> > > > now, Scala client APIs even though deprecated would not break and
> > require
> > > > refactoring with every 1.* minor/patch release, and would only be
> > allowed
> > > > to be broken or removed in future major release, like 2.0.0
> > > >
> > >
> > > Yes, that is the plan for any _public_ Scala client APIs that are still
> > > present in 1.0.0. The public Scala client APIs are the producer and
> > > consumer, basically. Again, we should make this clear in our
> > documentation.
> > > Note that we have made an effort to keep those APIs compatible for
> quite
> > a
> > > while. It sounds like you have had some issues, were they related to
> > usage
> > > of internal Admin APIs by any chance (since we didn't have a public
> > > AdminClient API until very recently)?
> > >
> > > >
> > > > It should be also clear how long is each version supported - e.g. if
> > > > minor.patch had meaning that there are no backward incompatible
> > changes,
> > > > it's OK to file a bug only for current major.minor.patch; previous
> > major
> > > > and its last minor.patch can only have patches released up to some
> time
> > > > like 1 up to 3 months.
> > > >
> > >
> > > I am not sure I understood this point correctly. Can you please
> clarify?
> > >
> > > If there are changes in release cadence with new versioning, it should
> be
> > > > clear too.
> > > >
> > >
> > > No changes are planned. We have started time-based releases less than a
> > > year ago and they seem to be going well.
> > >
> > > Ismael
> > >
> >
> >
> >
> > --
> > -- Guozhang
> >
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@gmail.com>.
We deprecated the old Scala consumers and some Stream APIs that I can
remember. I can't comment on the Streams APIs, but we don't intend to
remove the old Scala consumers before the June 2018 release (we said we'd
keep it for at least one year after deprecation).

Ismael

Ismael

On 21 Jul 2017 12:44 am, "Ewen Cheslack-Postava" <ew...@confluent.io> wrote:

> Did we deprecate anything in 0.11.0? The one concern with bumping major
> versions in consecutive releases is that you may not give people the room
> for transition if you deprecate and then immediately remove in the next
> release.
>
> -Ewen
>
> On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com> wrote:
>
> > +1 on 1.0!
> > Are we also going to move to java 8?
> > I also think we should drop the Unstable annotations completely.
> >
> > Cheers,
> > Damian
> >
> > On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
> >
> > > Hi Stevo,
> > >
> > > Just trying to add to what Ismael has already replied you:
> > >
> > >
> > > > Practice/"features" like protocol version being a parameter, and
> > > defaulting
> > > > to latest so auto updated with dependency update which introduces new
> > > > protocol/behavior should not be used in public client APIs. To switch
> > > > between backward incompatible APIs (contract and behaviors), ideally
> > user
> > > > should explicitly have to change code and not dependency only, but at
> > > least
> > > > it should be clearly communicated that there are breaking changes to
> > > expect
> > > > even with just dependency update by e.g. giving major version release
> > > clear
> > > > meaning. If app dependency on Kafka client library minor.patch on
> same
> > > > major is updated, and if there's a change in behavior or API
> requiring
> > > app
> > > > code change - it's a bug.
> > > >
> > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > Everything else is improvement or feature request.
> > > >
> > > > If this was the case, and 1.0.0 was released today with APIs as they
> > are
> > > > now, Scala client APIs even though deprecated would not break and
> > require
> > > > refactoring with every 1.* minor/patch release, and would only be
> > allowed
> > > > to be broken or removed in future major release, like 2.0.0
> > >
> > > Just to clarify, my proposal is that moving forward beyond the next
> > release
> > > we will not make any public API breaking changes in any of the major or
> > > minor releases, but will only mark them as "deprecated", and deprecated
> > > public APIs will be only considered for removing as early as the next
> > major
> > > release: so if we mark the scala consumer APIs as deprecated in 1.0.0,
> we
> > > should only be consider removing it at 2.0.0 or even later.
> > >
> > > > It should be also clear how long is each version supported - e.g. if
> > > > minor.patch had meaning that there are no backward incompatible
> > changes,
> > > > it's OK to file a bug only for current major.minor.patch; previous
> > major
> > > > and its last minor.patch can only have patches released up to some
> time
> > > > like 1 up to 3 months.
> > >
> > > Currently in practice we have not ever done, for example a bugfix
> release
> > > on an older major / minor release: i.e. once we have released say
> > 0.10.2.0
> > > we did not release 0.10.1.2 any more. So practically speaking we do not
> > > have a "support period" for older versions yet, and in the next coming
> > > release I do not have plans to propose some concrete policy for that
> > > matter.
> > >
> > >
> > > Guozhang
> > >
> > >
> > >
> > > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk>
> wrote:
> > >
> > > > Hi Stevo,
> > > >
> > > > Thanks for your feedback. We should definitely do a better job of
> > > > documenting things. We basically follow semantic versioning, but it's
> > > > currently a bit confusing because:
> > > >
> > > > 1. There are 4 segments in the version. The "0." part should be
> ignored
> > > > when deciding what is major, minor and patch at the moment, but many
> > > people
> > > > don't know this. Once we move to 1.0.0, that problem goes away.
> > > >
> > > > 2. To know what is a public API, you must check the Javadoc (
> > > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> > > > kafka/clients/consumer/KafkaConsumer.html).
> > > > If it's not listed there, it's not public API. Ideally, it would be
> > > obvious
> > > > from the package name (i.e. there would be "internals" in the name),
> > but
> > > we
> > > > are not there yet. The exception are the old Scala APIs, but they
> have
> > > all
> > > > been deprecated and they will be removed eventually (the old Scala
> > > > consumers won't be removed until the June 2018 release at the
> earliest
> > in
> > > > order to give people time to migrate).
> > > >
> > > > 3. Even though we are following reasonably common practices, we
> haven't
> > > > documented them all in one place. It would be great to do it during
> the
> > > > next release cycle.
> > > >
> > > > A few comments below.
> > > >
> > > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> > wrote:
> > > >
> > > > > - APIs not labeled or labeled as stable
> > > > > -- change in major version is only one that can break backward
> > > > > compatibility (client APIs or behavior)
> > > > >
> > > >
> > > > To clarify, stable APIs should not be changed in an incompatible way
> > > > without a deprecation cycle. Independently of whether it's a major
> > > release
> > > > or not.
> > > >
> > > >
> > > > > -- change in minor version can introduce new features, but not
> break
> > > > > backward compatibility
> > > > > -- change in patch version, is for bug fixes only.
> > > > >
> > > >
> > > > Right, this has been the case for a while already. Also see
> annotations
> > > > below.
> > > >
> > > >
> > > > > - APIs labeled as evolving can be broken in backward incompatible
> way
> > > in
> > > > > any release, but are assumed less likely to be broken compared to
> > > > unstable
> > > > > APIs
> > > > > - APIs labeled as unstable can be broken in backward incompatible
> way
> > > in
> > > > > any release, major, minor or patch
> > > > >
> > > >
> > > > The relevant annotations do explain this:
> > > >
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Stable.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Evolving.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Unstable.html
> > > >
> > > > But we should have a section in our documentation as well.
> > > >
> > > >
> > > > > - deprecated stable APIs are treated as any stable APIs, they can
> be
> > > > > removed only in major release, are not allowed to be changed in
> > > backward
> > > > > incompatible way in either patch or minor version release
> > > > >
> > > >
> > > > Right, but note that stable non-deprecated APIs provide stronger
> > > guarantees
> > > > in major releases (they can't be changed in an incompatible way).
> > > >
> > > > >
> > > > > This means one should be able to upgrade server and
> recompile/deploy
> > > apps
> > > > > with clients to new minor.patch release with dependency version
> > change
> > > > > being only change needed and there would be no drama.
> > > > >
> > > >
> > > > That should have been the case for a while as long as you are using
> > > stable
> > > > public APIs.
> > > >
> > > > >
> > > > > Practice/"features" like protocol version being a parameter, and
> > > > defaulting
> > > > > to latest so auto updated with dependency update which introduces
> new
> > > > > protocol/behavior should not be used in public client APIs. To
> switch
> > > > > between backward incompatible APIs (contract and behaviors),
> ideally
> > > user
> > > > > should explicitly have to change code and not dependency only, but
> at
> > > > least
> > > > > it should be clearly communicated that there are breaking changes
> to
> > > > expect
> > > > > even with just dependency update by e.g. giving major version
> release
> > > > clear
> > > > > meaning. If app dependency on Kafka client library minor.patch on
> > same
> > > > > major is updated, and if there's a change in behavior or API
> > requiring
> > > > app
> > > > > code change - it's a bug.
> > > > >
> > > >
> > > > Hmm, if the protocol bump provides improved behaviour, that is not a
> > > > backwards incompatible change though. So, I don't think I agree with
> > > this.
> > > > Of course,
> > > > it does mean that _downgrading_ may cause loss of functionality.
> That's
> > > OK,
> > > > in my opinion.
> > > >
> > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > > Everything else is improvement or feature request.
> > > > >
> > > > > If this was the case, and 1.0.0 was released today with APIs as
> they
> > > are
> > > > > now, Scala client APIs even though deprecated would not break and
> > > require
> > > > > refactoring with every 1.* minor/patch release, and would only be
> > > allowed
> > > > > to be broken or removed in future major release, like 2.0.0
> > > > >
> > > >
> > > > Yes, that is the plan for any _public_ Scala client APIs that are
> still
> > > > present in 1.0.0. The public Scala client APIs are the producer and
> > > > consumer, basically. Again, we should make this clear in our
> > > documentation.
> > > > Note that we have made an effort to keep those APIs compatible for
> > quite
> > > a
> > > > while. It sounds like you have had some issues, were they related to
> > > usage
> > > > of internal Admin APIs by any chance (since we didn't have a public
> > > > AdminClient API until very recently)?
> > > >
> > > > >
> > > > > It should be also clear how long is each version supported - e.g.
> if
> > > > > minor.patch had meaning that there are no backward incompatible
> > > changes,
> > > > > it's OK to file a bug only for current major.minor.patch; previous
> > > major
> > > > > and its last minor.patch can only have patches released up to some
> > time
> > > > > like 1 up to 3 months.
> > > > >
> > > >
> > > > I am not sure I understood this point correctly. Can you please
> > clarify?
> > > >
> > > > If there are changes in release cadence with new versioning, it
> should
> > be
> > > > > clear too.
> > > > >
> > > >
> > > > No changes are planned. We have started time-based releases less
> than a
> > > > year ago and they seem to be going well.
> > > >
> > > > Ismael
> > > >
> > >
> > >
> > >
> > > --
> > > -- Guozhang
> > >
> >
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
That's a good question, from
https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+0.11.0.0 it
seems we do have one deprecation (KIP-109: Old Consumer Deprecation
<https://cwiki.apache.org/confluence/display/KAFKA/KIP-109%3A+Old+Consumer+Deprecation>).
I'm fine with not removing the deprecated old consumer in the next release
even if it is bumped up as a major.


Guozhang

On Thu, Jul 20, 2017 at 4:44 PM, Ewen Cheslack-Postava <ew...@confluent.io>
wrote:

> Did we deprecate anything in 0.11.0? The one concern with bumping major
> versions in consecutive releases is that you may not give people the room
> for transition if you deprecate and then immediately remove in the next
> release.
>
> -Ewen
>
> On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com> wrote:
>
> > +1 on 1.0!
> > Are we also going to move to java 8?
> > I also think we should drop the Unstable annotations completely.
> >
> > Cheers,
> > Damian
> >
> > On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
> >
> > > Hi Stevo,
> > >
> > > Just trying to add to what Ismael has already replied you:
> > >
> > >
> > > > Practice/"features" like protocol version being a parameter, and
> > > defaulting
> > > > to latest so auto updated with dependency update which introduces new
> > > > protocol/behavior should not be used in public client APIs. To switch
> > > > between backward incompatible APIs (contract and behaviors), ideally
> > user
> > > > should explicitly have to change code and not dependency only, but at
> > > least
> > > > it should be clearly communicated that there are breaking changes to
> > > expect
> > > > even with just dependency update by e.g. giving major version release
> > > clear
> > > > meaning. If app dependency on Kafka client library minor.patch on
> same
> > > > major is updated, and if there's a change in behavior or API
> requiring
> > > app
> > > > code change - it's a bug.
> > > >
> > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > Everything else is improvement or feature request.
> > > >
> > > > If this was the case, and 1.0.0 was released today with APIs as they
> > are
> > > > now, Scala client APIs even though deprecated would not break and
> > require
> > > > refactoring with every 1.* minor/patch release, and would only be
> > allowed
> > > > to be broken or removed in future major release, like 2.0.0
> > >
> > > Just to clarify, my proposal is that moving forward beyond the next
> > release
> > > we will not make any public API breaking changes in any of the major or
> > > minor releases, but will only mark them as "deprecated", and deprecated
> > > public APIs will be only considered for removing as early as the next
> > major
> > > release: so if we mark the scala consumer APIs as deprecated in 1.0.0,
> we
> > > should only be consider removing it at 2.0.0 or even later.
> > >
> > > > It should be also clear how long is each version supported - e.g. if
> > > > minor.patch had meaning that there are no backward incompatible
> > changes,
> > > > it's OK to file a bug only for current major.minor.patch; previous
> > major
> > > > and its last minor.patch can only have patches released up to some
> time
> > > > like 1 up to 3 months.
> > >
> > > Currently in practice we have not ever done, for example a bugfix
> release
> > > on an older major / minor release: i.e. once we have released say
> > 0.10.2.0
> > > we did not release 0.10.1.2 any more. So practically speaking we do not
> > > have a "support period" for older versions yet, and in the next coming
> > > release I do not have plans to propose some concrete policy for that
> > > matter.
> > >
> > >
> > > Guozhang
> > >
> > >
> > >
> > > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk>
> wrote:
> > >
> > > > Hi Stevo,
> > > >
> > > > Thanks for your feedback. We should definitely do a better job of
> > > > documenting things. We basically follow semantic versioning, but it's
> > > > currently a bit confusing because:
> > > >
> > > > 1. There are 4 segments in the version. The "0." part should be
> ignored
> > > > when deciding what is major, minor and patch at the moment, but many
> > > people
> > > > don't know this. Once we move to 1.0.0, that problem goes away.
> > > >
> > > > 2. To know what is a public API, you must check the Javadoc (
> > > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> > > > kafka/clients/consumer/KafkaConsumer.html).
> > > > If it's not listed there, it's not public API. Ideally, it would be
> > > obvious
> > > > from the package name (i.e. there would be "internals" in the name),
> > but
> > > we
> > > > are not there yet. The exception are the old Scala APIs, but they
> have
> > > all
> > > > been deprecated and they will be removed eventually (the old Scala
> > > > consumers won't be removed until the June 2018 release at the
> earliest
> > in
> > > > order to give people time to migrate).
> > > >
> > > > 3. Even though we are following reasonably common practices, we
> haven't
> > > > documented them all in one place. It would be great to do it during
> the
> > > > next release cycle.
> > > >
> > > > A few comments below.
> > > >
> > > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> > wrote:
> > > >
> > > > > - APIs not labeled or labeled as stable
> > > > > -- change in major version is only one that can break backward
> > > > > compatibility (client APIs or behavior)
> > > > >
> > > >
> > > > To clarify, stable APIs should not be changed in an incompatible way
> > > > without a deprecation cycle. Independently of whether it's a major
> > > release
> > > > or not.
> > > >
> > > >
> > > > > -- change in minor version can introduce new features, but not
> break
> > > > > backward compatibility
> > > > > -- change in patch version, is for bug fixes only.
> > > > >
> > > >
> > > > Right, this has been the case for a while already. Also see
> annotations
> > > > below.
> > > >
> > > >
> > > > > - APIs labeled as evolving can be broken in backward incompatible
> way
> > > in
> > > > > any release, but are assumed less likely to be broken compared to
> > > > unstable
> > > > > APIs
> > > > > - APIs labeled as unstable can be broken in backward incompatible
> way
> > > in
> > > > > any release, major, minor or patch
> > > > >
> > > >
> > > > The relevant annotations do explain this:
> > > >
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Stable.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Evolving.html
> > > >
> > > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> > common/annotation/
> > > > InterfaceStability.Unstable.html
> > > >
> > > > But we should have a section in our documentation as well.
> > > >
> > > >
> > > > > - deprecated stable APIs are treated as any stable APIs, they can
> be
> > > > > removed only in major release, are not allowed to be changed in
> > > backward
> > > > > incompatible way in either patch or minor version release
> > > > >
> > > >
> > > > Right, but note that stable non-deprecated APIs provide stronger
> > > guarantees
> > > > in major releases (they can't be changed in an incompatible way).
> > > >
> > > > >
> > > > > This means one should be able to upgrade server and
> recompile/deploy
> > > apps
> > > > > with clients to new minor.patch release with dependency version
> > change
> > > > > being only change needed and there would be no drama.
> > > > >
> > > >
> > > > That should have been the case for a while as long as you are using
> > > stable
> > > > public APIs.
> > > >
> > > > >
> > > > > Practice/"features" like protocol version being a parameter, and
> > > > defaulting
> > > > > to latest so auto updated with dependency update which introduces
> new
> > > > > protocol/behavior should not be used in public client APIs. To
> switch
> > > > > between backward incompatible APIs (contract and behaviors),
> ideally
> > > user
> > > > > should explicitly have to change code and not dependency only, but
> at
> > > > least
> > > > > it should be clearly communicated that there are breaking changes
> to
> > > > expect
> > > > > even with just dependency update by e.g. giving major version
> release
> > > > clear
> > > > > meaning. If app dependency on Kafka client library minor.patch on
> > same
> > > > > major is updated, and if there's a change in behavior or API
> > requiring
> > > > app
> > > > > code change - it's a bug.
> > > > >
> > > >
> > > > Hmm, if the protocol bump provides improved behaviour, that is not a
> > > > backwards incompatible change though. So, I don't think I agree with
> > > this.
> > > > Of course,
> > > > it does mean that _downgrading_ may cause loss of functionality.
> That's
> > > OK,
> > > > in my opinion.
> > > >
> > > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > > Everything else is improvement or feature request.
> > > > >
> > > > > If this was the case, and 1.0.0 was released today with APIs as
> they
> > > are
> > > > > now, Scala client APIs even though deprecated would not break and
> > > require
> > > > > refactoring with every 1.* minor/patch release, and would only be
> > > allowed
> > > > > to be broken or removed in future major release, like 2.0.0
> > > > >
> > > >
> > > > Yes, that is the plan for any _public_ Scala client APIs that are
> still
> > > > present in 1.0.0. The public Scala client APIs are the producer and
> > > > consumer, basically. Again, we should make this clear in our
> > > documentation.
> > > > Note that we have made an effort to keep those APIs compatible for
> > quite
> > > a
> > > > while. It sounds like you have had some issues, were they related to
> > > usage
> > > > of internal Admin APIs by any chance (since we didn't have a public
> > > > AdminClient API until very recently)?
> > > >
> > > > >
> > > > > It should be also clear how long is each version supported - e.g.
> if
> > > > > minor.patch had meaning that there are no backward incompatible
> > > changes,
> > > > > it's OK to file a bug only for current major.minor.patch; previous
> > > major
> > > > > and its last minor.patch can only have patches released up to some
> > time
> > > > > like 1 up to 3 months.
> > > > >
> > > >
> > > > I am not sure I understood this point correctly. Can you please
> > clarify?
> > > >
> > > > If there are changes in release cadence with new versioning, it
> should
> > be
> > > > > clear too.
> > > > >
> > > >
> > > > No changes are planned. We have started time-based releases less
> than a
> > > > year ago and they seem to be going well.
> > > >
> > > > Ismael
> > > >
> > >
> > >
> > >
> > > --
> > > -- Guozhang
> > >
> >
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ewen Cheslack-Postava <ew...@confluent.io>.
Did we deprecate anything in 0.11.0? The one concern with bumping major
versions in consecutive releases is that you may not give people the room
for transition if you deprecate and then immediately remove in the next
release.

-Ewen

On Thu, Jul 20, 2017 at 4:51 AM, Damian Guy <da...@gmail.com> wrote:

> +1 on 1.0!
> Are we also going to move to java 8?
> I also think we should drop the Unstable annotations completely.
>
> Cheers,
> Damian
>
> On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:
>
> > Hi Stevo,
> >
> > Just trying to add to what Ismael has already replied you:
> >
> >
> > > Practice/"features" like protocol version being a parameter, and
> > defaulting
> > > to latest so auto updated with dependency update which introduces new
> > > protocol/behavior should not be used in public client APIs. To switch
> > > between backward incompatible APIs (contract and behaviors), ideally
> user
> > > should explicitly have to change code and not dependency only, but at
> > least
> > > it should be clearly communicated that there are breaking changes to
> > expect
> > > even with just dependency update by e.g. giving major version release
> > clear
> > > meaning. If app dependency on Kafka client library minor.patch on same
> > > major is updated, and if there's a change in behavior or API requiring
> > app
> > > code change - it's a bug.
> > >
> > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > Everything else is improvement or feature request.
> > >
> > > If this was the case, and 1.0.0 was released today with APIs as they
> are
> > > now, Scala client APIs even though deprecated would not break and
> require
> > > refactoring with every 1.* minor/patch release, and would only be
> allowed
> > > to be broken or removed in future major release, like 2.0.0
> >
> > Just to clarify, my proposal is that moving forward beyond the next
> release
> > we will not make any public API breaking changes in any of the major or
> > minor releases, but will only mark them as "deprecated", and deprecated
> > public APIs will be only considered for removing as early as the next
> major
> > release: so if we mark the scala consumer APIs as deprecated in 1.0.0, we
> > should only be consider removing it at 2.0.0 or even later.
> >
> > > It should be also clear how long is each version supported - e.g. if
> > > minor.patch had meaning that there are no backward incompatible
> changes,
> > > it's OK to file a bug only for current major.minor.patch; previous
> major
> > > and its last minor.patch can only have patches released up to some time
> > > like 1 up to 3 months.
> >
> > Currently in practice we have not ever done, for example a bugfix release
> > on an older major / minor release: i.e. once we have released say
> 0.10.2.0
> > we did not release 0.10.1.2 any more. So practically speaking we do not
> > have a "support period" for older versions yet, and in the next coming
> > release I do not have plans to propose some concrete policy for that
> > matter.
> >
> >
> > Guozhang
> >
> >
> >
> > On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk> wrote:
> >
> > > Hi Stevo,
> > >
> > > Thanks for your feedback. We should definitely do a better job of
> > > documenting things. We basically follow semantic versioning, but it's
> > > currently a bit confusing because:
> > >
> > > 1. There are 4 segments in the version. The "0." part should be ignored
> > > when deciding what is major, minor and patch at the moment, but many
> > people
> > > don't know this. Once we move to 1.0.0, that problem goes away.
> > >
> > > 2. To know what is a public API, you must check the Javadoc (
> > > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> > > kafka/clients/consumer/KafkaConsumer.html).
> > > If it's not listed there, it's not public API. Ideally, it would be
> > obvious
> > > from the package name (i.e. there would be "internals" in the name),
> but
> > we
> > > are not there yet. The exception are the old Scala APIs, but they have
> > all
> > > been deprecated and they will be removed eventually (the old Scala
> > > consumers won't be removed until the June 2018 release at the earliest
> in
> > > order to give people time to migrate).
> > >
> > > 3. Even though we are following reasonably common practices, we haven't
> > > documented them all in one place. It would be great to do it during the
> > > next release cycle.
> > >
> > > A few comments below.
> > >
> > > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com>
> wrote:
> > >
> > > > - APIs not labeled or labeled as stable
> > > > -- change in major version is only one that can break backward
> > > > compatibility (client APIs or behavior)
> > > >
> > >
> > > To clarify, stable APIs should not be changed in an incompatible way
> > > without a deprecation cycle. Independently of whether it's a major
> > release
> > > or not.
> > >
> > >
> > > > -- change in minor version can introduce new features, but not break
> > > > backward compatibility
> > > > -- change in patch version, is for bug fixes only.
> > > >
> > >
> > > Right, this has been the case for a while already. Also see annotations
> > > below.
> > >
> > >
> > > > - APIs labeled as evolving can be broken in backward incompatible way
> > in
> > > > any release, but are assumed less likely to be broken compared to
> > > unstable
> > > > APIs
> > > > - APIs labeled as unstable can be broken in backward incompatible way
> > in
> > > > any release, major, minor or patch
> > > >
> > >
> > > The relevant annotations do explain this:
> > >
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.html
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.Stable.html
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.Evolving.html
> > >
> > https://kafka.apache.org/0110/javadoc/org/apache/kafka/
> common/annotation/
> > > InterfaceStability.Unstable.html
> > >
> > > But we should have a section in our documentation as well.
> > >
> > >
> > > > - deprecated stable APIs are treated as any stable APIs, they can be
> > > > removed only in major release, are not allowed to be changed in
> > backward
> > > > incompatible way in either patch or minor version release
> > > >
> > >
> > > Right, but note that stable non-deprecated APIs provide stronger
> > guarantees
> > > in major releases (they can't be changed in an incompatible way).
> > >
> > > >
> > > > This means one should be able to upgrade server and recompile/deploy
> > apps
> > > > with clients to new minor.patch release with dependency version
> change
> > > > being only change needed and there would be no drama.
> > > >
> > >
> > > That should have been the case for a while as long as you are using
> > stable
> > > public APIs.
> > >
> > > >
> > > > Practice/"features" like protocol version being a parameter, and
> > > defaulting
> > > > to latest so auto updated with dependency update which introduces new
> > > > protocol/behavior should not be used in public client APIs. To switch
> > > > between backward incompatible APIs (contract and behaviors), ideally
> > user
> > > > should explicitly have to change code and not dependency only, but at
> > > least
> > > > it should be clearly communicated that there are breaking changes to
> > > expect
> > > > even with just dependency update by e.g. giving major version release
> > > clear
> > > > meaning. If app dependency on Kafka client library minor.patch on
> same
> > > > major is updated, and if there's a change in behavior or API
> requiring
> > > app
> > > > code change - it's a bug.
> > > >
> > >
> > > Hmm, if the protocol bump provides improved behaviour, that is not a
> > > backwards incompatible change though. So, I don't think I agree with
> > this.
> > > Of course,
> > > it does mean that _downgrading_ may cause loss of functionality. That's
> > OK,
> > > in my opinion.
> > >
> > > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > > Everything else is improvement or feature request.
> > > >
> > > > If this was the case, and 1.0.0 was released today with APIs as they
> > are
> > > > now, Scala client APIs even though deprecated would not break and
> > require
> > > > refactoring with every 1.* minor/patch release, and would only be
> > allowed
> > > > to be broken or removed in future major release, like 2.0.0
> > > >
> > >
> > > Yes, that is the plan for any _public_ Scala client APIs that are still
> > > present in 1.0.0. The public Scala client APIs are the producer and
> > > consumer, basically. Again, we should make this clear in our
> > documentation.
> > > Note that we have made an effort to keep those APIs compatible for
> quite
> > a
> > > while. It sounds like you have had some issues, were they related to
> > usage
> > > of internal Admin APIs by any chance (since we didn't have a public
> > > AdminClient API until very recently)?
> > >
> > > >
> > > > It should be also clear how long is each version supported - e.g. if
> > > > minor.patch had meaning that there are no backward incompatible
> > changes,
> > > > it's OK to file a bug only for current major.minor.patch; previous
> > major
> > > > and its last minor.patch can only have patches released up to some
> time
> > > > like 1 up to 3 months.
> > > >
> > >
> > > I am not sure I understood this point correctly. Can you please
> clarify?
> > >
> > > If there are changes in release cadence with new versioning, it should
> be
> > > > clear too.
> > > >
> > >
> > > No changes are planned. We have started time-based releases less than a
> > > year ago and they seem to be going well.
> > >
> > > Ismael
> > >
> >
> >
> >
> > --
> > -- Guozhang
> >
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Damian Guy <da...@gmail.com>.
+1 on 1.0!
Are we also going to move to java 8?
I also think we should drop the Unstable annotations completely.

Cheers,
Damian

On Wed, 19 Jul 2017 at 21:36 Guozhang Wang <wa...@gmail.com> wrote:

> Hi Stevo,
>
> Just trying to add to what Ismael has already replied you:
>
>
> > Practice/"features" like protocol version being a parameter, and
> defaulting
> > to latest so auto updated with dependency update which introduces new
> > protocol/behavior should not be used in public client APIs. To switch
> > between backward incompatible APIs (contract and behaviors), ideally user
> > should explicitly have to change code and not dependency only, but at
> least
> > it should be clearly communicated that there are breaking changes to
> expect
> > even with just dependency update by e.g. giving major version release
> clear
> > meaning. If app dependency on Kafka client library minor.patch on same
> > major is updated, and if there's a change in behavior or API requiring
> app
> > code change - it's a bug.
> >
> > Change introduced contrary to the SLO, is OK to be reported as bug.
> > Everything else is improvement or feature request.
> >
> > If this was the case, and 1.0.0 was released today with APIs as they are
> > now, Scala client APIs even though deprecated would not break and require
> > refactoring with every 1.* minor/patch release, and would only be allowed
> > to be broken or removed in future major release, like 2.0.0
>
> Just to clarify, my proposal is that moving forward beyond the next release
> we will not make any public API breaking changes in any of the major or
> minor releases, but will only mark them as "deprecated", and deprecated
> public APIs will be only considered for removing as early as the next major
> release: so if we mark the scala consumer APIs as deprecated in 1.0.0, we
> should only be consider removing it at 2.0.0 or even later.
>
> > It should be also clear how long is each version supported - e.g. if
> > minor.patch had meaning that there are no backward incompatible changes,
> > it's OK to file a bug only for current major.minor.patch; previous major
> > and its last minor.patch can only have patches released up to some time
> > like 1 up to 3 months.
>
> Currently in practice we have not ever done, for example a bugfix release
> on an older major / minor release: i.e. once we have released say 0.10.2.0
> we did not release 0.10.1.2 any more. So practically speaking we do not
> have a "support period" for older versions yet, and in the next coming
> release I do not have plans to propose some concrete policy for that
> matter.
>
>
> Guozhang
>
>
>
> On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk> wrote:
>
> > Hi Stevo,
> >
> > Thanks for your feedback. We should definitely do a better job of
> > documenting things. We basically follow semantic versioning, but it's
> > currently a bit confusing because:
> >
> > 1. There are 4 segments in the version. The "0." part should be ignored
> > when deciding what is major, minor and patch at the moment, but many
> people
> > don't know this. Once we move to 1.0.0, that problem goes away.
> >
> > 2. To know what is a public API, you must check the Javadoc (
> > https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> > kafka/clients/consumer/KafkaConsumer.html).
> > If it's not listed there, it's not public API. Ideally, it would be
> obvious
> > from the package name (i.e. there would be "internals" in the name), but
> we
> > are not there yet. The exception are the old Scala APIs, but they have
> all
> > been deprecated and they will be removed eventually (the old Scala
> > consumers won't be removed until the June 2018 release at the earliest in
> > order to give people time to migrate).
> >
> > 3. Even though we are following reasonably common practices, we haven't
> > documented them all in one place. It would be great to do it during the
> > next release cycle.
> >
> > A few comments below.
> >
> > On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com> wrote:
> >
> > > - APIs not labeled or labeled as stable
> > > -- change in major version is only one that can break backward
> > > compatibility (client APIs or behavior)
> > >
> >
> > To clarify, stable APIs should not be changed in an incompatible way
> > without a deprecation cycle. Independently of whether it's a major
> release
> > or not.
> >
> >
> > > -- change in minor version can introduce new features, but not break
> > > backward compatibility
> > > -- change in patch version, is for bug fixes only.
> > >
> >
> > Right, this has been the case for a while already. Also see annotations
> > below.
> >
> >
> > > - APIs labeled as evolving can be broken in backward incompatible way
> in
> > > any release, but are assumed less likely to be broken compared to
> > unstable
> > > APIs
> > > - APIs labeled as unstable can be broken in backward incompatible way
> in
> > > any release, major, minor or patch
> > >
> >
> > The relevant annotations do explain this:
> >
> >
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> > InterfaceStability.html
> >
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> > InterfaceStability.Stable.html
> >
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> > InterfaceStability.Evolving.html
> >
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> > InterfaceStability.Unstable.html
> >
> > But we should have a section in our documentation as well.
> >
> >
> > > - deprecated stable APIs are treated as any stable APIs, they can be
> > > removed only in major release, are not allowed to be changed in
> backward
> > > incompatible way in either patch or minor version release
> > >
> >
> > Right, but note that stable non-deprecated APIs provide stronger
> guarantees
> > in major releases (they can't be changed in an incompatible way).
> >
> > >
> > > This means one should be able to upgrade server and recompile/deploy
> apps
> > > with clients to new minor.patch release with dependency version change
> > > being only change needed and there would be no drama.
> > >
> >
> > That should have been the case for a while as long as you are using
> stable
> > public APIs.
> >
> > >
> > > Practice/"features" like protocol version being a parameter, and
> > defaulting
> > > to latest so auto updated with dependency update which introduces new
> > > protocol/behavior should not be used in public client APIs. To switch
> > > between backward incompatible APIs (contract and behaviors), ideally
> user
> > > should explicitly have to change code and not dependency only, but at
> > least
> > > it should be clearly communicated that there are breaking changes to
> > expect
> > > even with just dependency update by e.g. giving major version release
> > clear
> > > meaning. If app dependency on Kafka client library minor.patch on same
> > > major is updated, and if there's a change in behavior or API requiring
> > app
> > > code change - it's a bug.
> > >
> >
> > Hmm, if the protocol bump provides improved behaviour, that is not a
> > backwards incompatible change though. So, I don't think I agree with
> this.
> > Of course,
> > it does mean that _downgrading_ may cause loss of functionality. That's
> OK,
> > in my opinion.
> >
> > Change introduced contrary to the SLO, is OK to be reported as bug.
> > > Everything else is improvement or feature request.
> > >
> > > If this was the case, and 1.0.0 was released today with APIs as they
> are
> > > now, Scala client APIs even though deprecated would not break and
> require
> > > refactoring with every 1.* minor/patch release, and would only be
> allowed
> > > to be broken or removed in future major release, like 2.0.0
> > >
> >
> > Yes, that is the plan for any _public_ Scala client APIs that are still
> > present in 1.0.0. The public Scala client APIs are the producer and
> > consumer, basically. Again, we should make this clear in our
> documentation.
> > Note that we have made an effort to keep those APIs compatible for quite
> a
> > while. It sounds like you have had some issues, were they related to
> usage
> > of internal Admin APIs by any chance (since we didn't have a public
> > AdminClient API until very recently)?
> >
> > >
> > > It should be also clear how long is each version supported - e.g. if
> > > minor.patch had meaning that there are no backward incompatible
> changes,
> > > it's OK to file a bug only for current major.minor.patch; previous
> major
> > > and its last minor.patch can only have patches released up to some time
> > > like 1 up to 3 months.
> > >
> >
> > I am not sure I understood this point correctly. Can you please clarify?
> >
> > If there are changes in release cadence with new versioning, it should be
> > > clear too.
> > >
> >
> > No changes are planned. We have started time-based releases less than a
> > year ago and they seem to be going well.
> >
> > Ismael
> >
>
>
>
> --
> -- Guozhang
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
Hi Stevo,

Just trying to add to what Ismael has already replied you:


> Practice/"features" like protocol version being a parameter, and
defaulting
> to latest so auto updated with dependency update which introduces new
> protocol/behavior should not be used in public client APIs. To switch
> between backward incompatible APIs (contract and behaviors), ideally user
> should explicitly have to change code and not dependency only, but at
least
> it should be clearly communicated that there are breaking changes to
expect
> even with just dependency update by e.g. giving major version release
clear
> meaning. If app dependency on Kafka client library minor.patch on same
> major is updated, and if there's a change in behavior or API requiring app
> code change - it's a bug.
>
> Change introduced contrary to the SLO, is OK to be reported as bug.
> Everything else is improvement or feature request.
>
> If this was the case, and 1.0.0 was released today with APIs as they are
> now, Scala client APIs even though deprecated would not break and require
> refactoring with every 1.* minor/patch release, and would only be allowed
> to be broken or removed in future major release, like 2.0.0

Just to clarify, my proposal is that moving forward beyond the next release
we will not make any public API breaking changes in any of the major or
minor releases, but will only mark them as "deprecated", and deprecated
public APIs will be only considered for removing as early as the next major
release: so if we mark the scala consumer APIs as deprecated in 1.0.0, we
should only be consider removing it at 2.0.0 or even later.

> It should be also clear how long is each version supported - e.g. if
> minor.patch had meaning that there are no backward incompatible changes,
> it's OK to file a bug only for current major.minor.patch; previous major
> and its last minor.patch can only have patches released up to some time
> like 1 up to 3 months.

Currently in practice we have not ever done, for example a bugfix release
on an older major / minor release: i.e. once we have released say 0.10.2.0
we did not release 0.10.1.2 any more. So practically speaking we do not
have a "support period" for older versions yet, and in the next coming
release I do not have plans to propose some concrete policy for that matter.


Guozhang



On Wed, Jul 19, 2017 at 2:12 AM, Ismael Juma <is...@juma.me.uk> wrote:

> Hi Stevo,
>
> Thanks for your feedback. We should definitely do a better job of
> documenting things. We basically follow semantic versioning, but it's
> currently a bit confusing because:
>
> 1. There are 4 segments in the version. The "0." part should be ignored
> when deciding what is major, minor and patch at the moment, but many people
> don't know this. Once we move to 1.0.0, that problem goes away.
>
> 2. To know what is a public API, you must check the Javadoc (
> https://kafka.apache.org/0110/javadoc/index.html?org/apache/
> kafka/clients/consumer/KafkaConsumer.html).
> If it's not listed there, it's not public API. Ideally, it would be obvious
> from the package name (i.e. there would be "internals" in the name), but we
> are not there yet. The exception are the old Scala APIs, but they have all
> been deprecated and they will be removed eventually (the old Scala
> consumers won't be removed until the June 2018 release at the earliest in
> order to give people time to migrate).
>
> 3. Even though we are following reasonably common practices, we haven't
> documented them all in one place. It would be great to do it during the
> next release cycle.
>
> A few comments below.
>
> On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com> wrote:
>
> > - APIs not labeled or labeled as stable
> > -- change in major version is only one that can break backward
> > compatibility (client APIs or behavior)
> >
>
> To clarify, stable APIs should not be changed in an incompatible way
> without a deprecation cycle. Independently of whether it's a major release
> or not.
>
>
> > -- change in minor version can introduce new features, but not break
> > backward compatibility
> > -- change in patch version, is for bug fixes only.
> >
>
> Right, this has been the case for a while already. Also see annotations
> below.
>
>
> > - APIs labeled as evolving can be broken in backward incompatible way in
> > any release, but are assumed less likely to be broken compared to
> unstable
> > APIs
> > - APIs labeled as unstable can be broken in backward incompatible way in
> > any release, major, minor or patch
> >
>
> The relevant annotations do explain this:
>
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.html
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.Stable.html
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.Evolving.html
> https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/
> InterfaceStability.Unstable.html
>
> But we should have a section in our documentation as well.
>
>
> > - deprecated stable APIs are treated as any stable APIs, they can be
> > removed only in major release, are not allowed to be changed in backward
> > incompatible way in either patch or minor version release
> >
>
> Right, but note that stable non-deprecated APIs provide stronger guarantees
> in major releases (they can't be changed in an incompatible way).
>
> >
> > This means one should be able to upgrade server and recompile/deploy apps
> > with clients to new minor.patch release with dependency version change
> > being only change needed and there would be no drama.
> >
>
> That should have been the case for a while as long as you are using stable
> public APIs.
>
> >
> > Practice/"features" like protocol version being a parameter, and
> defaulting
> > to latest so auto updated with dependency update which introduces new
> > protocol/behavior should not be used in public client APIs. To switch
> > between backward incompatible APIs (contract and behaviors), ideally user
> > should explicitly have to change code and not dependency only, but at
> least
> > it should be clearly communicated that there are breaking changes to
> expect
> > even with just dependency update by e.g. giving major version release
> clear
> > meaning. If app dependency on Kafka client library minor.patch on same
> > major is updated, and if there's a change in behavior or API requiring
> app
> > code change - it's a bug.
> >
>
> Hmm, if the protocol bump provides improved behaviour, that is not a
> backwards incompatible change though. So, I don't think I agree with this.
> Of course,
> it does mean that _downgrading_ may cause loss of functionality. That's OK,
> in my opinion.
>
> Change introduced contrary to the SLO, is OK to be reported as bug.
> > Everything else is improvement or feature request.
> >
> > If this was the case, and 1.0.0 was released today with APIs as they are
> > now, Scala client APIs even though deprecated would not break and require
> > refactoring with every 1.* minor/patch release, and would only be allowed
> > to be broken or removed in future major release, like 2.0.0
> >
>
> Yes, that is the plan for any _public_ Scala client APIs that are still
> present in 1.0.0. The public Scala client APIs are the producer and
> consumer, basically. Again, we should make this clear in our documentation.
> Note that we have made an effort to keep those APIs compatible for quite a
> while. It sounds like you have had some issues, were they related to usage
> of internal Admin APIs by any chance (since we didn't have a public
> AdminClient API until very recently)?
>
> >
> > It should be also clear how long is each version supported - e.g. if
> > minor.patch had meaning that there are no backward incompatible changes,
> > it's OK to file a bug only for current major.minor.patch; previous major
> > and its last minor.patch can only have patches released up to some time
> > like 1 up to 3 months.
> >
>
> I am not sure I understood this point correctly. Can you please clarify?
>
> If there are changes in release cadence with new versioning, it should be
> > clear too.
> >
>
> No changes are planned. We have started time-based releases less than a
> year ago and they seem to be going well.
>
> Ismael
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@juma.me.uk>.
Hi Stevo,

Thanks for your feedback. We should definitely do a better job of
documenting things. We basically follow semantic versioning, but it's
currently a bit confusing because:

1. There are 4 segments in the version. The "0." part should be ignored
when deciding what is major, minor and patch at the moment, but many people
don't know this. Once we move to 1.0.0, that problem goes away.

2. To know what is a public API, you must check the Javadoc (
https://kafka.apache.org/0110/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html).
If it's not listed there, it's not public API. Ideally, it would be obvious
from the package name (i.e. there would be "internals" in the name), but we
are not there yet. The exception are the old Scala APIs, but they have all
been deprecated and they will be removed eventually (the old Scala
consumers won't be removed until the June 2018 release at the earliest in
order to give people time to migrate).

3. Even though we are following reasonably common practices, we haven't
documented them all in one place. It would be great to do it during the
next release cycle.

A few comments below.

On Wed, Jul 19, 2017 at 1:31 AM, Stevo Slavić <ss...@gmail.com> wrote:

> - APIs not labeled or labeled as stable
> -- change in major version is only one that can break backward
> compatibility (client APIs or behavior)
>

To clarify, stable APIs should not be changed in an incompatible way
without a deprecation cycle. Independently of whether it's a major release
or not.


> -- change in minor version can introduce new features, but not break
> backward compatibility
> -- change in patch version, is for bug fixes only.
>

Right, this has been the case for a while already. Also see annotations
below.


> - APIs labeled as evolving can be broken in backward incompatible way in
> any release, but are assumed less likely to be broken compared to unstable
> APIs
> - APIs labeled as unstable can be broken in backward incompatible way in
> any release, major, minor or patch
>

The relevant annotations do explain this:

https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/InterfaceStability.html
https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/InterfaceStability.Stable.html
https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/InterfaceStability.Evolving.html
https://kafka.apache.org/0110/javadoc/org/apache/kafka/common/annotation/InterfaceStability.Unstable.html

But we should have a section in our documentation as well.


> - deprecated stable APIs are treated as any stable APIs, they can be
> removed only in major release, are not allowed to be changed in backward
> incompatible way in either patch or minor version release
>

Right, but note that stable non-deprecated APIs provide stronger guarantees
in major releases (they can't be changed in an incompatible way).

>
> This means one should be able to upgrade server and recompile/deploy apps
> with clients to new minor.patch release with dependency version change
> being only change needed and there would be no drama.
>

That should have been the case for a while as long as you are using stable
public APIs.

>
> Practice/"features" like protocol version being a parameter, and defaulting
> to latest so auto updated with dependency update which introduces new
> protocol/behavior should not be used in public client APIs. To switch
> between backward incompatible APIs (contract and behaviors), ideally user
> should explicitly have to change code and not dependency only, but at least
> it should be clearly communicated that there are breaking changes to expect
> even with just dependency update by e.g. giving major version release clear
> meaning. If app dependency on Kafka client library minor.patch on same
> major is updated, and if there's a change in behavior or API requiring app
> code change - it's a bug.
>

Hmm, if the protocol bump provides improved behaviour, that is not a
backwards incompatible change though. So, I don't think I agree with this.
Of course,
it does mean that _downgrading_ may cause loss of functionality. That's OK,
in my opinion.

Change introduced contrary to the SLO, is OK to be reported as bug.
> Everything else is improvement or feature request.
>
> If this was the case, and 1.0.0 was released today with APIs as they are
> now, Scala client APIs even though deprecated would not break and require
> refactoring with every 1.* minor/patch release, and would only be allowed
> to be broken or removed in future major release, like 2.0.0
>

Yes, that is the plan for any _public_ Scala client APIs that are still
present in 1.0.0. The public Scala client APIs are the producer and
consumer, basically. Again, we should make this clear in our documentation.
Note that we have made an effort to keep those APIs compatible for quite a
while. It sounds like you have had some issues, were they related to usage
of internal Admin APIs by any chance (since we didn't have a public
AdminClient API until very recently)?

>
> It should be also clear how long is each version supported - e.g. if
> minor.patch had meaning that there are no backward incompatible changes,
> it's OK to file a bug only for current major.minor.patch; previous major
> and its last minor.patch can only have patches released up to some time
> like 1 up to 3 months.
>

I am not sure I understood this point correctly. Can you please clarify?

If there are changes in release cadence with new versioning, it should be
> clear too.
>

No changes are planned. We have started time-based releases less than a
year ago and they seem to be going well.

Ismael

Re: [DISCUSS] 2017 October release planning and release version

Posted by Stevo Slavić <ss...@gmail.com>.
With 0.x version of project at least I found lots of unexpected painful
things acceptable.
Graduating from 0.*, with x.y.z semantic versioning IMO it should be
clearly communicated to community is there change in meaning, what's the
"SLO", what are the commitments, what change in every segment means.

E.g.
- APIs not labeled or labeled as stable
-- change in major version is only one that can break backward
compatibility (client APIs or behavior)
-- change in minor version can introduce new features, but not break
backward compatibility
-- change in patch version, is for bug fixes only.
- APIs labeled as evolving can be broken in backward incompatible way in
any release, but are assumed less likely to be broken compared to unstable
APIs
- APIs labeled as unstable can be broken in backward incompatible way in
any release, major, minor or patch
- deprecated stable APIs are treated as any stable APIs, they can be
removed only in major release, are not allowed to be changed in backward
incompatible way in either patch or minor version release

This means one should be able to upgrade server and recompile/deploy apps
with clients to new minor.patch release with dependency version change
being only change needed and there would be no drama.

Practice/"features" like protocol version being a parameter, and defaulting
to latest so auto updated with dependency update which introduces new
protocol/behavior should not be used in public client APIs. To switch
between backward incompatible APIs (contract and behaviors), ideally user
should explicitly have to change code and not dependency only, but at least
it should be clearly communicated that there are breaking changes to expect
even with just dependency update by e.g. giving major version release clear
meaning. If app dependency on Kafka client library minor.patch on same
major is updated, and if there's a change in behavior or API requiring app
code change - it's a bug.

Change introduced contrary to the SLO, is OK to be reported as bug.
Everything else is improvement or feature request.

If this was the case, and 1.0.0 was released today with APIs as they are
now, Scala client APIs even though deprecated would not break and require
refactoring with every 1.* minor/patch release, and would only be allowed
to be broken or removed in future major release, like 2.0.0

It should be also clear how long is each version supported - e.g. if
minor.patch had meaning that there are no backward incompatible changes,
it's OK to file a bug only for current major.minor.patch; previous major
and its last minor.patch can only have patches released up to some time
like 1 up to 3 months.

If there are changes in release cadence with new versioning, it should be
clear too.

Kind regards,
Stevo Slavic.

On Wed, Jul 19, 2017 at 1:21 AM, Ismael Juma <is...@juma.me.uk> wrote:

> With regards to the annotations, I think we should expect that we'll always
> have some @Evolving APIs. Even though much of the platform is mature, we'll
> continue to improve and extend it. I'm generally not a fan of @Unstable
> (since there's rarely a reason to make breaking changes in bug fix release)
> and I would not mind if we removed them from the codebase for good.
>
> Ismael
>
> On Tue, Jul 18, 2017 at 4:07 PM, Guozhang Wang <wa...@gmail.com> wrote:
>
> > Currently the only @unstable annotations left are on Streams and one
> class
> > of Security modules, and I think we have a good chance of removing them
> all
> > in the next release.
> >
> > We also have a few @evolving annotations on the Admin, Streams, Security
> > modules etc. And I think we can try to also eliminate as many of them as
> > possible if people feel confident about these APIs but maybe a stretch
> goal
> > to get rid of all of them.
> >
> > Guozhang
> >
> > On Tue, Jul 18, 2017 at 3:49 PM, Gwen Shapira <gw...@confluent.io> wrote:
> >
> > > Also fine with the change in general.
> > >
> > > As you mentioned, 1.x indicates mature APIs, compatibility and
> stability.
> > > Are we going to remove the @unstable annotations in this release?
> > >
> > > Gwen
> > >
> > > On Tue, Jul 18, 2017 at 3:43 PM Ismael Juma <is...@juma.me.uk> wrote:
> > >
> > > > Hi Guozhang,
> > > >
> > > > Thanks for volunteering to be the release manager for the next
> release!
> > > >
> > > > I am +1 on naming the next release 1.0.0. As you said, Kafka is
> mature
> > > > enough and this will make it easier for others to understand our
> > > versioning
> > > > policy.
> > > >
> > > > A couple of minor questions inline.
> > > >
> > > > On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com>
> > > wrote:
> > > >
> > > > > major.minor.bugfix[.release-candidate]
> > > > >
> > > >
> > > > I think you mean major.minor.bugfix-rc (i.e. we typically use a dash
> > > > instead of dot for the RCx qualifier).
> > > >
> > > > >
> > > > > How do people feel about 1.0.0.x as the next Kafka version?
> > > >
> > > >
> > > > Do you mean 1.0.0?
> > > >
> > > > Ismael
> > > >
> > >
> >
> >
> >
> > --
> > -- Guozhang
> >
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@juma.me.uk>.
With regards to the annotations, I think we should expect that we'll always
have some @Evolving APIs. Even though much of the platform is mature, we'll
continue to improve and extend it. I'm generally not a fan of @Unstable
(since there's rarely a reason to make breaking changes in bug fix release)
and I would not mind if we removed them from the codebase for good.

Ismael

On Tue, Jul 18, 2017 at 4:07 PM, Guozhang Wang <wa...@gmail.com> wrote:

> Currently the only @unstable annotations left are on Streams and one class
> of Security modules, and I think we have a good chance of removing them all
> in the next release.
>
> We also have a few @evolving annotations on the Admin, Streams, Security
> modules etc. And I think we can try to also eliminate as many of them as
> possible if people feel confident about these APIs but maybe a stretch goal
> to get rid of all of them.
>
> Guozhang
>
> On Tue, Jul 18, 2017 at 3:49 PM, Gwen Shapira <gw...@confluent.io> wrote:
>
> > Also fine with the change in general.
> >
> > As you mentioned, 1.x indicates mature APIs, compatibility and stability.
> > Are we going to remove the @unstable annotations in this release?
> >
> > Gwen
> >
> > On Tue, Jul 18, 2017 at 3:43 PM Ismael Juma <is...@juma.me.uk> wrote:
> >
> > > Hi Guozhang,
> > >
> > > Thanks for volunteering to be the release manager for the next release!
> > >
> > > I am +1 on naming the next release 1.0.0. As you said, Kafka is mature
> > > enough and this will make it easier for others to understand our
> > versioning
> > > policy.
> > >
> > > A couple of minor questions inline.
> > >
> > > On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com>
> > wrote:
> > >
> > > > major.minor.bugfix[.release-candidate]
> > > >
> > >
> > > I think you mean major.minor.bugfix-rc (i.e. we typically use a dash
> > > instead of dot for the RCx qualifier).
> > >
> > > >
> > > > How do people feel about 1.0.0.x as the next Kafka version?
> > >
> > >
> > > Do you mean 1.0.0?
> > >
> > > Ismael
> > >
> >
>
>
>
> --
> -- Guozhang
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Guozhang Wang <wa...@gmail.com>.
Currently the only @unstable annotations left are on Streams and one class
of Security modules, and I think we have a good chance of removing them all
in the next release.

We also have a few @evolving annotations on the Admin, Streams, Security
modules etc. And I think we can try to also eliminate as many of them as
possible if people feel confident about these APIs but maybe a stretch goal
to get rid of all of them.

Guozhang

On Tue, Jul 18, 2017 at 3:49 PM, Gwen Shapira <gw...@confluent.io> wrote:

> Also fine with the change in general.
>
> As you mentioned, 1.x indicates mature APIs, compatibility and stability.
> Are we going to remove the @unstable annotations in this release?
>
> Gwen
>
> On Tue, Jul 18, 2017 at 3:43 PM Ismael Juma <is...@juma.me.uk> wrote:
>
> > Hi Guozhang,
> >
> > Thanks for volunteering to be the release manager for the next release!
> >
> > I am +1 on naming the next release 1.0.0. As you said, Kafka is mature
> > enough and this will make it easier for others to understand our
> versioning
> > policy.
> >
> > A couple of minor questions inline.
> >
> > On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com>
> wrote:
> >
> > > major.minor.bugfix[.release-candidate]
> > >
> >
> > I think you mean major.minor.bugfix-rc (i.e. we typically use a dash
> > instead of dot for the RCx qualifier).
> >
> > >
> > > How do people feel about 1.0.0.x as the next Kafka version?
> >
> >
> > Do you mean 1.0.0?
> >
> > Ismael
> >
>



-- 
-- Guozhang

Re: [DISCUSS] 2017 October release planning and release version

Posted by Gwen Shapira <gw...@confluent.io>.
Also fine with the change in general.

As you mentioned, 1.x indicates mature APIs, compatibility and stability.
Are we going to remove the @unstable annotations in this release?

Gwen

On Tue, Jul 18, 2017 at 3:43 PM Ismael Juma <is...@juma.me.uk> wrote:

> Hi Guozhang,
>
> Thanks for volunteering to be the release manager for the next release!
>
> I am +1 on naming the next release 1.0.0. As you said, Kafka is mature
> enough and this will make it easier for others to understand our versioning
> policy.
>
> A couple of minor questions inline.
>
> On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com> wrote:
>
> > major.minor.bugfix[.release-candidate]
> >
>
> I think you mean major.minor.bugfix-rc (i.e. we typically use a dash
> instead of dot for the RCx qualifier).
>
> >
> > How do people feel about 1.0.0.x as the next Kafka version?
>
>
> Do you mean 1.0.0?
>
> Ismael
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Ismael Juma <is...@juma.me.uk>.
Hi Guozhang,

Thanks for volunteering to be the release manager for the next release!

I am +1 on naming the next release 1.0.0. As you said, Kafka is mature
enough and this will make it easier for others to understand our versioning
policy.

A couple of minor questions inline.

On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com> wrote:

> major.minor.bugfix[.release-candidate]
>

I think you mean major.minor.bugfix-rc (i.e. we typically use a dash
instead of dot for the RCx qualifier).

>
> How do people feel about 1.0.0.x as the next Kafka version?


Do you mean 1.0.0?

Ismael

Re: [DISCUSS] 2017 October release planning and release version

Posted by Sriram Subramanian <ra...@confluent.io>.
+1!

On Fri, Jul 21, 2017 at 12:35 PM, Jay Kreps <ja...@confluent.io> wrote:

> 1.0! Let's do it!
>
> -Jay
>
> On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com> wrote:
>
> > Hi all,
> >
> > With 0.11.0.0 out of the way, I would like to volunteer to be the
> > release manager
> > for our next time-based feature release. See https://cwiki.apache.org/
> > confluence/display/KAFKA/Time+Based+Release+Plan if you missed
> > previous communication
> > on time-based releases or need a reminder.
> >
> > I put together a draft release plan with October 2017 as the release
> month
> > (as previously agreed) and a list of KIPs that have already been voted:
> >
> > https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct
> > As of today we already have 10 KIPs voted, including 2 merged and 3 with
> > PRs under review. As we start the process more KIPs are expected to be
> > added until the KIP freeze date.
> >
> > In addition to the current release plan, I would also like to propose to
> > set the release version to 1.0.0. More specifically, we will bump up the
> > major version from 0.11 to 1.0, and change the semantics of release
> digits
> > as:
> >
> > major.minor.bugfix[.release-candidate]
> >
> > To be better aligned with software versioning (https://en.wikipedia.org/
> > wiki/Software_versioning). Moving forward we can use three digits instead
> > of four in most places that do not require to indicate the rc number.
> Here
> > is my motivation:
> >
> > 1) Kafka has significantly evolved from its first Apache release of 0.7.0
> > (incubating) as a pub-sub messaging system into a distributed streaming
> > platform that can enable publish / store / process real-time data
> streams,
> > with the addition of replication (0.8.0), quota / security support for
> > multi-tenancy (0.8.2, 0.9.0), Connect and Streams API (0.9.0, 0.10.0),
> and
> > most recently the exactly-once support to have the desired
> > semantics (0.11.0); I think now is a good time to mark the release as a
> > major milestone in the evolution of Apache Kafka.
> >
> > 2) Some people believe 0.x means that the software is immature or not
> > stable, or the public APIs may subject to change incompatibly regardless
> > the fact that Kafka has been widely adopted in productions and the
> > community has made a great effort on maintaining backward compatibility.
> > Making Kafka 1.x will help with promoting the project for that
> perception.
> >
> > 3) Having three digits as of "major.minor.bugfix" is more natural from a
> > software version understanding pov and aligned with other open source
> > projects as well.
> >
> > How do people feel about 1.0.0.x as the next Kafka version? Please share
> > your thoughts.
> >
> > -- Guozhang
> >
>

Re: [DISCUSS] 2017 October release planning and release version

Posted by Jay Kreps <ja...@confluent.io>.
1.0! Let's do it!

-Jay

On Tue, Jul 18, 2017 at 3:36 PM, Guozhang Wang <wa...@gmail.com> wrote:

> Hi all,
>
> With 0.11.0.0 out of the way, I would like to volunteer to be the
> release manager
> for our next time-based feature release. See https://cwiki.apache.org/
> confluence/display/KAFKA/Time+Based+Release+Plan if you missed
> previous communication
> on time-based releases or need a reminder.
>
> I put together a draft release plan with October 2017 as the release month
> (as previously agreed) and a list of KIPs that have already been voted:
>
> https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+2017.Oct
> As of today we already have 10 KIPs voted, including 2 merged and 3 with
> PRs under review. As we start the process more KIPs are expected to be
> added until the KIP freeze date.
>
> In addition to the current release plan, I would also like to propose to
> set the release version to 1.0.0. More specifically, we will bump up the
> major version from 0.11 to 1.0, and change the semantics of release digits
> as:
>
> major.minor.bugfix[.release-candidate]
>
> To be better aligned with software versioning (https://en.wikipedia.org/
> wiki/Software_versioning). Moving forward we can use three digits instead
> of four in most places that do not require to indicate the rc number. Here
> is my motivation:
>
> 1) Kafka has significantly evolved from its first Apache release of 0.7.0
> (incubating) as a pub-sub messaging system into a distributed streaming
> platform that can enable publish / store / process real-time data streams,
> with the addition of replication (0.8.0), quota / security support for
> multi-tenancy (0.8.2, 0.9.0), Connect and Streams API (0.9.0, 0.10.0), and
> most recently the exactly-once support to have the desired
> semantics (0.11.0); I think now is a good time to mark the release as a
> major milestone in the evolution of Apache Kafka.
>
> 2) Some people believe 0.x means that the software is immature or not
> stable, or the public APIs may subject to change incompatibly regardless
> the fact that Kafka has been widely adopted in productions and the
> community has made a great effort on maintaining backward compatibility.
> Making Kafka 1.x will help with promoting the project for that perception.
>
> 3) Having three digits as of "major.minor.bugfix" is more natural from a
> software version understanding pov and aligned with other open source
> projects as well.
>
> How do people feel about 1.0.0.x as the next Kafka version? Please share
> your thoughts.
>
> -- Guozhang
>