Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13986

UGI.UgiMetrics.renewalFailureTotal is not printable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.0, 3.0.0-alpha2
    • Fix Version/s: None
    • Component/s: security
    • Labels:
      None
    • Target Version/s:

      Description

      The metrics (renewalFailures and renewalFailuresTotal) in the following code snippet are not printable.

      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);
      

      The output of the code is like the following:

      2017-01-12 12:23:14,062 WARN security.UserGroupInformation (UserGroupInformation.java:run(1012)) - Exception encountered while running the renewal command for foo@EXAMPLE.COM. (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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                weichiu Wei-Chiu Chuang
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: