You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ultrabug (Jira)" <ji...@apache.org> on 2021/11/15 14:31:00 UTC
[jira] [Commented] (AVRO-3237) Deserialization errors only on release build
[ https://issues.apache.org/jira/browse/AVRO-3237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17443856#comment-17443856 ]
Ultrabug commented on AVRO-3237:
--------------------------------
Strange, since I'm using a different method + my AVRO-3232 and AVRO-3240 patches, I cannot reproduce the problem any more...
> Deserialization errors only on release build
> --------------------------------------------
>
> Key: AVRO-3237
> URL: https://issues.apache.org/jira/browse/AVRO-3237
> Project: Apache Avro
> Issue Type: Bug
> Components: rust
> Reporter: Ultrabug
> Priority: Critical
>
> Hi,
> I'm trying to find out why I'm getting {{ConvertToUtf8}} and {{ConvertI64ToUsize}} [deserialization errors when running in release mode while I'm not getting them on debug mode|https://github.com/gklijs/schema_registry_converter/discussions/64].
> Example error on release mode only:
>
> {{SRCError \{ error: "Could not transform bytes using schema", cause: Some("Cannot convert i64 to usize: -53"), retriable: false, cached: false }}}
> {{}}
> For now, I pinned down the fact that if I disable optimizations in the release profile, the errors go away:
> {{[profile.release]
> opt-level = 0}}
> Does that ring a bell to anyone?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)