This commit is contained in:
chrislu committed 2025-09-13 14:15:42 -07:00
1 parent 82705a214f
commit 92d6bbe575
1 file changed
+5 -5
+5 -5
View File
@@ -112,15 +112,15 @@ func (h *Handler) handleFetch(correlationID uint32, apiVersion uint16, requestBo
// Use multi-batch fetcher for better MaxBytes compliance // Use multi-batch fetcher for better MaxBytes compliance
multiFetcher := NewMultiBatchFetcher(h) multiFetcher := NewMultiBatchFetcher(h)
result, err := multiFetcher.FetchMultipleBatches( result, err := multiFetcher.FetchMultipleBatches(
topic.Name, topic.Name,
partition.PartitionID, partition.PartitionID,
partition.FetchOffset, partition.FetchOffset,
highWaterMark, highWaterMark,
partition.MaxBytes, partition.MaxBytes,
) )
if err == nil && result.TotalSize > 0 { if err == nil && result.TotalSize > 0 {
fmt.Printf("DEBUG: Multi-batch result - %d batches, %d bytes, next offset %d\n", fmt.Printf("DEBUG: Multi-batch result - %d batches, %d bytes, next offset %d\n",
result.BatchCount, result.TotalSize, result.NextOffset) result.BatchCount, result.TotalSize, result.NextOffset)
recordBatch = result.RecordBatches recordBatch = result.RecordBatches
} else { } else {