Github user Gauravshah commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16842#discussion_r99929314
  
    --- Diff: 
external/kinesis-asl/src/main/scala/org/apache/spark/streaming/kinesis/KinesisBackedBlockRDD.scala
 ---
    @@ -36,7 +36,8 @@ import org.apache.spark.util.NextIterator
     /** Class representing a range of Kinesis sequence numbers. Both sequence 
numbers are inclusive. */
     private[kinesis]
     case class SequenceNumberRange(
    -    streamName: String, shardId: String, fromSeqNumber: String, 
toSeqNumber: String)
    +    streamName: String, shardId: String, fromSeqNumber: String, 
toSeqNumber: String,
    +    recordCount: Int)
    --- End diff --
    
    its an input to spark checkpoint metadata. On streaming KinesisReceiver 
receives records creates blocks & knows about seqNumber, count. When recovering 
from checkpoint we read back this information from checkpoint and make aws 
kinesis getRecords call with fromSeqNumber & limit


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to