You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/06/14 19:13:09 UTC

[GitHub] [ozone] adoroszlai commented on a change in pull request #2333: HDDS-5344. Adding debug log for block token verification.

adoroszlai commented on a change in pull request #2333:
URL: https://github.com/apache/ozone/pull/2333#discussion_r651207469



##########
File path: hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/token/BlockTokenVerifier.java
##########
@@ -76,6 +80,10 @@ protected Object getService(ContainerCommandRequestProtoOrBuilder cmd) {
   @Override
   protected void verify(OzoneBlockTokenIdentifier tokenId,
       ContainerCommandRequestProtoOrBuilder cmd) throws SCMSecurityException {
+    if (LOGGER.isDebugEnabled()) {
+      LOGGER.debug("Verifying token:{} for user:{} ", tokenId,
+          tokenId.getUser());

Review comment:
       Previously this message was logged after reading the token (before verifying signer cert, etc.)  Is this difference OK?




-- 
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.

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