szetszwo commented on code in PR #3403:
URL: https://github.com/apache/ozone/pull/3403#discussion_r871967410
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMStateMachine.java:
##########
@@ -133,6 +133,15 @@ public CompletableFuture<Message> applyTransaction(
final TransactionContext trx) {
final CompletableFuture<Message> applyTransactionFuture =
new CompletableFuture<>();
+ if (getLifeCycleState().isPausingOrPaused()) {
+ // Statemachine is installation snapshot. Discard any request.
Review Comment:
@ChenSammi , for a follower, applyTransaction is called only if there are
appendEntities. So, we need to understand why this is happening.
BTW, we cannot change applyTransaction to ignore the log. Otherwise, the
states among the servers will diverge silently.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]