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 #3834 #3826

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

gr8routdoors
Copy link
Contributor

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 #3824 for details.

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

Note that I took the liberty of changing the default behavior to cache latest/null version artifacts. I think this is possibly the only contentious part of this PR.

@gr8routdoors
Copy link
Contributor Author

Looks like an unrelated intermittent failure with the node app package task causing the red build. I've seen this a couple times locally when doing full builds, but haven't looked into the root cause yet. It usually just works by continuing from where it failed.

@carlesarnal
Copy link
Member

@gr8routdoors apparently there were some npm issues this afternoon (I dealt with them in another PR). Re-running the job so we have a full green build. Tomorrow I'll take a look at the full PR.

@carlesarnal carlesarnal merged commit f1e1569 into Apicurio:2.5.x Oct 23, 2023
14 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