Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

processorNonTransactional rollback plan #4623

Unanswered
3jin-p asked this question in Q&A
Discussion options

Hi, I want to know the behavior of the transaction when using processorNonTransactional.
Specifying processorNonTransactional and trying to rollback the transactions in the chunk when exceptions occur within the processor?

Specify the connection timeout for db as 10 minutes,
In the processor that specifies processorNonTransactional
After 15 minutes, there was an exception

"java.sql.SQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown.\n\tat com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)\n\tat com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)\n\tat com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)\n\tat com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)\n\tat com.mysql.cj.jdbc.ConnectionImpl.rollback(ConnectionImpl.java:1848)\n\tat com.zaxxer.hikari.pool.ProxyConnection.rollback(ProxyConnection.java:396)\n\tat com.zaxxer.hikari.pool.HikariProxyConnection.rollback(HikariProxyConnection.java)\n\tat org.springframework.jdbc.datasource.DataSourceTransactionManager.doRollback

An error log like this occurred.
I'll change the connection timeout setting and take action
I'm so curious how it works

I'll be waiting for your reply. Thank you

You must be logged in to vote

Replies: 1 comment

Comment options

If the processor is marked as non-transactional , then the results of item processing are cached across transactions in between retries and during skip processing, otherwise the processor will be called in every transaction.

I think your issue is not related to that. From what you shared, it seems that there is an attempt to access the database 5minutes after the timeout is elapsed (ie the is connection lost). Does this happen with a transactional processor? Again, I don't think the issue is related to that, but I just want to validate that.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter

AltStyle によって変換されたページ (->オリジナル) /