Skip to content

feature: benchmark CLI - implement TCC mode with real try/confirm/cancel and --branches support #8009

@WangzJi

Description

@WangzJi

Check Ahead

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I am willing to try to implement this feature myself.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions