[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avro-dev
Subject:    [jira] [Created] (AVRO-3752) Logging flood during Union resolving
From:       "Fedor Telnov (Jira)" <jira () apache ! org>
Date:       2023-05-05 10:48:00
Message-ID: JIRA.13535147.1683283625000.297564.1683283680220 () Atlassian ! JIRA
[Download RAW message or body]

Fedor Telnov created AVRO-3752:
----------------------------------

             Summary: Logging flood during Union resolving
                 Key: AVRO-3752
                 URL: https://issues.apache.org/jira/browse/AVRO-3752
             Project: Apache Avro
          Issue Type: Improvement
          Components: rust
            Reporter: Fedor Telnov


I'm going to speak about Rust implementation(crate) of Avro named \
"apache-avro"([crates.io|[https://crates.io/crates/apache-avro]).]

Currently, union resolving is implemented as "iterate through listed schemas and find \
the first that matches given value". Process of finding requires schemas validation \
against that value. Validation method contains single "error!" macro invocation.

So, even if union contains relevant schema as variant, previous bad matches would \
throw error! log macro. In result, with big unions, you get a flooded logs.

My proposition is to write separate "validate" method that won't invoke error! macro \
and use it during union resolution.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic