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

Fix StructSchema reader cache loading logic #4962

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Fix StructSchema reader cache loading logic #4962

merged 1 commit into from
Aug 16, 2019

Conversation

congbobo184
Copy link
Contributor

Motivation

StructSchema LoadingCache for cache reader, but key is byte[], it will compare with the address's hashcode. So every decode will generate a new reader so we should change the type of the key for LoadingCache

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (yes)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@sijie
Copy link
Member

sijie commented Aug 16, 2019

@congbobo184 Nice catch! I thought I have fixed that in #4836

@sijie sijie added this to the 2.4.1 milestone Aug 16, 2019
@sijie sijie merged commit 0367f5f into apache:master Aug 16, 2019
@sijie sijie changed the title Fix the StructSchema load reader cache invalid Fix StructSchema reader cache loading logic Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants