alibaba / alibaba/druid

testWhileIdle属性在版本1.1.5中是无效的吗?

Open
#2,148 6 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
Java
Stars
28.2k
Forks
8.6k
PR merge metrics
No merged PRs in 30d

Description

测试发现只要是开启了timeBetweenEvictionRunsMillis与minEvictableIdleTimeMillis,空闲连接在超过后者时就会关闭,无论testWhileIdle是true还是false,这个属性的意思与DBCP不一样吗?还是这个属性就是没用?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior in Druid 1.1.5 with timeBetweenEvictionRunsMillis, minEvictableIdleTimeMillis, and both values of testWhileIdle. Trace the idle-connection eviction entry point and compare the observed semantics with the intended behavior; done means the behavior is clarified and covered by an appropriate test or documentation update.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.