Include thread-safe versions of ListItemReader and ListItemWriter to org.springframework.batch.item.support package #3741
Labels
related-to: item-readers-writers
status: superseded
Issues that are superseded by other issues
type: feature
Please do a quick search on Github issues first, the feature you are about to request might have already been requested.
Expected Behavior
Current Behavior
There are no thread-safe version of ListItemReader and ListItemWriter in spring-batch.
It's not possible to use make it thread-safe with SynchronizedItemStreamReader and
SynchronizedItemStreamWriter. because ListItemReader and ListItemWriter doesn' implement ItemStream interface
Context
I want to test my job in multi-threaded thread-pool executor.
Delegating of thread-safety with java.util.Collections#synchronizedList(java.util.List, java.lang.Object) doesn't work, because it doesn't prevent from unwanted read and incorrectly increase step read counts.
The text was updated successfully, but these errors were encountered: