Hi. A simple question: if i activate continuous file monitoring from a s3 bucket and flink checkpoint, as the later keep trace of processed file, doess the state will keep growing and growing?
Thx
d
David Anderson
09/13/2022, 7:37 PM
The amount of state involved is small. IIRC, there’s one global timestamp plus an offset for each active split.
However, performance on S3 is poor if the bucket being monitored has a lot of objects in it.
s
Sigh
09/18/2022, 6:58 PM
Thx David, yu mean it only store timestamp of Last processed file + files if multiples in same timestamp?
d
David Anderson
09/19/2022, 6:20 PM
Whenever there are files to be read, the source splits these files into chunks called splits that are consumed in parallel. It keeps track of the progress of reading these splits in the state it checkpoints so it can avoid re-reading fully processed input during restarts.
s
Sigh
09/19/2022, 6:27 PM
Thx, i unserstand this, my question is what is been tracked? A timestamp for each Split? The list of already processed items? A kind of offset, in this case how is it working? Other?