liaoxin01 opened a new pull request, #71327: URL: https://github.com/apache/doris/pull/71327
### What problem does this PR solve? Issue Number: None Related PR: #68006, #65450 Problem Summary: Cloud random-distribution tables can fail with `unknown partition channel` when a Stream Load or Kafka Routine Load task runs on a BE that owns none of the target partition's tablets. Compute the adaptive bucket assignments for the executing BE before returning the plan. Preserve legacy per-batch routing when an assignment cannot be computed, and keep adaptive routing enabled for auto-partition tables that will assign real partitions during the load. Backport of #68006 to `branch-4.1`. Apply the Kafka call at its 4.1 package path and use JUnit 4 in the existing FE test class. Kinesis Routine Load is absent from this branch. The two regression suites and generated expected output match the source PR. ### Release note Fix adaptive random bucket routing for Stream Load and Kafka Routine Load on cloud random-distribution tables. ### Testing - Passed Checkstyle 9.3 on the three changed Java files and Groovy syntax checks on both regression suites. - Passed patch whitespace checks with the regression framework's generated EOF separator preserved. - Attempted `./run-fe-ut.sh --run org.apache.doris.load.StreamLoadHandlerTest`. Source generation stopped because the worktree lacks `thirdparty/installed/bin/protoc`. The FE unit tests and cloud regression suites have not run on 4.1. - Partially verified: FE unit tests and cloud regression remain pending. ### Check List (For Author) - Test: Backported FE unit and regression coverage. See Testing for execution status. - Behavior changed: Yes. Load plans carry the adaptive assignment for the actual executing BE. - Does this need documentation? No. ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
