spring-projects / spring-projects/spring-batch

Bug FlatItemWriter when restarting a job [BATCH-2806]

Open
#800 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: infrastructure status: waiting-for-triage type: bug
Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Description

MOHAMMED EL AMINE BOUFATAH opened BATCH-2806 and commented

Hello, 

I am having a problem while working with FlatItemWriter. When I am in a restart mode I get an exception: org.springframework.batch.item.ItemStreamException: File is not writable

It seems like this exception is thrown from +org.springframework.batch.item.util.FileUtils+ inside method +setUpOutputFile+. 

When googling the issue, many people claim that this is a Spring bug. Do you confirm the assertion ? if yes, in which version was the issue fixed ? 

 

Thank you very much for your help. 

 

 

 


Affects: 2.2.7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with org.springframework.batch.item.util.FileUtils#setUpOutputFile and the FlatItemWriter restart path described in the report. Reproduce the File is not writable exception against the stated 2.2.7 version, then inspect existing tests or history for restart handling. Done means the cause and the version containing a fix are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.