Check Ahead
Why you need it?
Current TCCModeExecutor is a stub — executeBusinessLogic() is empty, getBranchCount() is hardcoded to 0, and the --branches parameter is completely ignored. Unlike AT and SAGA modes which support both empty and real transaction execution, TCC mode cannot test the actual TCC protocol overhead.
How it could be?
- Implement
@LocalTCC annotated BenchmarkTCCAction interface with try/confirm/cancel phases
- Support
--branches N to register N TCC branch participants
- Support rollback scenario (cancel method should be actually registered and executed)
- Follow the same pattern as
ATModeExecutor: --branches 0 for empty mode, --branches N for real mode