Alexey Serbin has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/12967 )

Change subject: [SentryPrivilegesFetcher] deduplicate RPCs to Sentry
......................................................................


Patch Set 4:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/12967/1/src/kudu/master/sentry_authz_provider-test.cc
File src/kudu/master/sentry_authz_provider-test.cc:

http://gerrit.cloudera.org:8080/#/c/12967/1/src/kudu/master/sentry_authz_provider-test.cc@906
PS1, Line 906: SERT_EQ(2, GetReconnectionsSucceeded());
             :
             :   // NotAuthorized() from Sentry itself considered as a fatal 
error.
             :   // TODO(KUDU-2769): clarify whether it is a bug in Ha
> Ah I see. Did you loop this with stress to arrive at kNumThreads/2 ?
Nope, I just put that as some 'reasonable enough' criteria.  But I did run this 
scenario in loop mode with --stress-cpu-threads=16 and verified that it passes 
with no issues for TSAN builds (~256 runs).


http://gerrit.cloudera.org:8080/#/c/12967/3/src/kudu/master/sentry_authz_provider-test.cc
File src/kudu/master/sentry_authz_provider-test.cc:

http://gerrit.cloudera.org:8080/#/c/12967/3/src/kudu/master/sentry_authz_provider-test.cc@998
PS3, Line 998: questThreads / 2) of actual RPC request
> Can you explain a bit more on what kind of scheduling anomalies can happen?
Done


http://gerrit.cloudera.org:8080/#/c/12967/3/src/kudu/master/sentry_authz_provider-test.cc@1010
PS3, Line 1010: est scenario wit
> Can you add a test case when the Sentry server is not reachable?
Sure, but I'd like to add it in a separate changelist, otherwise chances of 
conflicts are increasing, and I spent considerable amount of time resolving 
those already.

Will it be OK with you if I add that in a follow-up changelist?


http://gerrit.cloudera.org:8080/#/c/12967/3/src/kudu/master/sentry_privileges_fetcher.h
File src/kudu/master/sentry_privileges_fetcher.h:

http://gerrit.cloudera.org:8080/#/c/12967/3/src/kudu/master/sentry_privileges_fetcher.h@237
PS3, Line 237:
> Remove?
Done


http://gerrit.cloudera.org:8080/#/c/12967/3/src/kudu/master/sentry_privileges_fetcher.cc
File src/kudu/master/sentry_privileges_fetcher.cc:

http://gerrit.cloudera.org:8080/#/c/12967/3/src/kudu/master/sentry_privileges_fetcher.cc@154
PS3, Line 154: using std::string;
> nit: this should be in L153?
Indeed; re-ordered.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2714ab032df6029240ad9e7f4fb03ff73c6b79ef
Gerrit-Change-Number: 12967
Gerrit-PatchSet: 4
Gerrit-Owner: Alexey Serbin <aser...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <a...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <hao....@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 10 Apr 2019 22:57:51 +0000
Gerrit-HasComments: Yes

Reply via email to