Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,10 @@ private[group] class GroupMetadata(val groupId: String, initialState: GroupState

val currentOffsetOpt = offsets.get(topicPartition)
if (currentOffsetOpt.forall(_.olderThan(commitRecordMetadataAndOffset))) {
// AutoMQ for Kafka inject start
if (!offsets.contains(topicPartition))
recreateOffsetMetric(topicPartition)
// AutoMQ for Kafka inject end
trace(s"TxnOffsetCommit for producer $producerId and group $groupId with offset $commitRecordMetadataAndOffset " +
"committed and loaded into the cache.")
offsets.put(topicPartition, commitRecordMetadataAndOffset)
Expand Down Expand Up @@ -904,4 +908,3 @@ private[group] class GroupMetadata(val groupId: String, initialState: GroupState
}

}

Loading