surekhasaharan commented on a change in pull request #6496: Support kafka
transactional topics (#5404)
URL: https://github.com/apache/incubator-druid/pull/6496#discussion_r264856301
##########
File path:
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTaskRunner.java
##########
@@ -504,10 +504,11 @@ public void run()
SequenceMetadata sequenceToCheckpoint = null;
for (OrderedPartitionableRecord<PartitionIdType, SequenceOffsetType>
record : records) {
+
// for Kafka, the end offsets are exclusive, so skip it
if (isEndSequenceOffsetsExclusive() &&
createSequenceNumber(record.getSequenceNumber()).compareTo(
-
createSequenceNumber(endOffsets.get(record.getPartitionId()))) == 0) {
+
createSequenceNumber(endOffsets.get(record.getPartitionId()))) >= 0) {
Review comment:
i though it could be possible with transactions enabled, as some of the
offsets could be used by transactional markers. I did not realize that end
offset is `unlimited` or max, where is that set ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]