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(schema-resolver): caching of latest artifacts and resilient schema updates #3839

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

gr8routdoors
Copy link
Contributor

This brings #3824 and #3823 to the mainline. See those issues for details.

gr8routdoors and others added 2 commits October 17, 2023 17:18
… (Apicurio#3823)

Adds the notion of a fault tolerance in refresh for production environments where it's better to use a stale cache value than die when a cache entry refresh fails.  See issue Apicurio#3807 for details.

Co-authored-by: Devon Berry <devon.berry@riotgames.com>
Caching of artifacts with no version (e.g. latest) did not work because reindex would use the new key that has the artifact version that was found in the lookup.  This code changes the default behavior to index both the artifact with its version and the latest/null version.  It also exposes a configuration property (`apicurio.registry.cache-latest`) where this behavior can be disabled for use cases where caching of latest is not desired.  See Apicurio#3824 for details.
@apicurio-bot
Copy link

apicurio-bot bot commented Oct 17, 2023

Thank you for creating a pull request!

Pinging @carlesarnal to respond or triage.

@gr8routdoors
Copy link
Contributor Author

@carlesarnal can you please take a look at this? I'd like it to land before the main line strays too far.

@carlesarnal carlesarnal merged commit 742c4eb into Apicurio:main Oct 20, 2023
20 checks passed
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

2 participants