Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1444

Unable to reuse JSonDecoder and JSONDecoder crashes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • c++
    • None

    Description

      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

      Attachments

        1. JsonEncodingTest.cpp
          1 kB
          Ramana Suvarapu
        2. AVRO-1444.patch
          1 kB
          Ramana Suvarapu

        Activity

          People

            thiru_mg Thiruvalluvan M. G.
            ramanasv Ramana Suvarapu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: