You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/27 07:41:06 UTC
[I] [Improvement] Rollback call when autocommit is true in ScriptRunner.java [gravitino]
justinmclean opened a new issue, #8306:
URL: https://github.com/apache/gravitino/issues/8306
### What would you like to be improved?
In ScriptRunner, conn.rollback() will always be called (as it's in a finally block). However, this could possibly lead to issues with auto-commit connections. The rollback should only occur when auto-commit is set to false.
Also, I think the conn.rollback() should be in the exception block, otherwise, it will also be called directly after a commit, while this has no impact, it seems unnecessary.
### How should we improve?
Only rollback auto-commit is set to false and there is an exception
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Rollback call when autocommit is true in ScriptRunner.java [gravitino]
Posted by "Surya00011 (via GitHub)" <gi...@apache.org>.
Surya00011 commented on issue #8306:
URL: https://github.com/apache/gravitino/issues/8306#issuecomment-3227935490
Hi @justinmclean, I'll take this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Rollback call when autocommit is true in ScriptRunner.java [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao closed issue #8306: [Improvement] Rollback call when autocommit is true in ScriptRunner.java
URL: https://github.com/apache/gravitino/issues/8306
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Rollback call when autocommit is true in ScriptRunner.java [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8306:
URL: https://github.com/apache/gravitino/issues/8306#issuecomment-3228444451
It's all yours
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org