Commit 9dda834
committed
Test KafkaClient ensures frame entirely read by header/body decode
We want to use KafkaClient to declare what response apiVersion we expect
the proxy to respond with. The kafka-client code we depend on to read
the messages will sometimes be backwards compatible, for example if we
try to read a v1 or v2 ApiVersions response message, then it will
successfully read the v0 portion of the message, leaving some additional
fields like throttleTimeMs unread.
By KIP-511 the contract is we will send a v0 response, not a v0
compatible response, so I think it's good for the test client to require
that all bytes are read at the response apiVersion we declare we expect.
Signed-off-by: Robert Young <[email protected]>1 parent ff365d5 commit 9dda834
File tree
2 files changed
+18
-0
lines changed- kroxylicious-integration-test-support/src
- main/java/io/kroxylicious/test/codec
- test/java/io/kroxylicious/test/client
2 files changed
+18
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
106 | 121 | | |
107 | 122 | | |
108 | 123 | | |
| |||
0 commit comments