level.Warn(p.logger).Log("msg","no committed offset found for partition, starting from the beginning","partition",p.partitionID,"consumer_group",p.consumerGroup)
lastCommittedOffset=kafkaStartOffset// If we haven't committed any offsets yet, we start reading from the beginning.
}
iflastCommittedOffset>0{
lastCommittedOffset++// We want to begin to read from the next offset, but only if we've previously committed an offset.