[ 
https://issues.apache.org/jira/browse/HBASE-23047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16933694#comment-16933694
 ] 

Hudson commented on HBASE-23047:
--------------------------------

Results for branch branch-2
        [build #2283 on 
builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/2283/]: 
(x) *{color:red}-1 overall{color}*
----
details (if available):

(x) {color:red}-1 general checks{color}
-- For more information [see general 
report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/2283//General_Nightly_Build_Report/]




(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) 
report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/2283//JDK8_Nightly_Build_Report_(Hadoop2)/]


(x) {color:red}-1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) 
report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/2283//JDK8_Nightly_Build_Report_(Hadoop3)/]


(/) {color:green}+1 source release artifact{color}
-- See build output for details.


(/) {color:green}+1 client integration test{color}


> ChecksumUtil.validateChecksum logs an INFO message inside a 
> "if(LOG.isTraceEnabled())" block.
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-23047
>                 URL: https://issues.apache.org/jira/browse/HBASE-23047
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 3.0.0, 2.3.0, 2.2.1, 2.1.6
>            Reporter: Wellington Chevreuil
>            Assignee: Wellington Chevreuil
>            Priority: Minor
>             Fix For: 3.0.0, 2.3.0
>
>         Attachments: HBASE-23047.master.001.patch, 
> HBASE-23047.master.002.patch
>
>
> Noticed this while analysing another potential checksum issue. Despite doing 
> a check for TRACE level, we log an INFO message inside the if block:
> {noformat}
> if (LOG.isTraceEnabled()) {
>       LOG.info("dataLength=" + buf.capacity() + ", sizeWithHeader=" + 
> onDiskDataSizeWithHeader
>           + ", checksumType=" + ctype.getName() + ", file=" + pathName + ", 
> offset=" + offset
>           + ", headerSize=" + hdrSize + ", bytesPerChecksum=" + 
> bytesPerChecksum);
>     }
> {noformat}
> Uploading a patch that logs a TRACE message and switch to parameterising 
> logging. Since there's no extra computation on the param passing, we 
> shouldn't need the extra if either.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to