You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/02/18 07:12:00 UTC
[jira] [Commented] (AVRO-3375) add union branch, array index and map key "path" information to serialization errors
[ https://issues.apache.org/jira/browse/AVRO-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17494418#comment-17494418 ]
ASF subversion and git services commented on AVRO-3375:
-------------------------------------------------------
Commit 4c24d9ddddc8cc7d507caf495a4f93f3c7255654 in avro's branch refs/heads/master from Radai Rosenblatt
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=4c24d9d ]
AVRO-3375: Better error messages out of generic and specific DatumWriters (#1526)
* AVRO-3375 - better error messages out of generic and specific DatumWriters
this commit introduces "path tracking" to trace the path from a root datum object to be written to the location of 3 common serialization errors:
NullPointerExceptions, ClassCastExceptions and AvroTypeExceptions.
path tracing is done using AvroPath-like path components and predicates that would maybe become part of a future implementation of AVRO-992
note that path tracing does not woth if custom coders are in use for serialization (neither does the tracking code this commit replaces).
* address review comments
* address more review comments
Co-authored-by: Radai Rosenblatt <rr...@rrosenbl-mn2.linkedin.biz>
> add union branch, array index and map key "path" information to serialization errors
> ------------------------------------------------------------------------------------
>
> Key: AVRO-3375
> URL: https://issues.apache.org/jira/browse/AVRO-3375
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.11.0
> Reporter: radai rosenblatt
> Priority: Major
> Labels: pull-request-available
> Time Spent: 6h
> Remaining Estimate: 0h
>
> https://issues.apache.org/jira/browse/AVRO-2514 improved serialization error messages greatly by providing more information about the "location" of a piece of erroneous data in the object graph handed to a serializer.
>
> however, a few more things can be improved:
> * no info printed about which union branches were selected/used
> * no info printed about array indexes or map keys
> * (subjective) text could be made more concise.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)