Skip to content

Commit

Permalink
fix index out of range
Browse files Browse the repository at this point in the history
Signed-off-by: Yashash H L <[email protected]>
  • Loading branch information
yhl25 committed Dec 4, 2023
1 parent 5586bdb commit 760706f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/watermark/publish/src_publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (df *sourcePublish) PublishSourceWatermarks(readMessages []*isb.ReadMessage
func (df *sourcePublish) PublishIdleWatermarks(wm time.Time, partitions []int32) {
for _, partitionId := range partitions {
publisher := df.loadSourceWatermarkPublisher(partitionId)
publisher.PublishIdleWatermark(wmb.Watermark(wm), nil, partitionId) // while publishing idle watermark at source, we don't care about the offset
publisher.PublishIdleWatermark(wmb.Watermark(wm), nil, 0) // while publishing idle watermark at source, we don't care about the offset
}
}

Expand Down

0 comments on commit 760706f

Please sign in to comment.