Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A83D18500 for ; Thu, 12 Nov 2015 10:16:34 +0000 (UTC) Received: (qmail 64919 invoked by uid 500); 12 Nov 2015 10:16:34 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 64873 invoked by uid 500); 12 Nov 2015 10:16:34 -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 64861 invoked by uid 99); 12 Nov 2015 10:16:33 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 10:16:33 +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 3D2C7C5284 for ; Thu, 12 Nov 2015 10:16:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.98 X-Spam-Level: ** X-Spam-Status: No, score=2.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PgmQCTegsw1s for ; Thu, 12 Nov 2015 10:16:27 +0000 (UTC) Received: from mail-vk0-f49.google.com (mail-vk0-f49.google.com [209.85.213.49]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 34BF720EA4 for ; Thu, 12 Nov 2015 10:16:27 +0000 (UTC) Received: by vkgy188 with SMTP id y188so7262084vkg.1 for ; Thu, 12 Nov 2015 02:16:26 -0800 (PST) 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:date:message-id:subject:from:to :content-type; bh=tyim43aV5ZHGLK6zlVB/aYxN9vntkgcdGkbu9K9eZfU=; b=dPckjad5Legih5MI/UBgvZoivH2Z5iUj8QRYXAjL4X0+ZcK0Gh9UD0GTY72b+E4QiV wQef3+vbWQaremymovWfii4J2f4mQuhzcc5rYYTTgdZplGmxAyc736ksgh9ZJt8jMLfS GWEEc5t8HsAXgZYF+cw43cpX4CMZflL8m8N+nmg7gYEe5b15XDx3Ju8H1+LeIuMsQ7jr pIB8JnKD9noscUEbppg9Zum6tqy06L5KsR4i9WKRQyrPud+p5eCesqoM7rJpt/efXFRX X2qcH2M4K3GxWAYo1KOkbpqj/IyD5uoc6Sl1SfFbnK0Rkny0pqD/Oap6fr4jVme8ldwO XitQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=tyim43aV5ZHGLK6zlVB/aYxN9vntkgcdGkbu9K9eZfU=; b=EoooApIFmVq2QGCOMzD0kAuKWlYbVPmWcKt+4bdgOhNyfdS/QmSJicpUDgzraxsIC6 NR3zaowxIQRRo9930PcpeEBpl7qLnkWW80q5sU2+wnbsI82o0mOx2dpkDXSFp0PFd/hq ffSTCbOBydg8fVZ/wSRfezXwPyeoyvR6VF2OerS/NqSicJXK1AFkN9S7NnknIHDGxtVA hla7j+MxjctlCgVH1GJqZ7QMFyaCx7EqcQHXMlm37KamLFCDta9QeSd0dzX6kyinrD6T +yOMCTNgfrhMvk2TCkAd7DL2i805Yd5eG+ZOlrczqWf7hkaNVdT3RAMqTHi+6PACeTHn 1Aqg== X-Gm-Message-State: ALoCoQmyqhKQMU+U6H2aP/L9BiqdRp7k2+PEzkJqJ1YOFzpQKa9QCUVn2peupoVx3+ZQzDhL7VnK MIME-Version: 1.0 X-Received: by 10.31.33.3 with SMTP id h3mr2426248vkh.5.1447323386261; Thu, 12 Nov 2015 02:16:26 -0800 (PST) Received: by 10.31.221.2 with HTTP; Thu, 12 Nov 2015 02:16:26 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Nov 2015 13:16:26 +0300 Message-ID: Subject: Re: IGFS URI authority: simplify handling of IGFS and Grid names. From: "Ivan V." To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11c0087e5055c00524553c1d --001a11c0087e5055c00524553c1d Content-Type: text/plain; charset=UTF-8 Hi, Dmitriy, null Grid name and null Igfs name mean the default Grid and Igfs respectively. In case of in-process connection, URI without specified grid and/or igfs name means to connect to the default (null-named) Grid and/or Igfs. If this contract makes sense, we should not prohibit nulls. On Wed, Nov 11, 2015 at 9:11 PM, Dmitriy Setrakyan wrote: > I also agree (I think). Would prohibiting nulls also make sense? > > On Wed, Nov 11, 2015 at 4:04 AM, Vladimir Ozerov > wrote: > > > +1 > > > > User should have minimal chance to do a mistake in common scenarios. > > > > On Wed, Nov 11, 2015 at 1:47 PM, Ivan V. > > wrote: > > > > > Hi, dev, > > > currently IGFS URI has form > > > igfs://[igfs-name[:grid-name]]@[host[:port]]/[path] . > > > This connection can be established with "in-process" routine (used > mostly > > > in tests), or with SHMEM, or with TCP protocol. > > > Current logic of "igfs-name" and "grid-name" handling is as follows. > > > In case of in-proc routine the Ignite process is asked for named Grid > and > > > its IGFS, null names mean default instances. > > > In case of external process connection (to "host:port" specified in the > > > URI) there is a restriction that the name of connected IGFS and Grid > must > > > exactly match "igfs-name" and "grid-name" specified in the URI. But > that > > > rule leads to the following (may be unexpected) behavior: if URI is > > > "igfs://localhost:10500/", the IGFS name and Grid names are null-s, and > > the > > > name match rule requires the connected IGFS and Grid to be default. And > > if > > > that is not the case, an exception is thrown. This situation has > happened > > > with a user, and described in > > > https://issues.apache.org/jira/browse/IGNITE-1566 . > > > In order to fix the problem and improve the usability, I would suggest > to > > > relax the name handling logic in the following way: in case of external > > > connection treat unspecified Igfs and Grid names as a direction to > > connect > > > to the Grid/Igfs that owns the connection port (not more than one such > > pair > > > exists). > > > Any objections, corrections, thoughts? > > > Thanks in advance. > > > > > > --001a11c0087e5055c00524553c1d--