Skip to content

Add NoSuchKeyError as possible errorcode #11

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

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

G8XSU
Copy link
Collaborator

@G8XSU G8XSU commented Sep 14, 2023

Motivation: Such checks are best performed in backend than having client checking empty or null value. This is also in-line with more critical requirement for functioning of NotFound introduced by MonitorUpdatingPersister Design.
Even though there are some popular KVStore's which do not throw such exception on keyNotFound such as AWS-DDB (arguably the most popular one), we can still figure out that key didn't exist if value was returned as null or by similar means in other stores.

@G8XSU G8XSU requested a review from jkczyz September 14, 2023 21:27
@G8XSU
Copy link
Collaborator Author

G8XSU commented Sep 15, 2023

If vss-server#22 is approved, i will also include those changes in this.

@G8XSU G8XSU requested a review from jkczyz September 18, 2023 17:08
Motivation: Such checks are best performed in backend than
having client checking empty or null value. This is also in-line
with more critical requirement for functioning of NotFound
introduced by MonitorUpdatingPersister Design.
Even though there are some popular KVStore's which do not throw
such exception on keyNotFound such as AWS-DDB (arguably the most popular one),
we can still figure out that key didn't exist if value was
returned as null or by similar means in other stores.
@G8XSU
Copy link
Collaborator Author

G8XSU commented Sep 19, 2023

Fixed doc nits again, squashed changes.

@G8XSU G8XSU merged commit 5fd1e91 into lightningdevkit:main Sep 19, 2023
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.

3 participants