Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2100

Client Error doesn't preserve or display original server error code when it is an unknown code

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: clients
    • Labels:

      Description

      When the java client receives an unfamiliar error code, it translates it into

      UNKNOWN(-1, new UnknownServerException("The server experienced an unexpected error when processing the request"))

      This completely loses the original code, which makes troubleshooting from the client impossible.

      Will be better to preserve the original code and write it to the log when logging the error.

        Attachments

        1. KAFKA-2100-1.patch
          11 kB
          David Jacot
        2. KAFKA-2100-2.patch
          2 kB
          David Jacot

          Activity

            People

            • Assignee:
              dajac David Jacot
              Reporter:
              gwenshap Gwen Shapira
              Reviewer:
              Gwen Shapira
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: