----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/60517/ -----------------------------------------------------------
Review request for sentry and Alexander Kolbasov. Repository: sentry Description ------- It would be the best if we can minimize transaction failure when two or more transactions are making updates. Permission updates are the main issue, getting worse with more clients. Path update is from one thread in HMSFollower, independent on the number of clients, so it is not a big issue. Add synchronization for permission updates? In this way, when more than one threads are updating the permission, only one thread will update changeID, when it finishes, the next thread on the same Sentry server will make update. Therefore, no transaction will fail if there is only one Sentry server. When there are more Sentry servers, the collision will happen among the Sentry servers, not depending on how many clients are updating Sentry, so it is more scalable. Diffs ----- sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java 9ad97bc Diff: https://reviews.apache.org/r/60517/diff/1/ Testing ------- Thanks, Na Li
