Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2416

Remove Java System property usage from ZooKeeper server code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • server
    • None

    Description

      Many ZooKeeper properties are used as Java System properties in the ZooKeeper code.
      Some example:

      public static int getSnapCount() {
      String sc = System.getProperty("zookeeper.snapCount");
      
      public int getGlobalOutstandingLimit() { String sc = 
      System.getProperty("zookeeper.globalOutstandingLimit");
      

      Using ZooKeeper properties as Java system properties causes following
      problems

      1. Can not create two or more ZooKeeper Server in a single JVM
        with different properties for testing
      2. 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.

      Attachments

        Issue Links

          Activity

            People

              arshad.mohammad Mohammad Arshad
              arshad.mohammad Mohammad Arshad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: