mchades opened a new issue, #7744:
URL: https://github.com/apache/gravitino/issues/7744
### What would you like to be improved?
when such codes:
```
SessionUtils.getWithoutCommit(
MapperA.class,
mapper ->{
SessionUtils.getWithoutCommit(
MapperB.class, m -> {
return somthing;
});
return somthing
});
```
The error will be encountered during runtime:
```
"Caused by: org.apache.ibatis.executor.ExecutorException: Executor was
closed.",
"\tat
org.apache.ibatis.executor.BaseExecutor.createCacheKey(BaseExecutor.java:197)",
"\tat
org.apache.ibatis.executor.CachingExecutor.createCacheKey(CachingExecutor.java:146)",
"\tat
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:88)",
"\tat
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)",
"\t... 76 more"
```
### How should we improve?
We should add some checking mechanism to avoid nested usage or to avoid
closing this session when it is nested.
--
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]