ableegoldman commented on a change in pull request #8833:
URL: https://github.com/apache/kafka/pull/8833#discussion_r438438827



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/StandbyTask.java
##########
@@ -108,13 +107,20 @@ public void completeRestoration() {
     }
 
     @Override
-    public void prepareSuspend() {
-        log.trace("No-op prepareSuspend with state {}", state());
+    public void suspendDirty() {
+        log.trace("No-op suspend dirty with state {}", state());
+        if (state() == State.RUNNING) {

Review comment:
       Right, by "check for RESTORING" I meant "throw an exception if state is 
restoring". It seems odd to check for RESTORING during `suspend` but not in any 
other StandbyTask method. Either it can never be in RESTORING and we are 
completely sure of that, and shouldn't check for RESTORING, or we should always 
check whether it's RESTORING and not just during `suspend` (eg also in 
`postCommit`)




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to