ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Kulkarni <akulka...@hortonworks.com>
Subject Review Request 51054: RANGER-1145: Policy engine optimization: convert wildcard matches into prefix and suffix match
Date Fri, 12 Aug 2016 22:25:44 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51054/
-----------------------------------------------------------

Review request for ranger and Madhan Neethiraj.


Bugs: RANGER-1145
    https://issues.apache.org/jira/browse/RANGER-1145


Repository: ranger


Description
-------

Ranger policies support resource values with wildcards - like test*, .txt, /finance/. For
values that have wildcards at the beginning or at the end, which is likely to be most common,
the match can be converted into endsWith() or startsWith() - which will be more efficient
than doing a wildcard match.


Diffs
-----

  agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerAbstractResourceMatcher.java
cd725c9 
  agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerDefaultResourceMatcher.java
669cf0a 
  agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerPathResourceMatcher.java
5c555eb 
  agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerResourceMatcher.java
e4d3ce5 
  agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/ResourceMatcher.java
PRE-CREATION 
  agents-common/src/test/java/org/apache/ranger/plugin/policyengine/TestPolicyEngine.java
1d03ef8 
  agents-common/src/test/java/org/apache/ranger/plugin/resourcematcher/RangerDefaultResourceMatcherTest.java
5576a09 
  agents-common/src/test/resources/policyengine/test_policyengine_hdfs_resourcespec.json PRE-CREATION


Diff: https://reviews.apache.org/r/51054/diff/


Testing
-------

Ran unit tests successfully.


Thanks,

Abhay Kulkarni


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message