Skip to content

HDDS-3090. Fix logging in OMFileRequest and OzoneManager #612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

supratimdeka
Copy link
Contributor

What changes were proposed in this pull request?

parameterized some logs introduced in HDDS-2940. Corrected log levels.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-3090

Please replace this section with the link to the Apache JIRA)

How was this patch tested?

Executed Ozone FS interface unit tests. Only modified log messages.

@@ -175,8 +175,8 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
// if isRecursive is true, file would be created even if parent
// directories does not exist.
boolean isRecursive = createFileRequest.getIsRecursive();
LOG.info("File create for : " + volumeName + "/" + bucketName + "/"
+ keyName + ":" + isRecursive);
LOG.trace("File create for {}/{}/{}, recursive : {}", volumeName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{}/{}/{} -> /{}/{}/{},

@@ -92,8 +92,8 @@ public static OMPathInfo verifyFilesInPath(
result = OMDirectoryResult.DIRECTORY_EXISTS_IN_GIVENPATH;
inheritAcls = omMetadataManager.getKeyTable().get(dbDirKeyName)
.getAcls();
LOG.trace("Acls inherited from parent " + dbDirKeyName + " are : "
+ inheritAcls);
LOG.trace("Acls inherited from parent dir {}, are : {}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add LOG.isTraceEnabled()

@@ -113,12 +113,12 @@ public static OMPathInfo verifyFilesInPath(
if (inheritAcls.isEmpty()) {
String bucketKey = omMetadataManager.getBucketKey(volumeName, bucketName);
inheritAcls = omMetadataManager.getBucketTable().get(bucketKey).getAcls();
LOG.trace("Acls inherited from bucket " + bucketName + " are : "
+ inheritAcls);
LOG.trace("Acls inherited from bucket {} are : {}", bucketName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add LOG.isTraceEnabled()

@elek
Copy link
Member

elek commented Apr 3, 2020

/pending Review comments are not yet addressed.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking this issue as un-mergeable as requested.

Please use /ready comment when it's resolved.

Review comments are not yet addressed.

@elek
Copy link
Member

elek commented Apr 30, 2020

/close

@github-actions
Copy link

Thank you very much for the patch. I am closing this PR temporarily as there was no
activity recently and it is waiting for response from its author.

It doesn't mean that this PR is not important or ignored: feel free to reopen the PR at any time.

It only means that attention of committers is not required. We prefer to keep the review queue clean. This ensures PRs in need of review are more visible, which results in faster feedback for all PRs.

If you need ANY help to finish this PR, please contact the community on the mailing list or the slack channel.

@github-actions github-actions bot closed this Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants