Skip to content

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

Merged
eolivelli merged 1 commit into
apache:masterfrom
eolivelli:fix/SchemaInfoBuilder
Nov 9, 2021
Merged

Pulsar Client: restore SchemaInfo.builder() API#12673
eolivelli merged 1 commit into
apache:masterfrom
eolivelli:fix/SchemaInfoBuilder

Conversation

@eolivelli

Copy link
Copy Markdown
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

@eolivelli
eolivelli requested a review from merlimat November 8, 2021 16:25
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Nov 8, 2021
@eolivelli

Copy link
Copy Markdown
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

@eolivelli
eolivelli requested a review from rdhabalia November 8, 2021 16:47
@merlimat merlimat added this to the 2.9.0 milestone Nov 8, 2021

@nicoloboschi nicoloboschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@nicoloboschi

Copy link
Copy Markdown
Contributor

the failed test has been fixed here #12675

@nicoloboschi

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@eolivelli

Copy link
Copy Markdown
Contributor Author

@nicoloboschi I have rebased onto latest master

@eolivelli
eolivelli force-pushed the fix/SchemaInfoBuilder branch from 8ef4d36 to 137b684 Compare November 9, 2021 09:00
@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
Copy Markdown
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