You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Jakob Homan (JIRA)" <ji...@apache.org> on 2008/09/26 01:11:45 UTC

[jira] Created: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Allow clients to retrieve the list of hosts/servers from a URL
--------------------------------------------------------------

                 Key: ZOOKEEPER-146
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
             Project: Zookeeper
          Issue Type: Improvement
          Components: java client
    Affects Versions: 3.0.0
            Reporter: Jakob Homan
            Assignee: Jakob Homan
             Fix For: 3.0.0


As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-146:
------------------------------------

    Affects Version/s:     (was: 3.0.0)
                       3.1.0

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.1.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Jakob Homan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Homan updated ZOOKEEPER-146:
----------------------------------

    Attachment: ZOOKEEPER-146.patch

This patch:
   * Creates a new HostsProvider interface with one method (getHosts()) and two implementations of this method, StringHostsProvider and URLHostsProvider that return the list of hosts from either of those sources.  The StringHostsProvider provides the same functionality that there currently is, and URL will go grab the string from http/file/etc.
   * Creates two new constructors for ZooKeeper to use URLs rather than strings.
   * Provides unit tests for the two new concrete classes.

The patch doesn't change much of the inner workings of the ZooKeeper or ClientCnxn class, just grabs the string from the provider.  It would be possible to improve disconnect behavior by checking to see if there are new hosts available before connecting.

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Jakob Homan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Homan updated ZOOKEEPER-146:
----------------------------------

    Status: Patch Available  (was: Open)

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Jakob Homan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Homan updated ZOOKEEPER-146:
----------------------------------

    Assignee:     (was: Jakob Homan)

Un-assigning myself as it looks like some work is being done and I don't want to appear to be blocking it or such.  Will keep watching to see if there is some way I can help out.

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>             Fix For: 3.2.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-146:
------------------------------------

        Fix Version/s:     (was: 3.0.0)
                       3.1.0
    Affects Version/s:     (was: 3.1.0)
                       3.0.0

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.1.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-146:
-----------------------------------

    Fix Version/s:     (was: 3.1.0)
                   3.2.0

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.2.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-146:
-----------------------------------

    Fix Version/s:     (was: 3.2.0)
                   3.3.0
     Release Note: not a blocker for 3.2, moving to 3.3

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>             Fix For: 3.3.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-146:
-----------------------------------

    Status: Open  (was: Patch Available)

Agree with Mahadev, as this is an addition to the API which is b/w compatible it would be great to wait post 3.0.

Also the javadoc for new constructors and the getHosts method should be added(ZOOKEEPER-21, just committed, adds better docs for the existing zk constructors). Review the src/docs, probably should add information to the documentation as well regarding the format of the http response, protocols supported, etc...


> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Jakob Homan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635829#action_12635829 ] 

Jakob Homan commented on ZOOKEEPER-146:
---------------------------------------

OK, I wait to see if anything happens with the C version and if so, updated with Patrick's comments at that point.

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.1.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-146) Allow clients to retrieve the list of hosts/servers from a URL

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635003#action_12635003 ] 

Mahadev konar commented on ZOOKEEPER-146:
-----------------------------------------

this seems like a nice change.... but we dont have a similar implementation for c.... i would like to keep the c and java clients in sync as much as possible..... i would suggest moving this to post 3.0 and also provide a c counterpart to it... 

> Allow clients to retrieve the list of hosts/servers from a URL
> --------------------------------------------------------------
>
>                 Key: ZOOKEEPER-146
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-146
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: java client
>    Affects Versions: 3.0.0
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-146.patch
>
>
> As I suggested in ZOOKEEPER-107, it would be nice to allow clients to specify their hosts strings via a URL so that this can change dynamically.  For instance, obtain the current list of hosts from a webpage or a file on disk.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.