DanielLeens opened a new issue, #13736: URL: https://github.com/apache/seatunnel/issues/13736
### What happened A full-engine MySQL-to-Doris JSON batch fixture writes one million rows with 19 mixed fields. On an existing shared 4-vCPU host with Java 11, each engine was configured with a 512 MiB maximum heap, one source and sink task, and 10,000 rows per configured batch. The target was a self-hosted Doris 2.1.11-rc01 instance; two-phase commit and checkpointing were disabled. The source and target values were reconciled by ID and every field outside the timed interval. Three independent observed complete-job pairs took 27.853, 26.770 and 25.814 seconds for a comparison tool, versus 35.322, 35.830 and 34.088 seconds for SeaTunnel. In every pair the comparison tool ran first. The target process was restarted between tools in the second and third pairs, but not the first; these are separate runs, not a randomized controlled estimate. The SeaTunnel runtime was pinned to engine 5cf050be and connector base 0bef81d with open changes #13513, #13589, #13678 and the Doris label fix #13697. The comparator also has a 16 MiB flush threshold, so equal actual request boundaries have not been established. The fixed host retained its background services, and the measurement includes engine startup and shutdown. ### Candidate bottleneck In non-2PC mode, the Doris writer closes the current Stream Load at the configured row threshold and waits on the current request future before starting the next load. The first SeaTunnel profile made 100 load requests for the million rows. A larger 20,000-row trial made 50 requests and took 31.460 seconds, while a 50,000-row trial took 41.595 seconds. These are single diagnostics; no exact causal attribution or universal batch recommendation follows from them. Investigate whether serialization of the next batch can overlap safely with completion of the previous request using strictly bounded buffering and backpressure. Preserve ordering for repeated keys, existing error propagation, retries, checkpoint and close guarantees, schema changes, recovery, and two-phase commit. Do not change configuration defaults or relax delivery semantics. Any opt-in mode needs focused unit tests, existing integration coverage, private real-Doris correctness checks and at least three alternating complete-engine pairs with all values reconciled. ### Duplicate search Open and closed searches for Doris asynchronous Stream Load did not identify an equivalent sink batching PR. The label-length correctness fix is tracked separately in #13693 and #13697; stream-load shutdown behavior is tracked in #10060. ### Willing to submit a PR Yes, I will investigate and validate a focused change. -- 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]
