[improve][txn] fix error in recoverTracker.handleCommittingAndAbortingTransaction()
Fixes
### Motivation
As described in recoverTracker.handleCommittingAndAbortingTransaction() fail when TC recover.
### Modifications
when transactionLog.replayAsync() finish, complete TC future.
@@ -127,9 +127,9 @@ public class MLTransactionMetadataStore
+ tcID.toString() + " change state to Ready error when init it"));
} else {
+ completableFuture.complete(MLTransactionMetadataStore.this);
recoverTracker.handleCommittingAndAbortingTransaction();
timeoutTracker.start();
- completableFuture.complete(MLTransactionMetadataStore.this);
recoverTime.setRecoverEndTime(System.currentTimeMillis());
}
}
