Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3735

JSON protocol left in incorrect state when an exception is thrown during read or write operations

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Go - Library
    • Labels:
      None

      Description

      The JSON context stack may be left in an incorrect state when an exception is thrown during read or write operations. This leads to further errors while writing/reading the NEXT message, because incorrect characters may be written or expected.

      This is related to THRIFT-1473, but there is an additional issue in that the bufio.Writer needs to be reset if an error occurs.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              tylertreat Tyler Treat
              Reporter:
              tylertreat Tyler Treat

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment