Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2606

SaslServerCallbackHandler#handleAuthorizeCallback() should log the exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.4.10, 3.5.3, 3.6.0
    • None

    Description

                  LOG.info("Setting authorizedID: " + userNameBuilder);
                  ac.setAuthorizedID(userNameBuilder.toString());
              } catch (IOException e) {
                  LOG.error("Failed to set name based on Kerberos authentication rules.");
              }
      

      On one cluster, we saw the following:

      2016-10-04 02:18:16,484 - ERROR [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:SaslServerCallbackHandler@137] - Failed to set name based on Kerberos authentication rules.
      

      It would be helpful if the log contains information about the IOException.

      Attachments

        1. ZOOKEEPER-2606.v1.patch
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: