more explanations added to the code
This commit is contained in:
parent
100a2c4aed
commit
cbc3f174b5
1 changed files with 3 additions and 0 deletions
|
@ -252,6 +252,9 @@ public class ConsumerOffsetsSerde implements BuiltInSerde {
|
||||||
String result;
|
String result;
|
||||||
var bb = ByteBuffer.wrap(data);
|
var bb = ByteBuffer.wrap(data);
|
||||||
short version = bb.getShort();
|
short version = bb.getShort();
|
||||||
|
// ideally, we should distinguish if value is commit or metadata
|
||||||
|
// by checking record's key, but our current serde structure doesn't allow that.
|
||||||
|
// so, we trying to parse into metadata first and after into commit msg
|
||||||
try {
|
try {
|
||||||
result = toJson(
|
result = toJson(
|
||||||
switch (version) {
|
switch (version) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue