Skip to content

Commit

Permalink
Add comment about warpstream and MinBytes
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
  • Loading branch information
dimitarvdimitrov committed Sep 26, 2024
1 parent 5872fb1 commit f9afaa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/ingest/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ func (r *concurrentFetchers) fetchSingle(ctx context.Context, fw fetchWant) (fr

func (r *concurrentFetchers) buildFetchRequest(fw fetchWant, leaderEpoch int32) kmsg.FetchRequest {
req := kmsg.NewFetchRequest()
req.MinBytes = 1
req.MinBytes = 1 // Warpstream ignores this field. This means that the WaitTime below is always waited and MaxBytes play a bigger role in how fast Ws responds.
req.Version = 13
req.MaxWaitMillis = int32(r.minBytesWaitTime / time.Millisecond)
req.MaxBytes = fw.MaxBytes()
Expand Down

0 comments on commit f9afaa3

Please sign in to comment.