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

Lack of information on error in GenericData#getSchemaName

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.7
    • Component/s: java
    • Labels:
      None

      Description

      When the type of a datum cannot be determined in GenericData#getSchemaName, an AvroRuntimeException is thrown (correctly), and the message of the exception contains the string representation of the datum.

      In the odd case that the datum is something that totally doesn't belong there, and it's toString representation doesn't clearly show what it is, it's very difficult to determine what the actual type of the error datum is.

      Including the class name of the unresolvable datum would make debugging situations like this much easier.

        Attachments

        1. AVRO-1465.patch
          0.7 kB
          Gabriel Reid

          Activity

            People

            • Assignee:
              gabriel.reid Gabriel Reid
              Reporter:
              gabriel.reid Gabriel Reid
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: