-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Labels
type/feature-requestNew feature requestNew feature request
Description
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);
Metadata
Metadata
Assignees
Labels
type/feature-requestNew feature requestNew feature request