DEV Community

Алексей Удалов
Алексей Удалов

Posted on

Spring batch. Connection closed when long time step execution

I'm have job with several steps (step0, step1, step2). Connection pool - Hikari, max-lifetime 30 minutes. Database - Postgres Step1 is long time. If execution time more then 30 minutes (may be 1 hour, 3 hour), i'm get exception:

'2023-10-05 13:34:29,566 ERROR [http-nio-8097-exec-1] o.s.t.i.TransactionInterceptor - Application exception overridden by rollback

Top comments (0)