Skip to content

Commit

Permalink
ZOOKEEPER-4877: Fix typos in comments
Browse files Browse the repository at this point in the history
Reviewers: kezhuw, shoothzj
Author: luozongle01
Closes apache#2203 from luozongle01/ZOOKEEPER-4877
  • Loading branch information
luozongle01 authored Oct 18, 2024
1 parent e72f80a commit 837f86c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private void becomeFailed(Exception e) {
* Fetch the (user supplied) hostname of the current leader. Note that by the
* time this method returns, state could have changed so do not depend on this
* to be strongly consistent. This method has to read all leader offers from
* ZooKeeper to deterime who the leader is (i.e. there is no caching) so
* ZooKeeper to determine who the leader is (i.e. there is no caching) so
* consider the performance implications of frequent invocation. If there are
* no leader offers this method returns null.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ void testableCloseSocket() throws IOException {
}
}

// *************** <END> CientCnxnSocketNetty </END> ******************
// *************** <END> ClientCnxnSocketNetty </END> ******************
private static class WakeupPacket {

private static final Packet instance = new Packet(null, null, null, null, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package org.apache.zookeeper.metrics;

/**
* A generic exception thrown during the licecycle of a MetricsProvider.
* A generic exception thrown during the lifecycle of a MetricsProvider.
* <p>These exception will prevent the system from booting.</p>
* <p>Normally these exception will be ignored during shutdown.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public enum PurgeTaskStatus {
* transaction log directory
* @param snapRetainCount
* number of snapshots to be retained after purge
* @param purgeInterval
* purge interval in hours
* @param purgeIntervalInMs
* purge interval in milliseconds
*/
public DatadirCleanupManager(File snapDir, File dataLogDir, int snapRetainCount, int purgeIntervalInMs) {
this.snapDir = snapDir;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ Optional<ServerSocket> createServerSocket(InetSocketAddress address, boolean por

/**
* This message type is sent by the leader to indicate that the follower is
* now uptodate andt can start responding to clients.
* now uptodate and can start responding to clients.
*/
static final int UPTODATE = 12;

Expand Down

0 comments on commit 837f86c

Please sign in to comment.