[
https://issues.apache.org/jira/browse/HADOOP-13986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15832229#comment-15832229
]
Andres Perez edited comment on HADOOP-13986 at 1/20/17 6:44 PM:
----------------------------------------------------------------
Could I work on this? Will it be easier to add the abstract signature to the
{{MutableMetric}}?
was (Author: aaperezl):
Could I work on this? And should we include those that extend
{{AbstractMetric}} as well as those that extend {{MutableMetric}}?
> UGI.UgiMetrics.renewalFailureTotal is not printable
> ---------------------------------------------------
>
> Key: HADOOP-13986
> URL: https://issues.apache.org/jira/browse/HADOOP-13986
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Affects Versions: 2.8.0, 3.0.0-alpha2
> Reporter: Wei-Chiu Chuang
> Priority: Minor
>
> The metrics (renewalFailures and renewalFailuresTotal) in the following code
> snippet are not printable.
> {code:title=UserGroupInformation.java}
> metrics.renewalFailuresTotal.incr();
> final long tgtEndTime = tgt.getEndTime().getTime();
> LOG.warn("Exception encountered while running the renewal "
> + "command for {}. (TGT end time:{}, renewalFailures: {},"
> + "renewalFailuresTotal: {})", getUserName(), tgtEndTime,
> metrics.renewalFailures, metrics.renewalFailuresTotal, ie);
> {code}
> The output of the code is like the following:
> {quote}
> 2017-01-12 12:23:14,062 WARN security.UserGroupInformation
> (UserGroupInformation.java:run(1012)) - Exception encountered while running
> the renewal command for [email protected]. (TGT end time:1484252600000,
> renewalFailures:
> org.apache.hadoop.metrics2.lib.MutableGaugeInt@323aa7f9,renewalFailuresTotal:
> org.apache.hadoop.metrics2.lib.MutableGaugeLong@c8af058)
> ExitCodeException exitCode=1: kinit: krb5_cc_get_principal: No credentials
> cache file found
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]