spring batch not processing all records
问题 I am using spring batch to read records from postgresql DB using RepositoryItemReader and then write it to a topic. I see that there were around 1 million records which had to be processed but it didn't process all the records. I have set pageSize for reader as 10,000 and same as commit interval (chunk size) @Bean public TaskletStep broadcastProductsStep(){ return stepBuilderFactory.get("broadcastProducts") .<Product, Product> chunk(10000) .reader(productsReader.repositoryItemReader())