You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ChenSammi (via GitHub)" <gi...@apache.org> on 2023/09/06 06:45:40 UTC
[GitHub] [ozone] ChenSammi commented on a diff in pull request #5203: HDDS-1796. SCMClientProtocolServer#getContainerWithPipeline should check for admin access
ChenSammi commented on code in PR #5203:
URL: https://github.com/apache/ozone/pull/5203#discussion_r1316809977
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java:
##########
@@ -865,6 +863,7 @@ public void transferLeadership(String newLeaderId)
public List<DeletedBlocksTransactionInfo> getFailedDeletedBlockTxn(int count,
long startTxId) throws IOException {
+ getScm().checkAdminAccess(getRemoteUser(), true);
Review Comment:
This check can be removed too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org