KAFKA-13618: Fix typo in BatchAccumulator (#11715)

Co-authored-by: Kvicii <Karonazaba@gmail.com>
Reviewers: Mickael Maison <mickael.maison@gmail.com>
This commit is contained in:
Kvicii 2022-01-27 01:30:56 +08:00 committed by GitHub
parent fe72187cb1
commit dd58f81b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -482,7 +482,7 @@ public class BatchAccumulator<T> implements Closeable {
MemoryPool pool, MemoryPool pool,
ByteBuffer initialBuffer ByteBuffer initialBuffer
) { ) {
Objects.requireNonNull(data.firstBatch(), "Exptected memory records to contain one batch"); Objects.requireNonNull(data.firstBatch(), "Expected memory records to contain one batch");
this.baseOffset = baseOffset; this.baseOffset = baseOffset;
this.records = Optional.of(records); this.records = Optional.of(records);
@ -499,7 +499,7 @@ public class BatchAccumulator<T> implements Closeable {
MemoryPool pool, MemoryPool pool,
ByteBuffer initialBuffer ByteBuffer initialBuffer
) { ) {
Objects.requireNonNull(data.firstBatch(), "Exptected memory records to contain one batch"); Objects.requireNonNull(data.firstBatch(), "Expected memory records to contain one batch");
this.baseOffset = baseOffset; this.baseOffset = baseOffset;
this.records = Optional.empty(); this.records = Optional.empty();