sollhui opened a new pull request, #66987: URL: https://github.com/apache/doris/pull/66987
### What problem does this PR solve?\n\nIssue Number: N/A\n\nRelated PR: #66469\n\nProblem Summary:\n\nIn cloud mode, a Broker Load transaction can become VISIBLE in Meta Service before FE persists the final Load Job record. If FE restarts in that window, the replayed PENDING job begins the same label again and is cancelled after conflicting with its own visible transaction.\n\nThis change looks up the transaction by label, verifies that its callback ID belongs to the current Load Job, reuses PREPARE transactions, and finishes the job immediately when the transaction is already VISIBLE. For Cloud Broker Load, the final operation is persisted to EditLog.\n\n### Release note\n\nFix Broker Load jobs being reported as cancelled after FE restart even though their transactions were already visible.\n\n### Check List (For Author)\n\n- Test\n - Unit Test: ./run-fe-ut.sh --run org.apache.doris.load.loadv2.BrokerLoadJobTest\n- Behavior changed: Yes. A replayed Broker Load adopts its own vi sible transaction and finishes successfully.\n- Does this need documentation: No -- 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]
