Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/12833


Change subject: WIP [master] introduced SentryAuthzCache
......................................................................

WIP [master] introduced SentryAuthzCache

This patch incorporate a TTL-based cache into the SentryAuthzProvider.
The cache stores responses received from the authz provider (Sentry in
this case).  It's possible to enable or disable using the cache upon
creation of SentryAuthzProvider instance: set the newly introduced
`--sentry_cache_capacity` command-line flag to 0 to disable the cache.

WIP:
  * update current tests to account for the cache presence
  * to add cache-specific tests
  * pre-process raw TListSentryPrivilegesResponse into some sort
    of structure to speed up lookups of certain privilege on an
    authorizable

Change-Id: Idaefacd50736f1f152dae34e76778e17b2e84cbe
---
M src/kudu/master/CMakeLists.txt
A src/kudu/master/sentry_authz_cache.cc
A src/kudu/master/sentry_authz_cache.h
M src/kudu/master/sentry_authz_provider.cc
M src/kudu/master/sentry_authz_provider.h
5 files changed, 299 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/33/12833/1
--
To view, visit http://gerrit.cloudera.org:8080/12833
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idaefacd50736f1f152dae34e76778e17b2e84cbe
Gerrit-Change-Number: 12833
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to