-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[enhance](auth)support cache ranger datamask and row filter #37723
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
TPC-H: Total hot run time: 39972 ms
|
TPC-DS: Total hot run time: 172600 ms
|
ClickBench: Total hot run time: 31.38 s
|
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.
i read code about ranger in hive. i think ranger could get all column mask in one table once by set setResourceMatchingScope to SELF_OR_DESCENDANTS
fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/cache/RangerCache.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/cache/RangerCache.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/doris/catalog/authorizer/ranger/cache/RangerCacheInvalidateListener.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/cache/RangerCache.java
Outdated
Show resolved
Hide resolved
run buildall |
TPC-H: Total hot run time: 39987 ms
|
TPC-DS: Total hot run time: 174268 ms
|
ClickBench: Total hot run time: 30.34 s
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…7723) The Ranger plugin is relatively slow in obtaining datamask and row filter policies, and the time consumed will become slower as the number of policies configured on the Ranger increases optimized logic: cache result in memory of doris, cache will invalidate when ranger plugin discover policy updates before: mysql> select * from zd.user; Empty set (0.19 sec) after: mysql> select * from zd.user; Empty set (0.06 sec)
The Ranger plugin is relatively slow in obtaining datamask and row filter policies, and the time consumed will become slower as the number of policies configured on the Ranger increases optimized logic: cache result in memory of doris, cache will invalidate when ranger plugin discover policy updates before: mysql> select * from zd.user; Empty set (0.19 sec) after: mysql> select * from zd.user; Empty set (0.06 sec)
…7723) The Ranger plugin is relatively slow in obtaining datamask and row filter policies, and the time consumed will become slower as the number of policies configured on the Ranger increases optimized logic: cache result in memory of doris, cache will invalidate when ranger plugin discover policy updates before: mysql> select * from zd.user; Empty set (0.19 sec) after: mysql> select * from zd.user; Empty set (0.06 sec)
The Ranger plugin is relatively slow in obtaining datamask and row filter policies, and the time consumed will become slower as the number of policies configured on the Ranger increases
optimized logic:
cache result in memory of doris, cache will invalidate when ranger plugin discover policy updates
before:
after: