Skip to content

Commit

Permalink
Merge pull request #572 from twmb/kgo-source-log
Browse files Browse the repository at this point in the history
kgo: improve a log line
  • Loading branch information
twmb authored Sep 21, 2023
2 parents 85ac96c + a3e5141 commit e2f01a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kgo/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ func (s *source) fetch(consumerSession *consumerSession, doneFetch chan<- struct
// trigger a metadata update if we have no reload offsets. Having
// reload offsets *always* triggers a metadata update.
if updateWhy != nil {
why := updateWhy.reason("fetch had inner topic errors")
why := updateWhy.reason(fmt.Sprintf("fetch had inner topic errors from broker %d", s.nodeID))
if !reloadOffsets.loadWithSessionNow(consumerSession, why) {
if updateWhy.isOnly(kerr.UnknownTopicOrPartition) || updateWhy.isOnly(kerr.UnknownTopicID) {
s.cl.triggerUpdateMetadata(false, why)
Expand Down

0 comments on commit e2f01a2

Please sign in to comment.