[ENG-15363] Fixing issue of extractor stopping in case of zero batches in current page ->
The extractor starts processing commits from the first incomplete commit and processes the commit group only if the lastModified of any of the files > the lastModified of the lastUploadedFile. If extractor keeps starting from very old incomplete commit, the new commits can grow more than 1000 and in this case, if there were no batches found, the extractor is completely ignoring the subsequent pages. This worked in case of the old approach but in case of CONTINUE_ON_INCOMPLETE_COMMIT approach we need to process the subsequent pages as well. Hence, returning a non null checkpoint to continue processing in case of new approach.
[ENG-15363] Fixing issue of extractor stopping in case of zero batches in current page ->
The extractor starts processing commits from the first incomplete commit and processes the commit group only if the lastModified of any of the files > the lastModified of the lastUploadedFile. If extractor keeps starting from very old incomplete commit, the new commits can grow more than 1000 and in this case, if there were no batches found, the extractor is completely ignoring the subsequent pages. This worked in case of the old approach but in case of CONTINUE_ON_INCOMPLETE_COMMIT approach we need to process the subsequent pages as well. Hence, returning a non null checkpoint to continue processing in case of new approach.