You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2020/12/15 05:20:00 UTC
[jira] [Created] (KAFKA-10855) Non-local return in envelope
validation in causes unexpected response send
Jason Gustafson created KAFKA-10855:
---------------------------------------
Summary: Non-local return in envelope validation in causes unexpected response send
Key: KAFKA-10855
URL: https://issues.apache.org/jira/browse/KAFKA-10855
Project: Kafka
Issue Type: Bug
Reporter: Jason Gustafson
Assignee: Jason Gustafson
`KafkaApis.handle` uses the following logic to validate the envelope:
```
request.envelope.foreach { envelope =>
if (maybeHandleInvalidEnvelope(envelope, request.header.apiKey)) {
return
}
}
```
Since this is a non-local return, scala raises an exception, which then causes `handleError` to get invoked, which sends an error response.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)