You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ma...@apache.org on 2021/01/23 17:58:24 UTC
[zookeeper] branch master updated: ZOOKEEPER-3898: Fix typos
This is an automated email from the ASF dual-hosted git repository.
maoling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 3b6fefc ZOOKEEPER-3898: Fix typos
3b6fefc is described below
commit 3b6fefc43221fb3626740618a68562ff1ba707c0
Author: dk.technoboy <gu...@immomo.com>
AuthorDate: Sun Jan 24 01:58:11 2021 +0800
ZOOKEEPER-3898: Fix typos
Author: dk.technoboy <gu...@immomo.com>
Reviewers: Enrico Olivelli <eo...@apache.org>, maoling <ma...@sina.com>
Closes #1414 from Technoboy-/typos
---
.../src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java | 6 +++---
.../java/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java
index 5c3f5f4..d48a7bf 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/ZooKeeperServer.java
@@ -1224,7 +1224,7 @@ public class ZooKeeperServer implements SessionExpirer, ServerStats.Provider {
}
/**
- * return the last proceesed id from the
+ * return the last processed id from the
* datatree
*/
public long getLastProcessedZxid() {
@@ -1233,7 +1233,7 @@ public class ZooKeeperServer implements SessionExpirer, ServerStats.Provider {
/**
* return the outstanding requests
- * in the queue, which havent been
+ * in the queue, which haven't been
* processed yet
*/
public long getOutstandingRequests() {
@@ -1259,7 +1259,7 @@ public class ZooKeeperServer implements SessionExpirer, ServerStats.Provider {
}
/**
- * trunccate the log to get in sync with others
+ * truncate the log to get in sync with others
* if in a quorum
* @param zxid the zxid that it needs to get in sync
* with others
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java
index f3f456e..7a73180 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java
@@ -712,7 +712,7 @@ public class QuorumPeerConfig {
if (numParticipators <= 2) {
LOG.warn("No server failure will be tolerated. You need at least 3 servers.");
} else if (numParticipators % 2 == 0) {
- LOG.warn("Non-optimial configuration, consider an odd number of servers.");
+ LOG.warn("Non-optimal configuration, consider an odd number of servers.");
}
}