[jira] [Updated] (KAFKA-9471) Return empty collection for PENDING_SHUTDOWN
[ https://issues.apache.org/jira/browse/KAFKA-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated KAFKA-9471: -- Description: In StreamThreadStateStoreProvider we have: {code} if (streamThread.state() == StreamThread.State.DEAD) { return Collections.emptyList(); {code} If user cannot retry anymore, we should throw exception which is handled in the else block. was: In StreamThreadStateStoreProvider we have: {code} if (streamThread.state() == StreamThread.State.DEAD) { return Collections.emptyList(); {code} PENDING_SHUTDOWN is precursor to DEAD state. PENDING_SHUTDOWN should be treated the same way as DEAD. This makes more sense than current behavior of throwing exception for PENDING_SHUTDOWN. > Return empty collection for PENDING_SHUTDOWN > > > Key: KAFKA-9471 > URL: https://issues.apache.org/jira/browse/KAFKA-9471 > Project: Kafka > Issue Type: Improvement > Components: streams >Reporter: Ted Yu >Assignee: Ted Yu >Priority: Minor > > In StreamThreadStateStoreProvider we have: > {code} > if (streamThread.state() == StreamThread.State.DEAD) { > return Collections.emptyList(); > {code} > If user cannot retry anymore, we should throw exception which is handled in > the else block. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (KAFKA-9471) Return empty collection for PENDING_SHUTDOWN
[ https://issues.apache.org/jira/browse/KAFKA-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthias J. Sax updated KAFKA-9471: --- Component/s: streams > Return empty collection for PENDING_SHUTDOWN > > > Key: KAFKA-9471 > URL: https://issues.apache.org/jira/browse/KAFKA-9471 > Project: Kafka > Issue Type: Improvement > Components: streams >Reporter: Ted Yu >Assignee: Ted Yu >Priority: Minor > > In StreamThreadStateStoreProvider we have: > {code} > if (streamThread.state() == StreamThread.State.DEAD) { > return Collections.emptyList(); > {code} > PENDING_SHUTDOWN is precursor to DEAD state. > PENDING_SHUTDOWN should be treated the same way as DEAD. > This makes more sense than current behavior of throwing exception for > PENDING_SHUTDOWN. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (KAFKA-9471) Return empty collection for PENDING_SHUTDOWN
[ https://issues.apache.org/jira/browse/KAFKA-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated KAFKA-9471: -- Description: In StreamThreadStateStoreProvider we have: {code} if (streamThread.state() == StreamThread.State.DEAD) { return Collections.emptyList(); {code} PENDING_SHUTDOWN is precursor to DEAD state. PENDING_SHUTDOWN should be treated the same way as DEAD. This makes more sense than current behavior of throwing exception for PENDING_SHUTDOWN. was: In StreamThreadStateStoreProvider we have: {code} if (streamThread.state() == StreamThread.State.DEAD) { return Collections.emptyList(); {code} PENDING_SHUTDOWN should be treated the same way as DEAD. > Return empty collection for PENDING_SHUTDOWN > > > Key: KAFKA-9471 > URL: https://issues.apache.org/jira/browse/KAFKA-9471 > Project: Kafka > Issue Type: Improvement >Reporter: Ted Yu >Assignee: Ted Yu >Priority: Minor > > In StreamThreadStateStoreProvider we have: > {code} > if (streamThread.state() == StreamThread.State.DEAD) { > return Collections.emptyList(); > {code} > PENDING_SHUTDOWN is precursor to DEAD state. > PENDING_SHUTDOWN should be treated the same way as DEAD. > This makes more sense than current behavior of throwing exception for > PENDING_SHUTDOWN. -- This message was sent by Atlassian Jira (v8.3.4#803005)