The Druid connection pool exhibits a performance regression in high-concurrency scenarios, particularly when…
The Druid connection pool exhibits a performance regression in high-concurrency scenarios, particularly when…: a task in LegoFlow-SWE (Harbor dataset). When a user calls dataSource.setMaxWait(milliseconds) , the underlying lock is switched to a fair lock, which significantly reduces concurrency…
The task
When a user calls `dataSource.setMaxWait(milliseconds)`, the underlying lock is switched to a fair lock, which significantly reduces concurrency performance. JMH benchmarks show that fair locks have much worse average latency compared to unfair locks, with performance degradation scaling linearly with the number of…
Part of Lego-X/LegoFlow-SWE.