Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Batch - Database row locked #1

Open
jgeetha2k2 opened this issue Nov 8, 2018 · 2 comments
Open

Spring Batch - Database row locked #1

jgeetha2k2 opened this issue Nov 8, 2018 · 2 comments

Comments

@jgeetha2k2
Copy link

I am using Spring Batch, my job is running in DEV environment and if i start the same job in my local, its hanging. Any idea would help on this issue.

@georgevazj
Copy link

Hi!

please, could you give us some details about the issue? Is your application showing some kind of error?

Regards,

@jgeetha2k2
Copy link
Author

jgeetha2k2 commented Nov 8, 2018

I am not getting any exception. In my batch, below are the steps

  1. Reads data using FlatFileItemReader
  2. In Processor, get all the data from DB compares each row with the data fetched, if its equal(using equals and hashcode in entity) returning null else, I am updating the same entity with new values
  3. Writes to Database using Itemwriter

I am using Spring Boot, Spring Batch with JPARepository and C3P0 pooling

In one environment I have no issues, if I am running in DEV environment, in meanwhile if I am trying to run in my local getAllData() method is stuck, no exception for a long time. Then even if I stop the server its not working, I have to truncate table then only it works. Database is common in local and DEV. Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants