Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 97324 invoked from network); 29 Oct 2009 10:13:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 10:13:24 -0000 Received: (qmail 95052 invoked by uid 500); 29 Oct 2009 10:13:23 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 94983 invoked by uid 500); 29 Oct 2009 10:13:23 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 94857 invoked by uid 99); 29 Oct 2009 10:13:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 10:13:23 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 10:13:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6444E234C045 for ; Thu, 29 Oct 2009 03:12:59 -0700 (PDT) Message-ID: <443261419.1256811179395.JavaMail.jira@brutus> Date: Thu, 29 Oct 2009 10:12:59 +0000 (UTC) From: "Asmodean (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1529) NullPointerException in LogUpdateProcessorFactory.java when deleting by query *only* In-Reply-To: <22786974.1256725319765.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771372#action_12771372 ] Asmodean commented on SOLR-1529: -------------------------------- Just to clarify from our point of view: What our client using the Solr web application see when it processes a request (... containing more than 8 *byQuery and no *byId) is an exception (we cant differentiate between types of errors or exceptions, we simply get an exception and have to rollback. It might for example look like the following sample code: PSEUDO-CODE try { while (hasMoreDeletesToProcessFromOurApplication) { if (requestBatchMaxSizeReached) { break; } request.deleteByQuery(...) } request.process(solrServer) solServer.commit() } catch (Exception e) { solrServer.rollback(); throw e; } > NullPointerException in LogUpdateProcessorFactory.java when deleting by query *only* > ------------------------------------------------------------------------------------ > > Key: SOLR-1529 > URL: https://issues.apache.org/jira/browse/SOLR-1529 > Project: Solr > Issue Type: Bug > Affects Versions: 1.4 > Reporter: Asmodean > Fix For: 1.5 > > Attachments: logger.patch > > > The problem occurs when a RequestUpdate has deletions that are all *byQuery (as opposed to *byId). The variable 'deletes' is in this case never initialized and will cause a NullPointerException in some cases (where the number of deletions are high enough). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.