Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulsar Client: restore SchemaInfo.builder() API #12673

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

eolivelli
Copy link
Contributor

Fixes #12670

Motivation

In 2.8.0 we dropped SchemaInfo.builder() API and so it is no more possible to create a SchemaInfo instance without using SchemaInfoImpl internal class.

Modifications

Restore a Builder, I used Delombok in order to get the same results as before.

Unfortunately SchemaInfo is now an interface, it was a class in 2.7, so we cannot really fix the breaking change at runtime, but at least users will be able to simply rebuild their code.

Verifying this change

This change is already covered by existing tests

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • The public API: yes

Documentation

  • no-need-doc

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 8, 2021
@eolivelli
Copy link
Contributor Author

@codelipenghui @merlimat I would commit this to branch-2.9 before cutting the new RC
also we should add this to branch-2.8 and get this to next release out of that branch

@merlimat merlimat added this to the 2.9.0 milestone Nov 8, 2021
Copy link
Contributor

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

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

+1

@nicoloboschi
Copy link
Contributor

the failed test has been fixed here #12675

@nicoloboschi
Copy link
Contributor

/pulsarbot run-failure-checks

@eolivelli
Copy link
Contributor Author

@nicoloboschi I have rebased onto latest master

@eolivelli eolivelli merged commit 849e4dc into apache:master Nov 9, 2021
@eolivelli eolivelli deleted the fix/SchemaInfoBuilder branch November 9, 2021 13:31
eolivelli added a commit that referenced this pull request Nov 9, 2021
eolivelli added a commit that referenced this pull request Nov 10, 2021
@eolivelli eolivelli added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Nov 10, 2021
@eolivelli
Copy link
Contributor Author

I have cherry picked this to branch-2.8

nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Nov 10, 2021
(cherry picked from commit 849e4dc)
(cherry picked from commit a749a31)
eolivelli added a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client cherry-picked/branch-2.8 Archived: 2.8 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java Client Schema API: SchemaInfo.builder() is no more present in Pulsar 2.8.x
5 participants