You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Bruce Schuchardt (JIRA)" <ji...@apache.org> on 2018/01/03 21:40:00 UTC

[jira] [Resolved] (GEODE-4176) locator creates "locator0view.dat" file when started with port 0

     [ https://issues.apache.org/jira/browse/GEODE-4176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruce Schuchardt resolved GEODE-4176.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.0

> 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
>             Fix For: 1.4.0
>
>
> 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)