jihoonson commented on a change in pull request #6496: Support kafka 
transactional topics (#5404)
URL: https://github.com/apache/incubator-druid/pull/6496#discussion_r264878472
 
 

 ##########
 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:
   The initial value of end offset is unlimited, and is updated later in 
`setEndOffsets()`. The endOffsets are sent from the supervisor in 
`setEndOffsets()` which is max of offsets of all running replicas.

----------------------------------------------------------------
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]

Reply via email to