rfyu opened a new issue, #3110: URL: https://github.com/apache/amoro/issues/3110
### What happened? When the insertion into table `optimizing_task_quota` fails, subsequent logic cannot proceed because all database operations are wrapped in the same session. Even if the exception is caught, `com.netease.arctic.server.persistence.NestedSqlSession#isRollingback` will still be true.Therefore, an exception will be thrown when checking the session status in `org.apache.amoro.server.persistence.NestedSqlSession#checkState`. So the table optimization status is stuck in running. ### Affects Versions master ### What table formats are you seeing the problem on? Iceberg ### What engines are you seeing the problem on? AMS ### How to reproduce _No response_ ### Relevant log output _No response_ ### Anything else _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's Code of Conduct -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
