Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-723

Incorrect handling of Undeclared Errors in IPC calls to SpecificResponder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • java
    • None
    • Reviewed

    Description

      Undeclared errors thrown during service invocations are not getting returned correctly. When they are encountered, the writeError method in the responder will try to encode them using errors union for the message. However, because they are undeclared they are not present in the union and encoding causes a further AvroRuntimeException. Its this "Not in union" exception that gets returned to the client, not the undeclared problem which gets lost.

      The attached patch handles them like other system errors, calling to string on the exception and writing this as the error to be returned.

      Attachments

        1. undeclared-error.patch
          2 kB
          Stephen Gargan
        2. undeclared-error.patch
          2 kB
          Stephen Gargan
        3. undeclared-error.patch
          8 kB
          Stephen Gargan
        4. AVRO-723.patch
          6 kB
          Doug Cutting

        Activity

          People

            sgargan Stephen Gargan
            sgargan Stephen Gargan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: