Thrift
  1. Thrift
  2. THRIFT-1151

Produce more informative runtime error in case of schema and data mismatch during serialization

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: Erlang - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      This patch adds generation of informative error during serialization of struct, which is unmatched to it's struct_info.
      Instead of generating

      {error, enival}

      in gen_tcp during sending invalid binary, it produces accurate error with some useful information.

      1. thrift-1151.patch
        0.6 kB
        Anthony Molinaro
      2. diff.txt
        0.6 kB
        Anatoly Kanivetsky

        Activity

        Anatoly Kanivetsky created issue -
        Anatoly Kanivetsky made changes -
        Field Original Value New Value
        Attachment diff.txt [ 12476717 ]
        Anthony Molinaro made changes -
        Assignee Anthony Molinaro [ djnym ]
        Anthony Molinaro made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.7 [ 12315360 ]
        Resolution Fixed [ 1 ]
        Anthony Molinaro made changes -
        Attachment thrift-1151.patch [ 12483205 ]
        Jake Farrell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Anthony Molinaro
            Reporter:
            Anatoly Kanivetsky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development