From dev-return-36171-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Wed Jul 4 00:56:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B0176180632 for ; Wed, 4 Jul 2018 00:56:12 +0200 (CEST) Received: (qmail 27076 invoked by uid 500); 3 Jul 2018 22:56:11 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 27063 invoked by uid 99); 3 Jul 2018 22:56:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2018 22:56:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B4524D20E6 for ; Tue, 3 Jul 2018 22:56:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.988 X-Spam-Level: * X-Spam-Status: No, score=1.988 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id O3mvNIZXsZ8U for ; Tue, 3 Jul 2018 22:56:09 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6701D5F300 for ; Tue, 3 Jul 2018 22:56:09 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id v8-v6so7089965oie.5 for ; Tue, 03 Jul 2018 15:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xCq74kkLxUnDweq3SWFZhOg32efeQ6J1AbBxJyA5Nes=; b=vYsqPxm14SRPRosMz+wnnCVBGn1qs+gPZ4ukYgfaDYl2raZm88rqO+bzXITBRB9Vu2 7k5EIJK0GjGmc9iKNfCf2IwF2pZX85k3ynTAUyT/unR36wgxOKFZD+rcu38t4jqcdN1Y FzdDTN94j2YrScuoj2YifpEKzHPqclvyrLMarNSzj2dOZFQm54oeSEY7dfDylE5lIkRx cRjoyXawO0KBLwj13xEPXf7IzT7FPdtDqypSNsFLc4w/tFlr7uLfApUunbB5R0WNA0g2 Oja7b+nQX0TjVIrgGsLQ9QsdayWRcCURYlzaVVprw0f2Drfp3YsHBQvD4088c6Xb3DcE Z2zw== 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:cc; bh=xCq74kkLxUnDweq3SWFZhOg32efeQ6J1AbBxJyA5Nes=; b=TyOWBZrjN0+WxSMjbVmwLrKZIsZ8SfnCvJL33M2K62mFuwObxCy/KjTlt54Wpau9R9 X7xrX8DT6LNIT34ZoKFZxNTSM1fs7hGeTvmcgYbCHMo9XjnCVz6zPUHprIRuWIn5gwRP cAI6WLO30w3l/BKzAmmGAGtbF+uZqOrlyBRZrHUcfwBZwsfjUILU5jtu5ycju0poSZlx 5F+qmqGiLN10bjcFORBItWdZtErbHs/tZaEGyRN0eU0P7OG5ZdQT5kgodmfDrIeoeo7y nKGz1j6Im1iyPN/n5xfq7mFDcGe25rrHvszPPPmEir090f3TefctWRXOuqKI6OQcJDgC /hHw== X-Gm-Message-State: APt69E0OPJQ4jChXY3DAadf56Ohvr/7m/Bpc7oq+HblR5G5MuH6IBVTN ZOIqoETvd1rAFmaMrCdP4+dJs5cqLu7sWqkB9Dzeng== X-Google-Smtp-Source: AAOMgpeE50eGgDdo0NIK5gwyr/Do7o0h03E80HOW5+io5yuHnysrH61guwmFylIiNdsQfo2MO2YLGEd6CQt2F1Jpxd8= X-Received: by 2002:aca:3f87:: with SMTP id m129-v6mr24299790oia.58.1530658563301; Tue, 03 Jul 2018 15:56:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:406:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 15:55:32 -0700 (PDT) In-Reply-To: <8b04020d-7bdb-49d3-7bea-5078940ceba3@gmail.com> References: <2abba285-1b2a-7937-f820-459e643102af@gmail.com> <8b04020d-7bdb-49d3-7bea-5078940ceba3@gmail.com> From: Prachi Garg Date: Tue, 3 Jul 2018 15:55:32 -0700 Message-ID: Subject: Re: Erroneous Baseline Topology documentation To: Ivan Rakov Cc: dev , Denis Magda Content-Type: multipart/alternative; boundary="000000000000f03a1d0570203783" --000000000000f03a1d0570203783 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ivan, I have fixed and rephrased the section - https://apacheignite.readme.io/v2.5/docs/baseline-topology#section-cluster-= activation However, I have a question regarding setting the baseline topology when activating the cluster for the first time. In the web console, when we activate the cluster, using the toggle switch, all server nodes in the cluster are automatically added to the baseline topology. Does this mean that when we activate the cluster for the first time, via code, we do not need the following piece code? // Get all server nodes that are already up and running. Collection nodes =3D ignite.cluster().forServers().nodes(); // Set the baseline topology that is represented by these nodes. ignite.cluster().setBaselineTopology(nodes); I guess just activating the cluster would add all the existing nodes to the baseline topology? On Tue, Jul 3, 2018 at 12:48 PM, Ivan Rakov wrote: > I've tried to execute exactly the same code, it resulted with > > class org.apache.ignite.IgniteException: Changing BaselineTopology on >> inactive cluster is not allowed. >> > Basically, the code snippet is in "Setting the Topology From Code" > section, so we can make it correct by just removing "activation" and "fir= st > baseline topology" parts. > > Best Regards, > Ivan Rakov > > > > On 03.07.2018 22:30, Denis Magda wrote: > >> Prachi, >> >> I do remember that that code, Ivan is referring to, worked fine for you. >> Please double check. Probably you need to add "ignite.cluster.activate()= " >> to the code snippet. >> >> -- >> Denis >> >> On Tue, Jul 3, 2018 at 12:19 PM Ivan Rakov wrote= : >> >> Igniters, >>> >>> Seems like we have an inconsistency in our Baseline Topology >>> documentation: >>> >>> https://apacheignite.readme.io/docs/baseline-topology#sectio >>> n-setting-the-topology-from-code >>> >>> Java developers can use the IgniteCluster interface to initialize the >>>> very first baseline topology or to adjust an existing one. The sample >>>> below shows how to add all the existing server nodes to the baseline >>>> topology:=E2=80=8B >>>> // Connecting to the cluster. >>>> Ignite ignite =3D Ignition.start(); >>>> >>>> // Setting the baseline topology to a specific Ignite cluster topology >>>> version. >>>> ignite.cluster().setBaselineTopology(2); >>>> >>> This is not true; baseline topology can't be changed on inactive >>> cluster. The only viable way to initialize the very first baseline >>> topology is manual cluster activation. This is correctly explained in >>> this section: >>> >>> https://apacheignite.readme.io/docs/baseline-topology#sectio >>> n-first-cluster-startup >>> >>> -- >>> Best Regards, >>> Ivan Rakov >>> >>> >>> > --000000000000f03a1d0570203783--