Bump HikariCP and MyBatis #545
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #545"
general
weight: 0.35
pacmano1
What
Bumps two stale database-layer libraries, one commit each:
| Library | From | To |
|---|---|---|
| HikariCP | 2.5.1 | 7.1.0 |
| MyBatis | 3.1.1 | 3.5.19 |
This PR originally also bumped commons-dbcp2 and commons-pool2. Main has since removed the custom DBCP pooling and the dbcp2 dependency, so that commit was dropped. The pool2 commit was dropped after review: in 2.13,
GenericObjectPool.invalidateObject()always creates a replacement object, which would open an extra connection per message in File Writers with "Keep connection open" off. It can come back in its own PR together with a File connector fix.Why
MyBatis 3.1.1 dates from 2012, and HikariCP 2.5.1 from 2016. The MyBatis bump also resolves CVE-2020-26945 / GHSA-qq48-m4jx-xqh8 (MyBatis < 3.5.6, deserialization through the second-level cache), which applies here because
cacheEnabledistrueinSqlMapConfig.xml. It supersedes Renovate's MyBatis 3.5.6 security update in #381, which can be closed once this merges.Reviewer notes
parameterType.User.selectPreferencesForUserdeclaredjava.lang.Stringbut receives an Integer, so it's nowjava.lang.Integerin all 5 database mappers. This is the same fix upstream Mirth made.DebugUsage.getDebugUsageStatisticsanddeleteDebugUsageStatisticsnow declarecom.mirth.connect.model.DebugUsage, which is whatDefaultDebugUsageControllerpasses (they worked either way). Every other String and IntegerparameterTypematches its caller.java.sqlloggers, so thejava.sqlentry inlog4j2.propertieshad stopped doing anything.SqlMapConfig.xmlnow setslogPrefixtomybatis., and that entry namesmybatis, so one logger still controls all SQL logging. Its comments explain how to log one namespace and warn that DEBUG and TRACE can log PHI, stored passwords and credential hashes.#{name}bind parameters from main's event-search SQL injection fix also work under 3.5.connectionTimeout(0)still means wait forever. HikariCP 7 needs only slf4j-api, which already ships.Release Note
Library updates: MyBatis 3.5.19 and HikariCP 7.1.0
These replace MyBatis 3.1.1 and HikariCP 2.5.1. The changes below are the ones that remain in the new versions and apply to the engine.
Security
<cache>was. MyBatis 3.5.6 and later also log a one-time warning the first time a cache entry is deserialized without ajdk.serialFilterset.SQL logging
java.sqlloggers. Each statement now logs undermybatis.<namespace>.<statement ID>, for examplemybatis.Message.getMessages: SQL and parameters at DEBUG, result rows at TRACE. The defaultlog4j2.propertiesnow setslogger.sql.name = mybatis, sologger.sql.levelstill controls all SQL logging. If an upgraded installation keeps its existinglog4j2.properties, changelogger.sql.name = java.sqltologger.sql.name = mybatisthere. Raising a more specific logger, such asmybatis.Message, logs only those statements. At the default ERROR level nothing is logged, before or after. When SQL logging is enabled, the logger names in the log lines change accordingly, so update any log filters, parsers or alerts that matchjava.sql.Connection,java.sql.PreparedStatementorjava.sql.ResultSet.Database connection pool (HikariCP)
maxLifetimewith up to 25% random variation), instead of 29.25 to 30 minutes, so connections are replaced somewhat more often.0A000, and error code 1105 from any database. An error while closing a statement left open when its connection is returned now also removes the connection, with a warning in the log.PersistenceException("Error getting a new connection") caused by the driver'sSQLException, instead of aHikariPool$PoolInitializationException("Failed to initialize pool"). The server still retries as before.HikariPool-1:housekeeper. Update any log alerts or thread-dump tooling that matches the old text.For plugin authors
Plugin SQL maps and type handlers now run on MyBatis 3.5. Check for the following:
<if>,${}, and so on), a simpleparameterTypesuch asjava.lang.Stringnow fixes the type handler. Calling it with a different type, such as anInteger, fails with aPersistenceExceptioncaused by aClassCastException. MakeparameterTypematch what the plugin passes, or remove it.mybatis-3-mapper.dtd(as inhttp://mybatis.org/dtd/mybatis-3-mapper.dtd, orconf/dtd/mybatis-3-mapper.dtdas the engine's own SQL maps use; the path doesn't need to exist), not by the public ID. With any other system ID, the parser tries to load the DTD from that location, and the mapper fails to load if it can't.ResultSet.wasNull()aftergetNullableResult, so a handler that returns0orfalsefor SQL NULL now returns that value instead ofnull.Executor,ParameterHandler,ResultSetHandlerorStatementHandler.PersistenceExceptionis still the exception to catch, but its message and cause chain now contain more wrapping, such asTypeExceptionandResultMapException.Testing
buildandverifyVendoredParityon these two commits, and earlier a staged server on a fresh Derby DB driven through about 30 REST calls.GET /events/countwithout a level filter returns 500, with MyBatis 3.1.1 too.🤖 Generated with Claude Code