Skip to content

Commit

Permalink
Commit synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
alok87 committed Aug 9, 2020
1 parent 345ba76 commit 7213c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redshiftsink/pkg/consumer/sarama.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func (c saramaConsumer) ConsumeClaim(
klog.Infof("Message claimed: value = %s, timestamp = %v, topic = %s",
string(message.Value), message.Timestamp, message.Topic)
session.MarkMessage(message, "")
session.Commit()
}

klog.V(4).Info("All messages were consumed, exiting consumerClaim.")

return nil
Expand Down

0 comments on commit 7213c65

Please sign in to comment.