-
Notifications
You must be signed in to change notification settings - Fork 12
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(H-Keyring): if getCache returns Error not EntryDoesNotExist, error #846
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bending change that we can not make to our customers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the number of people with custom caches that exist I'm ok.
However, we need to update put, and work out updating the DB-ESDK as well
# [1.8.0](v1.7.0...v1.8.0) (2024-10-11) ### Bug Fixes * **H-Keyring:** if getCache returns Error not EntryDoesNotExist, error ([#846](#846)) ([3413fcb](3413fcb)) * **Python:** Repolymorph to add orphaned shapes ([#831](#831)) ([2481dd8](2481dd8)) ### Features * Python MPL ([#805](#805)) ([cfb2f7e](cfb2f7e))
Issue #, if available:
Description of changes:
The Cache querying logic in the H-Keyring confuses a cache miss
with an opaque error.
i.e:
getCachOutput.Failure?
is not alwaysEntryDoesNotExist
but could be something likeOpaque(obj? := java.nio.BufferUnderflowException)
.Thus, I suggest we refactor the methods that call the cache to differentiate b/w Opaque and
EntryDoesNotExist
.For an explanation on why we should never catch and swallow all exceptions/errors,
see: https://stackoverflow.com/questions/2416316/why-is-the-catchexception-almost-always-a-bad-idea
Finally, the behavior of the H-Keyring is possibly better respected by such a change.
The H-Kerying's specification reads:
The specification does not say it MUST swallow all exceptions.
Squash/merge commit message, if applicable:
fix(H-Keyring): if getCache returns Opaque Error, return Opaque
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.