HOTFIX: AddOffsetsToTxnResponse using incorrect schema in parse
The parse method was incorrectly referring to `ApiKeys.ADD_PARTITIONS_TO_TXN`
Author: Damian Guy
Reviewers: Ismael Juma Jason Gustafson
Closes from dguy/hotfix-add-offsets-to-txn-response
@@ -65,6 +65,6 @@ public class AddOffsetsToTxnResponse extends AbstractResponse {
}
public static AddOffsetsToTxnResponse parse(ByteBuffer buffer, short version) {
- return new AddOffsetsToTxnResponse(ApiKeys.ADD_PARTITIONS_TO_TXN.parseResponse(version, buffer));
+ return new AddOffsetsToTxnResponse(ApiKeys.ADD_OFFSETS_TO_TXN.parseResponse(version, buffer));
}
}
