thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Geyer (Jira)" <j...@apache.org>
Subject [jira] [Commented] (THRIFT-4915) Deserializing double into OrderedFloat always returns zero when using TCompactProtocol
Date Mon, 02 Dec 2019 19:56:00 GMT

    [ https://issues.apache.org/jira/browse/THRIFT-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16986311#comment-16986311
] 

Jens Geyer commented on THRIFT-4915:
------------------------------------

Good catch!

> Deserializing double into OrderedFloat always returns zero when using TCompactProtocol
> --------------------------------------------------------------------------------------
>
>                 Key: THRIFT-4915
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4915
>             Project: Thrift
>          Issue Type: Bug
>          Components: Rust - Library
>    Affects Versions: 0.12.0
>            Reporter: ziming.wu
>            Assignee: Marcin Pajkowski
>            Priority: Major
>             Fix For: 0.14.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Client: Rust + Thrift 0.12.0
> Server: CPP + Thrift 0.9.3
> Protocol: TCompactProtocol
> Transport: TBufferedTransport
>  
> I logged before cpp server response to rust client
>  
> {code:java}
> "age=21.339611053466797"
> {code}
> but client recieved
>  
>  
>  
> {code:java}
> age: Some(OrderedFloat(0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000409415354256))
> {code}
> This bug only happens when using TCompactProtocol.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message