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

[schema] Improve SchemaInfoProvider to fetch schema info asynchronously #4836

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

sijie
Copy link
Member

@sijie sijie commented Jul 28, 2019

Motivation

Currently fetching schema information is done synchronously.
It is called in netty callback threads and will potentially block
async operations.

Modifications

Make most of the operations asynchronously in SchemaInfoProvider.

*Motivation*

Currently fetching schema information is done synchronously.
It is called in netty callback threads and will potentially block
async operations.

*Modifications*

Make most of the operations asynchronously in SchemaInfoProvider.
@sijie
Copy link
Member Author

sijie commented Jul 28, 2019

/cc @congbobo184 can you please also review this?

@sijie
Copy link
Member Author

sijie commented Jul 28, 2019

run cpp tests
run java8 tests

sijie added a commit to sijie/pulsar that referenced this pull request Jul 28, 2019
*Motivation*

Currently KeyValue schema doesn't support using AUTO_CONSUME.

This PR is to add this support.

This PR is based on apache#4836

*Changes*

- refactor a bit on Schema interface to support fetching schema info for both AutoConsumeSchema and KeyValueSchema before subscribing
- add AUTO_CONSUME support to KeyValueSchema
- add tests
@sijie sijie changed the title Improve SchemaInfoProvider to fetch schema info asynchronously [schema] Improve SchemaInfoProvider to fetch schema info asynchronously Jul 28, 2019
@sijie
Copy link
Member Author

sijie commented Jul 28, 2019

run cpp tests
run java8 tests

Copy link
Contributor

@codelipenghui codelipenghui left a comment

Choose a reason for hiding this comment

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

Overall looks good to me.

@codelipenghui
Copy link
Contributor

run cpp tests
run java8 tests

Copy link
Member

@jiazhai jiazhai left a comment

Choose a reason for hiding this comment

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

+1. great improvement.

@sijie sijie merged commit 91c4254 into apache:master Jul 29, 2019
@sijie sijie deleted the make_schema_provider_async branch July 29, 2019 02:25
sijie added a commit that referenced this pull request Jul 30, 2019
…ema (#4839)

*Motivation*

Currently KeyValue schema doesn't support using AUTO_CONSUME.

This PR is to add this support.

This PR is based on #4836

*Changes*

- refactor a bit on Schema interface to support fetching schema info for both AutoConsumeSchema and KeyValueSchema before subscribing
- add AUTO_CONSUME support to KeyValueSchema
- add tests
jiazhai pushed a commit that referenced this pull request Aug 28, 2019
*Motivation*

Currently fetching schema information is done synchronously.
It is called in netty callback threads and will potentially block
async operations.

*Modifications*

Make most of the operations asynchronously in SchemaInfoProvider.
(cherry picked from commit 91c4254)
jiazhai pushed a commit that referenced this pull request Aug 28, 2019
…ema (#4839)

*Motivation*

Currently KeyValue schema doesn't support using AUTO_CONSUME.

This PR is to add this support.

This PR is based on #4836

*Changes*

- refactor a bit on Schema interface to support fetching schema info for both AutoConsumeSchema and KeyValueSchema before subscribing
- add AUTO_CONSUME support to KeyValueSchema
- add tests
(cherry picked from commit dd7cc89)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants