[GitHub] drill pull request #992: DRILL-5873: (C++ Client) Improve SASL error reporti...
Github user asfgit closed the pull request at: https://github.com/apache/drill/pull/992 ---
[GitHub] drill pull request #992: DRILL-5873: (C++ Client) Improve SASL error reporti...
Github user sohami commented on a diff in the pull request: https://github.com/apache/drill/pull/992#discussion_r144977545 --- Diff: contrib/native/client/src/clientlib/drillClientImpl.cpp --- @@ -678,7 +678,10 @@ connectionStatus_t DrillClientImpl::handleAuthentication(const DrillUserProperti m_io_service.reset(); return CONN_SUCCESS; } else { -logMsg << m_encryptionCtxt << ", Error: " << m_saslResultCode; +logMsg << m_encryptionCtxt + << ", Mechanism: " << m_saslAuthenticator->getAuthMechanismName() + << ", Error: " << m_saslResultCode + << ", Cause: " << m_saslAuthenticator->getErrorMessage(m_saslResultCode); --- End diff -- How about adding this cause message string in the [if condition](https://github.com/apache/drill/pull/992/files#diff-8e6df071d8ca863fcfa578892944c1dcR661) too ? ---
[GitHub] drill pull request #992: DRILL-5873: (C++ Client) Improve SASL error reporti...
GitHub user parthchandra opened a pull request: https://github.com/apache/drill/pull/992 DRILL-5873: (C++ Client) Improve SASL error reporting. @sohami what do you think? I overrode the SASL_NOMECH error message. The message from the SASL library is very unfriendly. You can merge this pull request into a Git repository by running: $ git pull https://github.com/parthchandra/drill DRILL-5873 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/992.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #992 commit 31e71147c37a7e37348dfae323d894114204c8dd Author: Parth ChandraDate: 2017-10-13T18:00:31Z DRILL-5873: (C++ Client) Improve SASL error reporting. ---