Repository navigation
Commit bbdf29e
committed
Bump commons-pool2 to 2.13.1
Since 2.13.0, GenericObjectPool.invalidateObject always tries to add
a replacement object to the pool (POOL-424). In 2.3 it created one
only when a thread was waiting to borrow. A File Writer that does not
keep connections open destroys its connection with invalidateObject
after every message, so on 2.13 it would open another FTP, SFTP, SMB,
WebDAV or S3 connection that nothing uses, until the evictor closes
it. If opening that connection failed, invalidateObject threw before
FileConnector dropped the destroyed connection from its open
connections, so a later disconnect() reached it again.
When a File Writer does not keep connections open, its pool now has
maxIdle 0, and destroyConnection returns the connection instead of
invalidating it. returnObject destroys a connection the pool has no
idle capacity for, and creates a replacement only for a waiting
thread, which is what invalidateObject did in 2.3. maxIdle 0 with
invalidateObject alone would leave waiting threads blocked, because
addObject respects maxIdle since 2.13.0 (POOL-425). Connections are
not validated on return in this mode, since they are destroyed
anyway; validation on borrow is unchanged. File Readers and writers
that keep connections open still use invalidateObject. The open
connection is now dropped in a finally block, so a failure in the
pool can't leave it behind.
Use the Duration setters for the eviction settings, since 2.13.1
deprecates setTimeBetweenEvictionRunsMillis and
setMinEvictableIdleTimeMillis. A zero interval still disables the
evictor.
The verification metadata drops commons-pool2 2.3 and its parent POM,
commons-parent 34, which nothing else uses, and the unused 2.13.0
entry. The 2.13.1 parent, commons-parent 93, is already listed.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Tony Germano <tony@germano.name>1 parent 561c475 commit bbdf29e
3 files changed
Lines changed: 42 additions & 39 deletions
File tree
- gradle
- server/src/main/java/com/mirth/connect/connectors/file
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1481 | 1481 | | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
1487 | | - | |
1488 | | - | |
1489 | 1484 | | |
1490 | 1485 | | |
1491 | 1486 | | |
| |||
1571 | 1566 | | |
1572 | 1567 | | |
1573 | 1568 | | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1585 | 1572 | | |
1586 | | - | |
1587 | | - | |
| 1573 | + | |
| 1574 | + | |
1588 | 1575 | | |
1589 | 1576 | | |
1590 | 1577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
9 | 4 | | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
| 11 | + | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
| |||
48 | 44 | | |
49 | 45 | | |
50 | 46 | | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
| 69 | + | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| |||
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
| |||
267 | 277 | | |
268 | 278 | | |
269 | 279 | | |
270 | | - | |
| 280 | + | |
271 | 281 | | |
272 | 282 | | |
273 | | - | |
| 283 | + | |
274 | 284 | | |
275 | 285 | | |
276 | 286 | | |
277 | 287 | | |
278 | 288 | | |
279 | | - | |
280 | | - | |
| 289 | + | |
| 290 | + | |
281 | 291 | | |
282 | | - | |
| 292 | + | |
283 | 293 | | |
284 | 294 | | |
285 | 295 | | |
286 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
287 | 302 | | |
288 | 303 | | |
289 | 304 | | |
290 | 305 | | |
291 | | - | |
| 306 | + | |
| 307 | + | |
292 | 308 | | |
293 | 309 | | |
294 | 310 | | |
| |||
0 commit comments