Skip to content

[branch-2.10][fix][common] Add back FutureUtil#waitForAll and FutureUtil#waitForAny methods with List parameter - #15810

Merged
nicoloboschi merged 2 commits into
apache:branch-2.10from
nicoloboschi:readd-futureutil
May 27, 2022
Merged

[branch-2.10][fix][common] Add back FutureUtil#waitForAll and FutureUtil#waitForAny methods with List parameter#15810
nicoloboschi merged 2 commits into
apache:branch-2.10from
nicoloboschi:readd-futureutil

Conversation

@nicoloboschi

Copy link
Copy Markdown
Contributor

Motivation

In #15329 FutureUtil#waitForAll and FutureUtil#waitForAny methods with List parameter have been removed.
If an application uses one of that method, it won't be able to switch from 2.10.0 to 2.10.1 (it will get a NoSuchMethodError exception).

Even if those methods are intedend to internal use only, this kind of breaking changes are not justified in a patch release.
For example both Stream Native KoP and Datastax Starlight for Kafka use the waitForAll method.

Modifications

  • Re add the List specific version of those methods

  • doc-not-needed

@nicoloboschi

Copy link
Copy Markdown
Contributor Author

@mattisonchao @eolivelli PTAL

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label May 26, 2022
@eolivelli

Copy link
Copy Markdown
Contributor

@BewareMyPower this patch fixes KoP on 2.10.1
PTAL

@mattisonchao mattisonchao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to add deprecated annotation or just revert #15329 at branch-2.10?

@nicoloboschi

Copy link
Copy Markdown
Contributor Author

The deprecated annotation makes sense.
The revert is not possible because the new method is used by 836ed1e

There's a cherry-pick issue on branch-2.10 (not related to this pull) that makes the CI fails, will fix it

@BewareMyPower

Copy link
Copy Markdown
Contributor

I agree. We should not introduce the API changes in patch releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants