Description
HDFS commands such as getContentSummary and delete require Ranger to authorize access to entire directory hierarchy rooted at the directory passed in as argument. Ranger could optimize this code by pruning the directory tree whenever a sub-directory, and directory hierarchy rooted in it, is authorized for requested access. This could potentially save many spurious authorization API calls with Ranger policy engine.
Also, it will be useful to gather and log performance metrics for the Ranger authorization API call for every Ranger plugin.