Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE80418843 for ; Wed, 28 Oct 2015 20:06:55 +0000 (UTC) Received: (qmail 92635 invoked by uid 500); 28 Oct 2015 20:06:52 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 92569 invoked by uid 500); 28 Oct 2015 20:06:52 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 92552 invoked by uid 99); 28 Oct 2015 20:06:52 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 20:06:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1BD6E180046 for ; Wed, 28 Oct 2015 20:06:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xtFKlnqtn9Qb for ; Wed, 28 Oct 2015 20:06:50 +0000 (UTC) Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 55AF020927 for ; Wed, 28 Oct 2015 20:06:50 +0000 (UTC) Received: by qkcn129 with SMTP id n129so8465625qkc.1 for ; Wed, 28 Oct 2015 13:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=GJ1E8F2RqJmR1lyKCu21R/xCVWTdm5Xm9sm72P4jGwU=; b=AqDmY3epwccfpaujePfdPnejHdLAlsW9ueTG3kMeTLGzcGnti13dbbjopqPEQNUhay Et4ya4MipxFdLpufDM3WQB/feORZKoaXdOfrXVpkfwbHUYNfj4+bFbfZYmnVi/Q21VbR ctBe+L96UYLzP+zxOLYSMVDoyEpkYtGYTmEVn8y/voWelt6+9yAzlkztCj86lh072t7d aSaKhXYbTwwSlIywGbwPI2KKsuzcbTHH1dKOraCi+pfl9WKM3ZFB0qWvsOWmb4pCx0OU WSN0aZxfqJbcm7bmLOyVo4019+CY0u5AbBKqGJbe+nZPYpSb/KbmefDl9B1PEE9X7eIH mp8Q== X-Received: by 10.55.198.23 with SMTP id b23mr59377837qkj.92.1446062809369; Wed, 28 Oct 2015 13:06:49 -0700 (PDT) Received: from Srikanths-MacBook-Pro.local ([38.122.182.51]) by smtp.googlemail.com with ESMTPSA id a109sm17744979qge.18.2015.10.28.13.06.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Oct 2015 13:06:48 -0700 (PDT) To: solr-user@lucene.apache.org From: Rallavagu Subject: Commit Error Message-ID: <56312AD8.7040304@gmail.com> Date: Wed, 28 Oct 2015 13:06:48 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Solr 4.6.1, cloud Seeing following commit errors. [commitScheduler-19-thread-1] ERROR org.apache.solr.update.CommitTracker – auto commit error...:java.lang.IllegalStateException: this writer hit an OutOfMemoryError; cannot commit at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2807) at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2984) at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:559) at org.apache.solr.update.CommitTracker.run(CommitTracker.java:216) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:440) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919) at java.lang.Thread.run(Thread.java:682) Looking at the code, public final void prepareCommit() throws IOException { ensureOpen(); prepareCommitInternal(); } private void prepareCommitInternal() throws IOException { synchronized(commitLock) { ensureOpen(false); if (infoStream.isEnabled("IW")) { infoStream.message("IW", "prepareCommit: flush"); infoStream.message("IW", " index before flush " + segString()); } if (hitOOM) { throw new IllegalStateException("this writer hit an OutOfMemoryError; cannot commit"); } It simply checking a flag if it hit OOM? What is making to check and set the flag? What could be the conditions? Thanks.