Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 26759 invoked from network); 6 May 2010 19:12:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 May 2010 19:12:48 -0000 Received: (qmail 87127 invoked by uid 500); 6 May 2010 19:12:47 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 87088 invoked by uid 500); 6 May 2010 19:12:47 -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 87081 invoked by uid 99); 6 May 2010 19:12:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 19:12:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 19:12:39 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 0DC1371C2EF; Thu, 6 May 2010 12:12:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 0B72B71C2ED for ; Thu, 6 May 2010 12:12:19 -0700 (PDT) Date: Thu, 6 May 2010 12:12:19 -0700 (PDT) From: Chris Hostetter To: dev@lucene.apache.org Subject: Re: Solr on AppEngine - patches? & a question In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Is there any interest in patches to make these classes extensible enough for : use in this scenario? I think it would definitely be informative for a lot of people if you would be willing/interested in posting your patches -- even if we can't/don't commit them for some reason, they can still serve as informative starting points for other people, and they might help us spot ways the code can be refactored/generalized to make your situation easier. : Secondly, AppEngine also doesn't allow the creation of threads. This was : mostly easy to work around (I created a ExecutorService using the current : thread), except for the CountDownLatch locking stuff in the SolrCore : constructor: ... : I don't completely understand what's going on here. My understanding is that : it's locking the search executor so that it won't run until all the : searchers are correctly initialized, and I'm guessing that SolrCore handles : the case where simultaneous requests to the filter come in : before initialization is complete somehow. not exactly -- external requests won't be sent to the core until the constructor has finished, but "firstSearcher" queries configured in the solrconfig.xml are executed internally, and those need to be blocked untill all the components have been initialized. : Since I'm running single threaded here, I've worked around that by : commenting it out. Is that sufficient or is there a better way? I'm not sure ... presumable your "ExecutorService using the current thread" approach wouldn't work here since it would defeat the point of blocking (but it would be no worse then commenting out -- that's one generalization we might support, a way to configure the ExecutorService used). I have no idea if there would be a better way of dealing with that. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org