You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using DefaultSchemaResolver it doesn't matter if a schema is found in the local ERCache, incorrect usage of .orElse() results in that the schema registry (getSchemaFromRegistry(parsedSchema, data, artifactReference)) is called anyway.
Description
Registry Version: latest
Persistence type: all
Environment
When using DefaultSchemaResolver it doesn't matter if a schema is found in the local ERCache,
incorrect usage of .orElse() results in that the schema registry (
getSchemaFromRegistry(parsedSchema, data, artifactReference)
) is called anyway.See: https://www.baeldung.com/java-optional-or-else-vs-or-else-get
Steps to Reproduce
Serialize 2 messages of the same type, the second message should not cause any calls to the schema registry if processed before the cache has expired.
Expected vs Actual Behaviour
When a schema is found in the local cache and it's not yet expired, the schema registry should not be called.
The text was updated successfully, but these errors were encountered: