You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2019/04/26 02:43:24 UTC

[kudu-CR] [authz] more tests for SentryPrivilegesFetcher's cache

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


Change subject: [authz] more tests for SentryPrivilegesFetcher's cache
......................................................................

[authz] more tests for SentryPrivilegesFetcher's cache

This changelist adds more coverage for the behavior of the
SentryPrivilegesFetcher's cache.  In particular, newly added assertions
verify the behavior of the cache w.r.t. to cache operations exposed
via the metric counters/gauges (inserts, lookups, hits, misses, etc.).

I also updated the key pattern for the cache entries, dropping
the leading '/' symbols since it didn't serve any particular purpose.

This is a follow-up to a10d025dc13012c1a387de0607f1bd554b2038c0.

Change-Id: I7e51f214e6c26eeccf2d2556a036b9fb1e656e45
---
M src/kudu/master/sentry_authz_provider-test.cc
M src/kudu/master/sentry_authz_provider.h
M src/kudu/master/sentry_privileges_fetcher.cc
M src/kudu/master/sentry_privileges_fetcher.h
4 files changed, 171 insertions(+), 8 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7e51f214e6c26eeccf2d2556a036b9fb1e656e45
Gerrit-Change-Number: 13125
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [authz] more tests for SentryPrivilegesFetcher's cache

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/13125 )

Change subject: [authz] more tests for SentryPrivilegesFetcher's cache
......................................................................

[authz] more tests for SentryPrivilegesFetcher's cache

This changelist adds more coverage for the behavior of the
SentryPrivilegesFetcher's cache.  In particular, newly added assertions
verify the behavior of the cache w.r.t. to cache operations exposed
via the metric counters/gauges (inserts, lookups, hits, misses, etc.).

I also updated the key pattern for the cache entries, dropping
the leading '/' symbols since it didn't serve any particular purpose.

This is a follow-up to a10d025dc13012c1a387de0607f1bd554b2038c0.

Change-Id: I7e51f214e6c26eeccf2d2556a036b9fb1e656e45
Reviewed-on: http://gerrit.cloudera.org:8080/13125
Tested-by: Kudu Jenkins
Reviewed-by: Hao Hao <ha...@cloudera.com>
---
M src/kudu/master/sentry_authz_provider-test.cc
M src/kudu/master/sentry_authz_provider.h
M src/kudu/master/sentry_privileges_fetcher.cc
M src/kudu/master/sentry_privileges_fetcher.h
4 files changed, 171 insertions(+), 8 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Hao Hao: Looks good to me, approved

-- 
To view, visit http://gerrit.cloudera.org:8080/13125
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7e51f214e6c26eeccf2d2556a036b9fb1e656e45
Gerrit-Change-Number: 13125
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR] [authz] more tests for SentryPrivilegesFetcher's cache

Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hao Hao has posted comments on this change. ( http://gerrit.cloudera.org:8080/13125 )

Change subject: [authz] more tests for SentryPrivilegesFetcher's cache
......................................................................


Patch Set 1: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/13125
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7e51f214e6c26eeccf2d2556a036b9fb1e656e45
Gerrit-Change-Number: 13125
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Fri, 26 Apr 2019 04:37:48 +0000
Gerrit-HasComments: No