-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unrecognized character escape issue for stream data in DynamoDB source #3664
Comments
Seems to be an issue with Jackson Mapper, should we set up something like |
Standard JSON does not require escaping single quotes. But, it appears that something is escaping them in the example you've provided.
Is there a list of characters that DynamoDB will escape? And can we configure Jackson to allow allow or expect those? |
Relatedly, what is the purpose of this exception handling? Lines 108 to 110 in 43a0c75
This results in data being dropped. The |
@daixba , This is a bug in the AWS SDK and appears to have been fixed in main. aws/aws-sdk-java-v2#4156 I'm unsure if it has been deployed. It is currently labeled as "pending-release". |
…r's ObjectMapper. The EnhancedDocument is escaping single quotes. Also, skip data that cannot be parsed entirely rather than silently send empty data. Resolves opensearch-project#3664. Signed-off-by: David Venable <dlv@amazon.com>
Signed-off-by: David Venable <dlv@amazon.com>
Updating the AWS SDK to 2.21.23 does fix this bug. |
Resolves a bug with escaped single quotes in the DynamoDB source by updating the AWS SDK to 2.21.23. Also, skip data that cannot be parsed entirely rather than silently send empty data. Resolves #3664. Signed-off-by: David Venable <dlv@amazon.com>
I remembered that I put a TODO here about what should we do if we failed to parse the json, but not sure when it's gone. Thanks for the help on this. |
Describe the bug
If the source item contains string with
'
, the final document in OpenSearch will have empty body.After debug, An exception has been throw when converting the Stream event to Json event using jackson library.
To Reproduce
Steps to reproduce the behavior:
For example, the content attribute contains
'
.And the doc in OpenSearch will be
Expected behavior
The doc in OpenSearch should match to DynamoDB source.
Screenshots
N/A
Additional context
No issue in export.
The text was updated successfully, but these errors were encountered: