-
Notifications
You must be signed in to change notification settings - Fork 378
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
[#3092] fix(relational-entity-store): Return false when deleting throw a NoSuchEntityException
#3100
Conversation
Another thing to confirm is that in the Relational Entity Store, there are two situations where NoSuchEntityException will be returned when deleting an entity: I'm not sure returning false for both cases is consistent with the KV Store. |
NoSuchEntityException
NoSuchEntityException
@yuqi1129 can you please confirm this? |
Generally, I'm okay with the changes. The logic is consistent with the KV store. @jerryshao WDYT |
I'm fine if the semantics are consistent. @yuqi1129 @qqqttt123 please review the detailed implementation to see if it is OK or not. |
Maybe this is a fix instead of an improvement. |
core/src/test/java/com/datastrato/gravitino/storage/TestEntityStorage.java
Show resolved
Hide resolved
NoSuchEntityException
NoSuchEntityException
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.
LGTM
…w a `NoSuchEntityException` (#3100) ### What changes were proposed in this pull request? When Relational Entity Store deleteing an entity and throwing a NoSuchEntityException, return false finally. It's consistent with KV Store. ### Why are the changes needed? Fix: #3092 ### How was this patch tested? Add some duplicate deleted uts. --------- Co-authored-by: xiaojiebao <[email protected]>
…g throw a `NoSuchEntityException` (apache#3100) ### What changes were proposed in this pull request? When Relational Entity Store deleteing an entity and throwing a NoSuchEntityException, return false finally. It's consistent with KV Store. ### Why are the changes needed? Fix: apache#3092 ### How was this patch tested? Add some duplicate deleted uts. --------- Co-authored-by: xiaojiebao <[email protected]>
What changes were proposed in this pull request?
When Relational Entity Store deleteing an entity and throwing a NoSuchEntityException, return false finally. It's consistent with KV Store.
Why are the changes needed?
Fix: #3092
How was this patch tested?
Add some duplicate deleted uts.