add new TwoPhaseCommitter constructor
Feature Request
Is your feature request related to a problem? Please describe: TwoPhaseCommitter constructor can not support Customized thread pool size
Describe the feature you'd like: public TwoPhaseCommitter(TiSession session, long startTime, long lockTTL,ExecutorService executorService) { this( session, startTime, lockTTL, TXN_COMMIT_BATCH_SIZE, TXN_COMMIT_BATCH_SIZE, WRITE_BUFFER_SIZE, 1, true, 3, executorService }
Describe alternatives you've considered: default pool size too large and every TwoPhaseCommitter obejct have new ExecutorService
Teachability, Documentation, Adoption, Migration Strategy: TwoPhaseCommitter twoPhaseCommitter = new TwoPhaseCommitter(session, startTime, lockTTL, executorService);
help me see see