mirror of https://github.com/apache/kafka.git
MINOR: Include request header in exception when correlation of request/response fails
Author: Ismael Juma <ismael@juma.me.uk> Reviewers: Guozhang Wang <wangguoz@gmail.com> Closes #1793 from ijuma/include-request-header-if-request-correlation-fails
This commit is contained in:
parent
b4ddd021b4
commit
d4c379832b
|
@ -484,7 +484,7 @@ public class NetworkClient implements KafkaClient {
|
|||
private static void correlate(RequestHeader requestHeader, ResponseHeader responseHeader) {
|
||||
if (requestHeader.correlationId() != responseHeader.correlationId())
|
||||
throw new IllegalStateException("Correlation id for response (" + responseHeader.correlationId()
|
||||
+ ") does not match request (" + requestHeader.correlationId() + ")");
|
||||
+ ") does not match request (" + requestHeader.correlationId() + "), request header: " + requestHeader);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue