Fredy Wijaya has posted comments on this change. ( http://gerrit.cloudera.org:8080/13095 )
Change subject: IMPALA-8444: Fix performance regression when building privilege name ...................................................................... Patch Set 6: (2 comments) http://gerrit.cloudera.org:8080/#/c/13095/3//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/13095/3//COMMIT_MSG@38 PS3, Line 38: This patch removes incorrect synchronization in : SentryAuthorizationPolicy.listPrivileges() that can cause the operation : to run in serial in a highly concurrent workload. > How did you test this? I think this codepath is sensitive in the sense that I meant to say remove incorrect synchronization. Updated the comment. http://gerrit.cloudera.org:8080/#/c/13095/3/fe/src/main/java/org/apache/impala/authorization/sentry/SentryAuthorizationPolicy.java File fe/src/main/java/org/apache/impala/authorization/sentry/SentryAuthorizationPolicy.java: http://gerrit.cloudera.org:8080/#/c/13095/3/fe/src/main/java/org/apache/impala/authorization/sentry/SentryAuthorizationPolicy.java@90 PS3, Line 90: > Is there a way to avoid a copy to a HashSet()? Not sure what that is buying Yeah this isn't needed since we're returning the catalog keys backed by ConcurrentHashMap, which should be thread-safe. Done. -- To view, visit http://gerrit.cloudera.org:8080/13095 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I942d9b55f07c8972f69e532567d9b7d80fceb6e5 Gerrit-Change-Number: 13095 Gerrit-PatchSet: 6 Gerrit-Owner: Fredy Wijaya <[email protected]> Gerrit-Reviewer: Bharath Vissapragada <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Fredy Wijaya <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Comment-Date: Wed, 24 Apr 2019 19:33:46 +0000 Gerrit-HasComments: Yes
