Hi!
As I know, we only request a new fetch if number current fetched records smaller than max.poll.records. That is the law for the total number of records or for each partition?
If that is for the total number of records, we may have starving partitions.
Say, my max.poll.records is 1. I have two partitions P1, P2.
P1 is fetched with 100 records. P2 is fetched 1 records.
I have to finish all my P1 then I can fetch the records from the server. Is it correct?
What about pause? For example, after we get a P1 record, we pause P1, then call poll again. I think it will return the record in P2.
Now, P2 has nothing in local. But P1 is still paused. If I call poll again, Do we fetch new records from the server or not?
If not, we have to wait till P1 is resumed. If P1 pauses too long time, we may have a lot of data for P2 in the server but not fetched to the local.
Thank you very much!
Yan