From issues-return-28156-archive-asf-public=cust-asf.ponee.io@geode.apache.org Wed Jan 3 22:39:11 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id E913618077A for ; Wed, 3 Jan 2018 22:39:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D8906160C39; Wed, 3 Jan 2018 21:39:11 +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 29554160C05 for ; Wed, 3 Jan 2018 22:39:11 +0100 (CET) Received: (qmail 59800 invoked by uid 500); 3 Jan 2018 21:39:10 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 59791 invoked by uid 99); 3 Jan 2018 21:39:10 -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; Wed, 03 Jan 2018 21:39:10 +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 B457D1A03FC for ; Wed, 3 Jan 2018 21:39:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.711 X-Spam-Level: X-Spam-Status: No, score=-98.711 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id CBTfyqIAvpG9 for ; Wed, 3 Jan 2018 21:39:09 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C0FB65FB29 for ; Wed, 3 Jan 2018 21:39:08 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AE4E8E0F13 for ; Wed, 3 Jan 2018 21:39:07 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A42CE240EA for ; Wed, 3 Jan 2018 21:39:05 +0000 (UTC) Date: Wed, 3 Jan 2018 21:39:05 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-4176) locator creates "locator0view.dat" file when started with port 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-4176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16310324#comment-16310324 ] ASF subversion and git services commented on GEODE-4176: -------------------------------------------------------- Commit cdd98b2dd9b6ccaf9520882848e6ed6ccecfd817 in geode's branch refs/heads/develop from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=cdd98b2 ] GEODE-4176 locator creates "locator0view.dat" file when started with port 0 Modified the locator to ensure that the wildcard bind has occurred before GMSLocator creates its persistent view file. I also did some code cleanup and addressed GEODE-1243. This closes #1214 > locator creates "locator0view.dat" file when started with port 0 > ---------------------------------------------------------------- > > Key: GEODE-4176 > URL: https://issues.apache.org/jira/browse/GEODE-4176 > Project: Geode > Issue Type: Bug > Components: membership, tests > Reporter: Bruce Schuchardt > Assignee: Bruce Schuchardt > > The locator was modified some time ago to allow unit tests to start it with port 0 so that it will do a wildcard bind. When that was done the startup sequence wasn't changed to allow the peer-to-peer TcpHandler to know the bound port number & so it creates its persistent view file with port 0 instead of the bound port number. It's possible that if such a file is left around a subsequent test that starts a locator with port 0 will pick up an old locator0view.dat file and attempt to join a distributed system that no longer exists. > The startup sequence needs to be modified to allow the handlers to know the bound port number when they are initialized. -- This message was sent by Atlassian JIRA (v6.4.14#64029)