Cassandra
  1. Cassandra
  2. CASSANDRA-4177

Little improvement on the messages of the exceptions thrown by ExternalClient

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.

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

        Activity

        Gavin made changes -
        Workflow patch-available, re-open possible [ 12753217 ] reopen-resolved, no closed status, patch-avail, testing [ 12755931 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12663251 ] patch-available, re-open possible [ 12753217 ]
        Brandon Williams made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Jonathan Ellis made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Jonathan Ellis made changes -
        Reviewer brandon.williams
        Michał Michalski made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Michał Michalski [ michalm ]
        Michał Michalski made changes -
        Field Original Value New Value
        Attachment trunk-4177.txt [ 12523462 ]
        Michał Michalski created issue -

          People

          • Assignee:
            Michał Michalski
            Reporter:
            Michał Michalski
            Reviewer:
            Brandon Williams
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development