You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ted Yu (Jira)" <ji...@apache.org> on 2020/01/23 23:46:00 UTC
[jira] [Commented] (KAFKA-9471) Throw exception for DEAD
StreamThread.State
[ https://issues.apache.org/jira/browse/KAFKA-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17022595#comment-17022595 ]
Ted Yu commented on KAFKA-9471:
-------------------------------
[~vitojeng]
Looks like the following query depends on the empty collection for DEAD state:
{code}
@Test
public void shouldAllowToQueryAfterThreadDied() throws Exception {
{code}
It fails when exception is thrown.
What do you think ?
> Throw exception for DEAD StreamThread.State
> -------------------------------------------
>
> 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)