Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4177

Little improvement on the messages of the exceptions thrown by ExternalClient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      After adding BulkRecordWriter (or actually ExternalClient) the ability to make use of authentication I've noticed that exceptions that are thrown on login failure are very misguiding - there's always a "Could not retrieve endpoint ranges" RuntimeException being thrown, no matter what really happens. This "hides" the real reason of all authentication problems. I've changed this line a bit, so all the messages are passed without any change, so now I get - for example - "AuthenticationException(why:Given password in password mode MD5 could not be validated for user operator)" or - in worst case - "Unexpected authentication problem", which is waaay more helpful, so I submit this trivial, but useful improvement.

      Attachments

        1. trunk-4177.txt
          0.7 kB
          Michał Michalski

        Activity

          People

            michalm Michał Michalski
            michalm Michał Michalski
            Michał Michalski
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: