Abacn opened a new pull request, #41923:
URL: https://github.com/apache/beam/pull/41923

   - Validate every input document in DocToBulk.createBulkApiEntity as a single 
RFC 8259 JSON object with no trailing tokens (rejecting null, non-object, 
malformed, or multi-token inputs).
     - Avoid re-serialization on the single-line fast path via streaming 
JsonParser validation; compact only multi-line JSON objects onto a single line 
for NDJSON _bulk framing.
   
   - Add standard Beam ErrorHandler<BadRecord, ?> DLQ support via 
DocToBulk#withErrorHandler and Write#withErrorHandler (defaulting to 
BadRecordRouter.THROWING_ROUTER).
   
   - Add unit tests as ElasticsearchIOCommonTest  and update ES test fixtures 
to use valid JSON for server-side error cases.
   
   <!--
   
   Thank you for your contribution! Follow this checklist to help us 
incorporate your contribution quickly and easily:
   
    - [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
    - [ ] Replace these instructions with a description of your change and why 
you have made it.
    - [ ] Mention the appropriate issue in your description (for example: 
`addresses #123` or `fixes #456`).
    - [ ] Update `CHANGES.md` with noteworthy changes.
   
   See [CONTRIBUTING.md]() for more details.
   
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to