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/18 05:19:14 UTC
[kudu-CR] [catalog manager] simplify lifecycle of authz provider
Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/13062
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
[catalog_manager] simplify lifecycle of authz provider
This patch simplifies CatalogManager::authz_provider_ member's
lifecycle. The motivation for this change is to make the
authz_provider_ member available right after construction of
a CatalogManager instance: this will be used in follow-up changelists.
I also did a couple of other style-related changes.
Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
---
M src/kudu/master/authz_provider.cc
M src/kudu/master/authz_provider.h
M src/kudu/master/catalog_manager.cc
3 files changed, 8 insertions(+), 11 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/62/13062/1
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
[kudu-CR] [catalog manager] simplify lifecycle of authz provider
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/13062 )
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
Patch Set 1:
(1 comment)
> Patch Set 1: Code-Review+2
>
> LGTM, although have same question that Adar and Andrew have.
https://gerrit.cloudera.org/c/13063/
http://gerrit.cloudera.org:8080/#/c/13062/1//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/13062/1//COMMIT_MSG@12
PS1, Line 12: this will be used in follow-up changelists.
> nit: would be nice to get an example of how it might be used; it isn't obvi
That's in https://gerrit.cloudera.org/c/13063/
Overall, the idea is to not introduce dependencies where they don't exist. For the mentioned review item, it was necessary to access the cache in the SentryAuthzProvider, and it seems it's possible to do that without any dependency on catalog_manager's status.
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@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)
Gerrit-Comment-Date: Thu, 18 Apr 2019 22:50:33 +0000
Gerrit-HasComments: Yes
[kudu-CR] [catalog manager] simplify lifecycle of authz provider
Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hao Hao has posted comments on this change. ( http://gerrit.cloudera.org:8080/13062 )
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
Patch Set 1: Code-Review+2
LGTM, although have same question that Adar and Andrew have.
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@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)
Gerrit-Comment-Date: Thu, 18 Apr 2019 19:05:47 +0000
Gerrit-HasComments: No
[kudu-CR] [catalog manager] simplify lifecycle of authz provider
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/13062 )
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
[catalog_manager] simplify lifecycle of authz provider
This patch simplifies CatalogManager::authz_provider_ member's
lifecycle. The motivation for this change is to make the
authz_provider_ member available right after construction of
a CatalogManager instance: this will be used in follow-up changelists.
I also did a couple of other style-related changes.
Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Reviewed-on: http://gerrit.cloudera.org:8080/13062
Tested-by: Alexey Serbin <as...@cloudera.com>
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Reviewed-by: Andrew Wong <aw...@cloudera.com>
Reviewed-by: Hao Hao <ha...@cloudera.com>
---
M src/kudu/master/authz_provider.cc
M src/kudu/master/authz_provider.h
M src/kudu/master/catalog_manager.cc
3 files changed, 8 insertions(+), 11 deletions(-)
Approvals:
Alexey Serbin: Verified
Adar Dembo: Looks good to me, approved
Andrew Wong: Looks good to me, approved
Hao Hao: Looks good to me, approved
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@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] [catalog manager] simplify lifecycle of authz provider
Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/13062 )
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
Patch Set 1: Code-Review+2
Hao and I had a related discussion about this in https://gerrit.cloudera.org/c/11797/3/src/kudu/master/catalog_manager.cc#754.
I'm curious to hear how this helps follow-on work: this patch does make the authz provider not null earlier in the CatalogManager lifecycle, but the provider isn't Start()ed until the same place in Init(). What kind of functionality will find a not null but not Start()ed authz provider useful?
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@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)
Gerrit-Comment-Date: Thu, 18 Apr 2019 18:29:43 +0000
Gerrit-HasComments: No
[kudu-CR] [catalog manager] simplify lifecycle of authz provider
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/13062 )
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
Patch Set 1:
> Patch Set 1: Code-Review+2
>
> Hao and I had a related discussion about this in https://gerrit.cloudera.org/c/11797/3/src/kudu/master/catalog_manager.cc#754.
>
> I'm curious to hear how this helps follow-on work: this patch does make the authz provider not null earlier in the CatalogManager lifecycle, but the provider isn't Start()ed until the same place in Init(). What kind of functionality will find a not null but not Start()ed authz provider useful?
That functionality is in https://gerrit.cloudera.org/c/13063/ The idea is to get access to the privileges cache from other place to reset it as the result of processing corresponding RPC.
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@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)
Gerrit-Comment-Date: Thu, 18 Apr 2019 22:47:51 +0000
Gerrit-HasComments: No
[kudu-CR] [catalog manager] simplify lifecycle of authz provider
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/13062 )
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
Patch Set 1: Verified+1
unrelated flake in TestRpc.TestClientConnectionMetrics
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
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)
Gerrit-Comment-Date: Thu, 18 Apr 2019 05:49:36 +0000
Gerrit-HasComments: No
[kudu-CR] [catalog manager] simplify lifecycle of authz provider
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has removed a vote on this change.
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
Removed Verified-1 by Kudu Jenkins (120)
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
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] [catalog manager] simplify lifecycle of authz provider
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/13062 )
Change subject: [catalog_manager] simplify lifecycle of authz provider
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
LGTM but I second Adar's curiosity. I'm assuming I'll find out soon enough in the next patch.
http://gerrit.cloudera.org:8080/#/c/13062/1//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/13062/1//COMMIT_MSG@12
PS1, Line 12: this will be used in follow-up changelists.
nit: would be nice to get an example of how it might be used; it isn't obvious just from this.
--
To view, visit http://gerrit.cloudera.org:8080/13062
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I47a83a332dc1e55725dd46d4d9510ac4fd8d37c2
Gerrit-Change-Number: 13062
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@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)
Gerrit-Comment-Date: Thu, 18 Apr 2019 18:52:47 +0000
Gerrit-HasComments: Yes