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
…blem when visiting EntityStore (#654)
### What changes were proposed in this pull request?
Introducing the `reentrantReadWriteLock` to alleviate possible
concurrent problems to access the `KvEntityStore`
### Why are the changes needed?
`KvEntityStore` subjects to concurrent problems when multi-thread access
it at the same time. For instance, if there are
multiple threads are attempting to save the entity with the same name
identifier into the store. We must ensure that the entity can only be
saved successfully once.
Fix: #643Fix: #618
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
New test case named `testConcurrentIssues` in `TestKvEntityStorage`
added.
What would you like to be improved?
Currently,
Gravitino
lacks access control when multi-thread access the storage layer and the result in uncertain under some circumstances.How should we improve?
No response
The text was updated successfully, but these errors were encountered: