Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 95A0D200C78 for ; Thu, 4 May 2017 05:00:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 94318160BBA; Thu, 4 May 2017 03:00:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D8DB5160BB5 for ; Thu, 4 May 2017 05:00:37 +0200 (CEST) Received: (qmail 6024 invoked by uid 500); 4 May 2017 03:00:36 -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 6012 invoked by uid 99); 4 May 2017 03:00:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2017 03:00:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A5CAE1A065A for ; Thu, 4 May 2017 03:00:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lpf0Bd_LVqF9 for ; Thu, 4 May 2017 03:00:32 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E5DA65F5F9 for ; Thu, 4 May 2017 03:00:31 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id h4so633065lfj.3 for ; Wed, 03 May 2017 20:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=HgrEMy3WJ1V6cL+sF79Sr7O8d2BWeUGmWxth8voO8bk=; b=NTeLSHnPmHtrbATuzxHsNj9Ik5qLFc6NgdcfMrZzRR3F1tWgESXctpbHa+ClBaHtQp 0tCD2luHOGMcdleCneMdIJs3QJPuTHmHVUHCnkf7UbOczpJmVg5ovwzj7sOe4fyITR8b i0z9fD0q+Jqs4Rnyb1/iswomRX/IC+n6IhLwlEM9xBKIUxvYrluVVLtAzeRk1wGohwHU pYmvSP5cNeUjPJ5t8VwC5WvzT4edMhXWbBWa1nWIrifNU/H6AglZomfr7tTLAYm6CTRP NBurQ1+nn8YniiT+vve7kIsAqhIauii2UREVVzA+oaqyj+w06wS+xWImobs9Csbm9gNu WVMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=HgrEMy3WJ1V6cL+sF79Sr7O8d2BWeUGmWxth8voO8bk=; b=ZdyRa6zpSfTv1Y1N/L1GYrVTZFZ1qJ3pn1xebrbzY1IYxc6a6pL/PTGT0UH+OudT50 qjzqiw08k33vSdXwglwhkz1J1mZlTLWF6xBWyxcBYfZf6gVt4++cDBZvUcsrpDCE2+rB AEaf1PbKJWE07uEhp09S8RL6MHAisE+FG6yYo05svduYgfUZHoAX2E42wtYODf/rr2bX YQ3uDypB2Gui3b8CXw+Qiy31kYnADp43aogjiMFWT9EGf+lBqpzbXRdHlOQqvXGMWRVA ZT4dtkes5GrBz6EfqhPQFfVoQn6rMdOj6n1yPZWbxhKF+WsjWwwAFeSPXyyj33NNyHds /DWA== X-Gm-Message-State: AN3rC/7nR2GmC1bAzHuIPUtxFlPXtSH8wxwDJmIpuiLU3J5yE2hHCiC7 lGI5TOyDsoILLkMkKWLjyDHNn+lo4SXh X-Received: by 10.46.22.4 with SMTP id w4mr2519113ljd.138.1493866831203; Wed, 03 May 2017 20:00:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.181.76 with HTTP; Wed, 3 May 2017 19:59:50 -0700 (PDT) In-Reply-To: <1a56bd9f-d166-b679-339a-44ef74572215@elyograg.org> References: <9887491D-6831-40AA-94AF-59A55B1A3DE7@vmware.com> <1a56bd9f-d166-b679-339a-44ef74572215@elyograg.org> From: Erick Erickson Date: Wed, 3 May 2017 19:59:50 -0700 Message-ID: Subject: Re: Verify unloading of a Solr Core To: solr-user Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Thu, 04 May 2017 03:00:38 -0000 Please do not kill Solr with "kill -9". Sure it stops the process but it's A Bad Practice exactly because it dis-allows graceful shutdowns, Solr may be forcefully killed when in the middle of operations. You are not, by chance, specifying an async ID are you? If so, the command will return immediately and you have to check the id via REQUESTSTATUS to know when the command is completed. Finally, I'd look at the Solr logs to be sure the command reached the Solr instance in question and completed successfully. My bet: the command didn't go where and/or do what you expected. Best, Erick On Wed, May 3, 2017 at 4:21 PM, Shawn Heisey wrote: > On 5/3/2017 1:52 PM, Shashank Pedamallu wrote: >> I unload a core from Solr using the CoreAdmin page on UI or send unload = request via the api, it works perfectly fine. In my code, I=E2=80=99m tryin= g to unload a core using the call: >> >> CoreAdminRequest.unloadCore(, ); >> >> I get following response: >> >> {responseHeader=3D{status=3D0,QTime=3D0}} >> >> At this step, I had put a debug point and Solr UI still shows the core t= hat I have unloaded. Also, I killed the solr process using kill =E2=80=939 = command and restarted Solr. The core is still present in Solr. When does it= get unloaded then? > > Can you show how the SolrClient is created? If it's HttpSolrClient, > then include the URL that's used to create the client. Change the > hostname if you need to in order to disguise anything that should remain > hidden. > > Ideally, I'd like to see all of the SolrJ code, and the log entry in > solr.log from the unload call. > > Thanks, > Shawn >