Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 4158 invoked from network); 24 Aug 2010 16:34:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 16:34:38 -0000 Received: (qmail 25778 invoked by uid 500); 24 Aug 2010 16:34:37 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 25726 invoked by uid 500); 24 Aug 2010 16:34:37 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 25713 invoked by uid 99); 24 Aug 2010 16:34:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 16:34:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 16:34:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7OGYGg5022510 for ; Tue, 24 Aug 2010 16:34:16 GMT Message-ID: <6930569.534151282667656154.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 12:34:16 -0400 (EDT) From: "Nick Barkas (JIRA)" To: dev@lucene.apache.org Subject: [jira] Created: (LUCENE-2620) Queries with too many asterisks causing 100% CPU usage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Queries with too many asterisks causing 100% CPU usage ------------------------------------------------------ Key: LUCENE-2620 URL: https://issues.apache.org/jira/browse/LUCENE-2620 Project: Lucene - Java Issue Type: Bug Components: Search Affects Versions: 3.0.1 Environment: Debian Lenny with Tomcat 5.5 and Mac OS X 10.6 with Tomcat 6, probably others Reporter: Nick Barkas Attachments: lucene-asterisks.diff If a search query has many adjacent asterisks (e.g. fo**************obar), I can get my webapp caught in a loop that does not seem to end in a reasonable amount of time and may in fact be infinite. For just a few asterisks the query eventually does return some results, but as I add more it takes a longer and longer amount of time. After about six or seven asterisks the query never seems to finish. Even if I abort the search, the thread handling the troublesome query continues running in the background and pinning a CPU. I found the problem in src/java/org/apache/lucene/search/WildcardTermEnum.java on Lucene 3.0.1 and it looks like 3.0.2 ought to be affected as well. I'm not sure about trunk, though. I have a patch that fixes the problem for me in 3.0.1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org