Skip to content

Commit

Permalink
RemoteFetcherTierStatemachine logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyPopov committed Jan 5, 2024
1 parent c7eae32 commit 18b2060
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ private void processConsumerRecord(ConsumerRecord<byte[], byte[]> record) {
private boolean shouldProcess(final RemoteLogMetadata metadata, final long recordOffset) {
final TopicIdPartition tpId = metadata.topicIdPartition();
final Long readOffset = readOffsetsByUserTopicPartition.get(tpId);
log.error("Checking if the event {} should be processed. Read offset: {} and record offset: {}",
metadata, readOffset, recordOffset);
log.error("processedAssignmentOfUserTopicIdPartitions: {}", processedAssignmentOfUserTopicIdPartitions);
return processedAssignmentOfUserTopicIdPartitions.contains(tpId) && (readOffset == null || readOffset < recordOffset);
}

Expand Down

0 comments on commit 18b2060

Please sign in to comment.