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

document protocol system error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • spec
    • None
    • Reviewed

    Description

      Currently Java internally adds a type at the start of each protocol message's error list for system errors. This is used when an exception is encountered on the server while executing an RPC that does not match one of the messages declared errors. The type is "string", so it will never conflict with another error, since all other errors are defined as records.

      For example, if a protocol has a message like:

      "foo": {
        "request": [],
        "response": "null",
        "errors": ["MyError"]
      }
      

      Then errors are written and read with the schema ["string", "MyError"], although that schema never appears publicly.

      This should either be documented or changed.

      Attachments

        1. AVRO-447.patch
          2 kB
          Doug Cutting
        2. AVRO-447.patch
          2 kB
          Doug Cutting
        3. AVRO-447.patch
          2 kB
          Doug Cutting

        Issue Links

          Activity

            People

              cutting Doug Cutting
              cutting Doug Cutting
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: