zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pan Yuxuan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-2856) ZooKeeperSaslClient#respondToServer should log exception message of SaslException
Date Tue, 25 Jul 2017 09:35:00 GMT
Pan Yuxuan created ZOOKEEPER-2856:
-------------------------------------

             Summary: ZooKeeperSaslClient#respondToServer should log exception message of
SaslException
                 Key: ZOOKEEPER-2856
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2856
             Project: ZooKeeper
          Issue Type: Improvement
    Affects Versions: 3.5.3, 3.4.10
            Reporter: Pan Yuxuan
            Priority: Minor


When upstream like HBase call ZooKeeperSaslClient with security enabled, we sometimes get
error in HBase logs like:
{noformat}
SASL authentication failed using login context 'Client'.
{noformat}
This error occures when getting SaslException in ZooKeeperSaslClient#respondToServer :
{noformat}
 catch (SaslException e) {
                LOG.error("SASL authentication failed using login context '" +
                        this.getLoginContext() + "'.");
                saslState = SaslState.FAILED;
                gotLastPacket = true;
  }
{noformat}
This error makes user confused without explicit exception message. So I think we can add exception
message to the log.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message