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 874A3200CB5 for ; Wed, 12 Jul 2017 17:58:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 85CA71681E6; Wed, 12 Jul 2017 15:58:17 +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 CEB1C168011 for ; Wed, 12 Jul 2017 17:58:16 +0200 (CEST) Received: (qmail 61215 invoked by uid 500); 12 Jul 2017 15:58:13 -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 60701 invoked by uid 99); 12 Jul 2017 15:58:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2017 15:58:12 +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 3E48E19624F for ; Wed, 12 Jul 2017 15:58:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, 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: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id YC0LyhYOMlL0 for ; Wed, 12 Jul 2017 15:58:07 +0000 (UTC) Received: from mail-it0-f54.google.com (mail-it0-f54.google.com [209.85.214.54]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 281B7612DC for ; Wed, 12 Jul 2017 15:57:44 +0000 (UTC) Received: by mail-it0-f54.google.com with SMTP id k192so15605508ith.1 for ; Wed, 12 Jul 2017 08:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=UdHJ02QKpBPPKyS+bG/HieoTrSqnDNiHELNSxCOP030=; b=tiU8Sn1/pRY6mqMu8GVkvJCT8f/ngTp0qcRYMVAd8JX6eV59qbsiTHBZSnOAYLMBna TJXZsnTrsaoolDMaj7WUSgqg8r5nNmodHJqbTlBpMfNN/GGeVD/7JnJNiekuuRqvbtLd bUWhZoDx2rVr7/bE6tnEcu4/I0rRBQNR5lUHNhwVR2lsP3Z6nDVhAA0Oiy0XQ5wHb2Rh ODabprB96yvoCB5yQCZnyvPF9orduD/Y/nhy+mCZo2NbBsOoywGgAjp19LCBbvXGed9t S7yAipZcJGwttWi4ifCsHRgell1o+ECXGtV0idGCKRKNZdkEg3XGsQB2gyFUucwr2L9E dCgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UdHJ02QKpBPPKyS+bG/HieoTrSqnDNiHELNSxCOP030=; b=gE7fj34KJtZLB+JWUrie6RrY5kTOtjJHicHI6QheS0qOq5998oaQ4QJBQklGp5YbgT naTbVnyUpG9el9bZcZ6+Wcg0BfHIcfiLibNaqeZ3C5ljiIs47Q1sWLnI5vtS9CwVv7kg gsiRP7Kj8roZlP7OM1GPfuZa37nN2eaUgdEnhhKYtkrLXZZbGvRnAZemP65R2l4HXWlA G3/nhbBCqlf/cmgkuacXOLBS9Ub2hYA/F+ttj0A9MjAcuvdWrbFkyndS6J/N3xVUgagr EbXa5E0t0/MFa/Bx3mkUCru8ASq7WQy9ILs6U1hHOgecK+Triq5M8Nk+t7Ltaqya//my bD6A== X-Gm-Message-State: AIVw111IaXMmepSmF21v69bS+6lNuw+0ZEEyW0hJAxdsxgWjhkrjwBR8 cHcgPsRZ76VkOahwt3RtqbbWCIwWso2o X-Received: by 10.36.88.196 with SMTP id f187mr9302096itb.86.1499875062511; Wed, 12 Jul 2017 08:57:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.79.166 with HTTP; Wed, 12 Jul 2017 08:57:21 -0700 (PDT) From: "Vincenzo D'Amore" Date: Wed, 12 Jul 2017 17:57:21 +0200 Message-ID: Subject: Solr Cloud 6.x - rollback best practice To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="001a11449dae4f38cb055420e002" archived-at: Wed, 12 Jul 2017 15:58:17 -0000 --001a11449dae4f38cb055420e002 Content-Type: text/plain; charset="UTF-8" Hi, I'm moving to Solr Cloud 6.x and I see rollback cannot be supported when is in Cloud mode. In my scenario, there are basically two tasks (full indexing, partial indexing). Full indexing ========= This is the most important case, where I really need the possibility to rollback. The full reindex is basically done in 3 steps: 1. delete *:* all collection's documents 2. add all existing documents 3. commit If during the step 2 something go wrong (usually some problem with the source of data) I had to rollback. Partial reindexing ============= Unlike the the former, this case is executed in only 2 steps (no delete) and the number of documents indexed usually is small (or very small). Even in this case if the step 2 go wrong I had to rollback. Do you know if there is a common pattern, a best practice, something of useful to handle a rollback if something go wrong in these cases? My simplistic idea is to have two collections (active/passive), and switch from one to another only when all the steps are completed successfully. But, as you can understand, having two collections works well with full indexing, but how do I handle a partial reindexing if something goes wrong? So, I'll be grateful to whom would spend his/her time to give me a suggestion. Thanks in advance and best regards, Vincenzo -- Vincenzo D'Amore email: v.damore@gmail.com skype: free.dev mobile: +39 349 8513251 --001a11449dae4f38cb055420e002--