Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C80BC10FC4 for ; Wed, 31 Dec 2014 16:21:13 +0000 (UTC) Received: (qmail 79631 invoked by uid 500); 31 Dec 2014 16:21:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 79555 invoked by uid 500); 31 Dec 2014 16:21:14 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 79500 invoked by uid 99); 31 Dec 2014 16:21:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2014 16:21:14 +0000 Date: Wed, 31 Dec 2014 16:21:14 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (POOL-270) timeBetweenEvictionRunsMillis from config is ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/POOL-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Steitz closed POOL-270. ---------------------------- > timeBetweenEvictionRunsMillis from config is ignored > ---------------------------------------------------- > > Key: POOL-270 > URL: https://issues.apache.org/jira/browse/POOL-270 > Project: Commons Pool > Issue Type: Bug > Affects Versions: 2.2 > Reporter: Michael Berman > Fix For: 2.3 > > > In the constructor for GenericKeyedObjectPool, the setting for timeBetweenEvictionRunsMillis is always overridden by minEvictableIdleTimeMillis. > First setConfig() is called, which, ends up starting an evictor with a period of timeBetweenEvictionRunsMillis, as expected. but the final line of the constructor calls startEvictor() again with minEvictableIdleTimeMillis, which kills the first timer and starts a new one with the new period. This means effectively the timeBetweenEvictionRunsMillis from the config is not used for anything. > I want testWhileIdle's verifications to run more often than I want the timeout for evicting idle objects, which does not appear to be possible given this bug. -- This message was sent by Atlassian JIRA (v6.3.4#6332)