Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11547

JsonMappingException in DynamoDBStreamsSchema

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: Connectors / Kinesis
    • Labels:
      None

      Description

      If DynamoDBStreamsSchema is used as the deserializer for FlinkDynamoDBStreamsConsumer, an exception occurs during deserialization of a record. The stack trace is attached.

       

      This is a blocker for using DynamoDBStreamsSchema, but can be worked around by implementing a custom deserializer. The issue appears to be due to the usage of vanilla ObjectMapper:

       

      private static final ObjectMapper MAPPER = new ObjectMapper();
      

      When it should be using the appropriate mix-ins offered by the dynamodb stream adapter library:

      private static final ObjectMapper MAPPER = new RecordObjectMapper();
      

      This appears to resolve the issue, I tested by using my own deserializer implementation.

       

        Attachments

        1. full_flink_trace.txt
          3 kB
          Devin Thomson

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tinder-dthomson Devin Thomson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: