• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #5089
45%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2026 08:44AM UTC
Jobs 1
Files 1028
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Mar 2026 08:38AM UTC coverage: 41.901% (+0.08%) from 41.822%
#5089

push

github

topframe
Improve MyBatis transaction management with lazy session opening and intelligent routing

- Implement lazy session opening in SqlSessionAdvice to defer DB connection until actual usage
- Introduce intelligent routing in SqlSessionProvider to reuse open writable sessions by default
- Add 'reuseWritable' option to support both strict and intelligent routing modes
- Support stack-based aspect tracking to correctly handle nested transactions within an activity
- Optimize SqlSessionAgent to prevent premature session creation in getMapper() and getConfiguration()
- Enhance connection management by resetting read-only state before returning to the connection pool
- Provide specific error messages for resolving SqlSessionFactory in environments with multiple factories
- Refactor test suite to verify both strict and intelligent routing scenarios with descriptive naming
- Update documentation to reflect new flexibility in session opening strategies (Eager vs. Lazy)

15 of 27 new or added lines in 3 files covered. (55.56%)

81 existing lines in 5 files now uncovered.

17908 of 42739 relevant lines covered (41.9%)

0.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
71.56
-6.82% with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionProvider.java
2
59.84
13.97% with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionAdvice.java
1
86.55
3.05% with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionAdviceRegister.java

Coverage Regressions

Lines Coverage ∆ File
34
59.84
13.97% with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionAdvice.java
21
71.56
-6.82% with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionProvider.java
14
86.55
3.05% with-mybatis/src/main/java/com/aspectran/mybatis/SqlSessionAdviceRegister.java
10
9.09
-2.02% with-mybatis/src/main/java/com/aspectran/mybatis/SqlMapperProvider.java
2
93.18
-4.55% rss-lettuce/src/main/java/com/aspectran/core/component/session/redis/lettuce/AbstractLettuceSessionStore.java
Jobs
ID Job ID Ran Files Coverage
1 #5089.1 25 Mar 2026 08:44AM UTC 1028
41.9
Source Files on build #5089
  • Tree
  • List 1028
  • Changed 6
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bfc2dfac on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc