Parcourir la source

ZOOKEEPER-3190: Spell check on the Zookeeper server files

This pull request is to do spell check on the zookeeper server files [ zookeeper/zookeeper-server/src/main/java/org/apache/zookeeper/server ] for a newbie to understand the process.

Author: dappavoo <dappavoo@twitter.com>

Reviewers: Allan Lyu <fangmin@apache.org>, Enrico Olivelli <eolivelli@gmail.com>, Michael Han <hanm@apache.org>

Closes #702 from dineshappavoo/ZOOKEEPER-3190
dappavoo il y a 6 ans
Parent
commit
91460546a1

+ 1 - 1
zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Command.java

@@ -45,7 +45,7 @@ public interface Command {
     String getPrimaryName();
 
     /**
-     * A string documentating this command (e.g., what it does, any arguments it
+     * A string documenting this command (e.g., what it does, any arguments it
      * takes).
      */
     String getDoc();

+ 2 - 2
zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Commands.java

@@ -217,7 +217,7 @@ public class Commands {
      * Information on session expirations and ephemerals. Returned map contains:
      *   - "expiry_time_to_session_ids": Map<Long, Set<Long>>
      *                                   time -> sessions IDs of sessions that expire at time
-     *   - "sesssion_id_to_ephemeral_paths": Map<Long, Set<String>>
+     *   - "session_id_to_ephemeral_paths": Map<Long, Set<String>>
      *                                       session ID -> ephemeral paths created by that session
      * @see ZooKeeperServer#getSessionExpiryMap()
      * @see ZooKeeperServer#getEphemerals()
@@ -306,7 +306,7 @@ public class Commands {
      *   - "ephemerals_count": Integer
      *   - "approximate_data_size": Long
      *   - "open_file_descriptor_count": Long (unix only)
-     *   - "max_file_descritpor_count": Long (unix only)
+     *   - "max_file_descriptor_count": Long (unix only)
      *   - "fsync_threshold_exceed_count": Long
      *   - "followers": Integer (leader only)
      *   - "synced_followers": Integer (leader only)

+ 1 - 1
zookeeper-server/src/main/java/org/apache/zookeeper/server/auth/KeyAuthenticationProvider.java

@@ -41,7 +41,7 @@ import org.slf4j.LoggerFactory;
  * http://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.html#sc_ZooKeeperPluggableAuthentication
  *
  * This class looks for a numeric "key" under the /key node.
- * Authorizaton is granted if the user passes in as authorization a number
+ * Authorization is granted if the user passes in as authorization a number
  * which is a multiple of the key value, i.e. 
  *   (auth % key) == 0
  * In a real implementation, you might do something like storing a public

+ 1 - 1
zookeeper-server/src/main/java/org/apache/zookeeper/server/command/AbstractFourLetterCommand.java

@@ -29,7 +29,7 @@ import org.slf4j.LoggerFactory;
 
 /**
  * Set of threads for command ports. All the 4 letter commands are run via a
- * thread. Each class maps to a correspoding 4 letter command. CommandThread is
+ * thread. Each class maps to a corresponding 4 letter command. CommandThread is
  * the abstract class from which all the others inherit.
  */
 public abstract class AbstractFourLetterCommand {

+ 2 - 2
zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/flexible/QuorumHierarchical.java

@@ -117,7 +117,7 @@ public class QuorumHierarchical implements QuorumVerifier {
        return true;
    }
     /**
-     * This contructor requires the quorum configuration
+     * This constructor requires the quorum configuration
      * to be declared in a separate file, and it takes the
      * file as an input parameter.
      */
@@ -146,7 +146,7 @@ public class QuorumHierarchical implements QuorumVerifier {
     }
     
     /**
-     * Reads a configration file. Called from the constructor
+     * Reads a configuration file. Called from the constructor
      * that takes a file as an input.
      */
     private void readConfigFile(String filename)

+ 1 - 1
zookeeper-server/src/main/java/org/apache/zookeeper/server/util/ConfigUtils.java

@@ -62,7 +62,7 @@ public class ConfigUtils {
     }
 
     /**
-     * Gets host and port by spliting server config
+     * Gets host and port by splitting server config
      * with support for IPv6 literals
      * @return String[] first element being the
      *  IP address and the next being the port