zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Olivelli (Jira)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-2416) Remove Java System property usage from ZooKeeper server code
Date Fri, 06 Sep 2019 15:46:09 GMT

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

Enrico Olivelli updated ZOOKEEPER-2416:
---------------------------------------
    Fix Version/s:     (was: 3.5.6)

> Remove Java System property usage from ZooKeeper server code
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2416
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2416
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>            Reporter: Mohammad Arshad
>            Assignee: Mohammad Arshad
>            Priority: Major
>             Fix For: 3.6.0, 3.5.7
>
>
> Many ZooKeeper properties are used as Java System properties in the ZooKeeper code.
> Some example:
> {code}
> public static int getSnapCount() {
> String sc = System.getProperty("zookeeper.snapCount");
> {code}
> {code}
> public int getGlobalOutstandingLimit() { String sc = 
> System.getProperty("zookeeper.globalOutstandingLimit");
> {code}
> Using ZooKeeper properties as Java system properties causes following 
> problems 
> # Can not create two or more ZooKeeper Server in a single JVM 
> with different properties for testing 
> # The properties initialization and validation is very much mixed with actual business
logic which should not be the case.
> ZOOKEEPER-2139 removed the ZooKeeper client side Java System properties so as part of
this jira handling only ZooKeeper server side  Java System properties to be removed.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message