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 2019/01/02 13:14:00 UTC
[jira] [Commented] (AVRO-1444) Unable to reuse JSonDecoder and
JSONDecoder crashes
[ https://issues.apache.org/jira/browse/AVRO-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732038#comment-16732038 ]
ASF subversion and git services commented on AVRO-1444:
-------------------------------------------------------
Commit d3dbf7122d3b8386ae72f46f0e966c8b69b8621a in avro's branch refs/heads/AVRO-2238 from Thiruvalluvan M. G.
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=d3dbf71 ]
Merge pull request #418 from thiru-apache/AVRO-1444
Fixed init problem in C++ JsonCodec
> Unable to reuse JSonDecoder and JSONDecoder crashes
> ---------------------------------------------------
>
> Key: AVRO-1444
> URL: https://issues.apache.org/jira/browse/AVRO-1444
> Project: Apache Avro
> Issue Type: Bug
> Components: c++
> Reporter: Ramana Suvarapu
> Assignee: Thiruvalluvan M. G.
> Priority: Major
> Attachments: AVRO-1444.patch, JsonEncodingTest.cpp
>
>
> I am trying to re-use the JSONDecoder to decode the JSONText file which contains JSONEncoded Objects. After first item is processed successfully, on the second item, when I tried to re-use the decoder, decoder crashes.
> The reason is when jsonDecoder is initialized with new stream, internal stack of jsonDecoder is getting reset and StreamReader of jsonDecoder is also not getting reset.
> Attached is the program to re-produce this issue and also I attach patch to fix this issue. But patch works but needs to be reviewed
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)