[ 
https://issues.apache.org/jira/browse/KAFKA-18812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lianet Magrans updated KAFKA-18812:
-----------------------------------
    Description: 
The new consumer background thread could fail to start, in which case will log 
an error and die. At the moment, the expectation is that consumer api calls 
will  fail with TimeoutException (KafkaException) when sending events to the 
background for processing and wait for responses (that will never be received).

We should review to consider improving, given that seems pointless to wait for 
an event to be processed if we know the background thread is not running.

 

Note that once in this area, we should also review the errors propagated to the 
API if the background fails on a single run (runOnce), which also logs but the 
thread does not die. The expectation in this case is that individual API calls 
will fail when trying to access resources that may not be available (ex. a 
request manager). But each process within ApplicationEventProcessor handles 
this kind of situation differently, so we should improve it if we consider, 
consistently for all APIs 

  was:
The new consumer background thread could failed to start, in which case will 
log an error and die. At the moment, the expectation is that consumer api calls 
will  fail with TimeoutException (KafkaException) when sending events to the 
background for processing and wait for responses (that will never be received).

We should review to consider improving, given that seems pointless to wait for 
an event to be processed if we know the background thread is not running.

 

Note that once in this area, we should also review the errors propagated to the 
API if the background fails on a single run (runOnce), which also logs but the 
thread does not die. The expectation in this case is that individual API calls 
will fail when trying to access resources that may not be available (ex. a 
request manager). But each process within ApplicationEventProcessor handles 
this kind of situation differently, so we should improve it if we consider, 
consistently for all APIs 


> Improve new consumer API errors upon background thread failures
> ---------------------------------------------------------------
>
>                 Key: KAFKA-18812
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18812
>             Project: Kafka
>          Issue Type: Improvement
>          Components: consumer
>            Reporter: Lianet Magrans
>            Priority: Major
>              Labels: consumer-threading-refactor
>
> The new consumer background thread could fail to start, in which case will 
> log an error and die. At the moment, the expectation is that consumer api 
> calls will  fail with TimeoutException (KafkaException) when sending events 
> to the background for processing and wait for responses (that will never be 
> received).
> We should review to consider improving, given that seems pointless to wait 
> for an event to be processed if we know the background thread is not running.
>  
> Note that once in this area, we should also review the errors propagated to 
> the API if the background fails on a single run (runOnce), which also logs 
> but the thread does not die. The expectation in this case is that individual 
> API calls will fail when trying to access resources that may not be available 
> (ex. a request manager). But each process within ApplicationEventProcessor 
> handles this kind of situation differently, so we should improve it if we 
> consider, consistently for all APIs 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to