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 F00C5200CDE for ; Tue, 8 Aug 2017 19:23:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EE6BC167952; Tue, 8 Aug 2017 17:23:24 +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 3D2B216792C for ; Tue, 8 Aug 2017 19:23:24 +0200 (CEST) Received: (qmail 30768 invoked by uid 500); 8 Aug 2017 17:23:22 -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 30756 invoked by uid 99); 8 Aug 2017 17:23:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2017 17:23:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A40D1C04DF for ; Tue, 8 Aug 2017 17:23:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.693 X-Spam-Level: * X-Spam-Status: No, score=1.693 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, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wPD3HHQ_ri0j for ; Tue, 8 Aug 2017 17:23:20 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id BAA045F613 for ; Tue, 8 Aug 2017 17:23:19 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id o85so17771091lff.3 for ; Tue, 08 Aug 2017 10:23:19 -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=Fj08Yg87SnYAlor+QMnlnaJJJ/DtTx5eJYENVSjnUpk=; b=Pr10dMgkQmBN3cAeofOiSF3OW81l/yWCSn3Vm8Yrmic4/UT15nI1KDUY21nKkLlcMT 1QuXhv62RnHqVFVx0pp7HbSE2fnLzwjg7oNIohfsW84qK5t78yQH4mIHaw9JC+eff3bZ sOv0vWqruf2qwQAJqycQ/JNbwHZaGNFjfnBY4qO3eQRecvUmp4moZzzy0dSzd17m/Off oK5rOadRdgI3UbdtZJPyEf+A84oXs2d9q1FfHItbvemQJaevwRf0NnS9aIxw3zvPlT7T O9rBUncK5NR1PKMLTJw7XEj6vRhs7czShmAwNdONXU5OcKbI4wjNidFa8oBw/ObzE1ce 1/rg== 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=Fj08Yg87SnYAlor+QMnlnaJJJ/DtTx5eJYENVSjnUpk=; b=Sq9DMi/OMqGWlGQhDy13AIM0HTIFt+teZgu25GHZFrf1tNRhwglx2NGyBD9kPVIK9m 5YwsoVXz8gWZBGb0trUVFaiF6RV9O3AIY131gfzSJ9vOwVpTe8iBPulevJW23L4joOs2 xxh3Uuge8KPHj+EGlgjO903rQ8O0YwVF3B7sUqddKuYQjwMS+dj6GcjRIjk6v4zu/3qm QhnYT4tyiUAXLTKNHlvTFaiemlQqxoaQER/xhlmU/+sHxbwOVEXcbTPCVIeTU1cGTyVb kr6oQrOnCrAr5zUf/3blH7rx4jMYwKjzWQXSuIgGw4WCuIE+O2gBIzdC1+LUxUtRHhJK 00Jw== X-Gm-Message-State: AHYfb5gDS6G5E0wXud8Bk3gGqipXenIpdCxy7zwZMC9JHou4ueEjsqKO t1fk/7cpRKkV0I8UFhJqL6B2d6LsLV9DJb8= X-Received: by 10.46.75.1 with SMTP id y1mr1723853lja.107.1502212998946; Tue, 08 Aug 2017 10:23:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.84.208 with HTTP; Tue, 8 Aug 2017 10:22:38 -0700 (PDT) In-Reply-To: <1502210961932-4349618.post@n3.nabble.com> References: <1502210961932-4349618.post@n3.nabble.com> From: Erick Erickson Date: Tue, 8 Aug 2017 10:22:38 -0700 Message-ID: Subject: Re: SolrCloud - leader updates not updating followers To: solr-user Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Tue, 08 Aug 2017 17:23:25 -0000 This _better_ be a problem with your configuration or all my assumptions are false ;) What are you autocommit settings? The documents should be forwarded to each replica from the leader during ingestion. However, they are not visible on the follower until a hard commit(openSearcher=3Dtrue) or soft commit is triggered. Long blog on all this here: https://lucidworks.com/2013/08/23/understanding-transaction-logs-softcommit= -and-commit-in-sorlcloud/ An easy way to check that docs are being sent to the follower is to tail solr.log and send a doc to the leader. You should see the doc arrive at the follower. If you do see that then it's your autocommit settings. NOTE: Solr promises eventual consistency. Due to the fact that autocommits will execute at different wall-clock times on the leaders and followers you can be out of sync by up to your autocommit interval. You can force a commit by a URL like "http://solr:port/solr/collection/update?commit=3Dtrue" that will commit on all replicas in a collection that may also be useful for seeing if it's an autocommit issue. Best, Erick On Tue, Aug 8, 2017 at 9:49 AM, lancasp22 wrote: > Hi, > > I've recently created a solr cloud on solr 5.5.2 with a separate zookeepe= r > cluster. I write to the cloud by posting to update/json and the documents > appear fine in the leader. > > The problem I have is that new documents added to the cloud aren't then > being automatically applied to the followers of each leader. If I query a > core then I can get different counts depending on which version of the co= re > the query ran over and the solr admin statistics page confirms that the > followers have fewer documents and are behind the leader. > > If I restart the solr core for a follower, it does recover quickly and > brings itself up-to-date with the leader. Looking at the logs for the > follower you see that on re-start it identifies the leader and gets the > changes from that leader. > > I think when documents are added to the leader these should be pushed to = the > followers so maybe it's this push process that isn't being triggered. > > It=E2=80=99s quite possible that I=E2=80=99ve made a simple error in the = set-up but I=E2=80=99m > baffled as to what it is. Please can anyone advise on any configuration t= hat > I need to check that might be causing these symptoms. > > Thanks in anticipation, > Peter Lancaster. > > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/SolrClou= d-leader-updates-not-updating-followers-tp4349618.html > Sent from the Solr - User mailing list archive at Nabble.com.