[ 
https://issues.apache.org/jira/browse/HTRACE-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack resolved HTRACE-40.
-------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.0

Committed:

commit d5a6cf7eaccbfde714dc74f8c1ba2dd79056c8ac
Author: Colin P. Mccabe <[email protected]>
Date:   Wed Dec 31 12:09:37 2014 -0800

    HTRACE-40. MilliSpanDeserializer throws NumberFormatException when Span has 
negative Long value (Long Zhou via Colin P. McCabe)

Resolving.

> MilliSpanDeserializer throws NumberFormatException when Span has negative 
> Long value
> ------------------------------------------------------------------------------------
>
>                 Key: HTRACE-40
>                 URL: https://issues.apache.org/jira/browse/HTRACE-40
>             Project: HTrace
>          Issue Type: Bug
>            Reporter: Long Zhou
>            Assignee: Long Zhou
>             Fix For: 3.1.0
>
>         Attachments: HTRACE-40.001.patch
>
>
> When a negative long (e.g. -1L) is converted to hex string (ffff ffff ffff 
> ffff), Long.parseLong treats it as a positive number that overflows, and the 
> function throws NumberFormatException.
> The fix is to use java.math.BigInteger to parse it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to