Skip to content

Commit 73dfa24

Browse files
author
wonjong.yoo
committed
fix typo in comment
1 parent c5545ef commit 73dfa24

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

cruise-control-core/src/main/java/com/linkedin/cruisecontrol/common/Generationed.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface Generationed<G> {
2727
* have a different comparing method along with the generation comparison.
2828
*
2929
* @param other another generationed object to compare the generation with.
30-
* @return -1 if the the generation of this object is earlier than the other's. 0 when the generations are the same.
30+
* @return -1 if the generation of this object is earlier than the other's. 0 when the generations are the same.
3131
* 1 when the generation of this object is later than the other's.
3232
*/
3333
int compareGeneration(Generationed<G> other);
@@ -36,7 +36,7 @@ public interface Generationed<G> {
3636
* Compare the generation of this object with the given generation.
3737
*
3838
* @param generation the given generation.
39-
* @return -1 if the the generation of this object is earlier than the given generation.
39+
* @return -1 if the generation of this object is earlier than the given generation.
4040
* 0 when the generations are the same.
4141
* 1 when the generation of this object is later than the given one.
4242
*/

cruise-control-core/src/main/java/com/linkedin/cruisecontrol/monitor/sampling/aggregator/MetricSampleAggregatorState.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ synchronized void resetWindowIndices(long startingWindowIndex, int numWindowIndi
124124

125125
/**
126126
* Get the list of window indices that need to be updated based on the current generation.
127-
* This method also removes the windows that are older than the oldestWindowIndex from the the internal state
127+
* This method also removes the windows that are older than the oldestWindowIndex from the internal state
128128
* of this class.
129129
*
130130
* @param oldestWindowIndex the index of the oldest window in the MetricSampleAggregator.

cruise-control-metrics-reporter/src/main/java/com/linkedin/kafka/cruisecontrol/metricsreporter/metric/ContainerMetricUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private static double getCpuQuota() throws IOException {
4343
}
4444

4545
/**
46-
* Gets the the number of logical cores available to the node.
46+
* Gets the number of logical cores available to the node.
4747
* <p>
4848
* We can get this value while running in a container by using the "nproc" command.
4949
* Using other methods like OperatingSystemMXBean.getAvailableProcessors() and

cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/analyzer/goals/ReplicaCapacityGoal.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ protected void rebalanceForBroker(Broker broker,
264264
*
265265
* A alive destination broker is eligible for a given replica if
266266
* (1) the broker contains less than allowed maximum number of replicas, or
267-
* (2) If the the self healing mode is true.
267+
* (2) If the self healing mode is true.
268268
*
269269
* Returned brokers are sorted by number of replicas on them in ascending order.
270270
*

cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/executor/ExecutionTaskPlanner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ private void removeInterBrokerReplicaActionForExecution(ExecutionTask task) {
507507
/**
508508
* The comparing order:
509509
* <ul>
510-
* <li>Priority of the the first task of each broker</li>
510+
* <li>Priority of the first task of each broker</li>
511511
* <li>The task set size of each broker. Prioritize broker with the larger size</li>
512512
* <li>Broker ID integer. Prioritize broker with the smaller ID</li>
513513
* </ul>

cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/monitor/MonitorUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private MonitorUtils() {
6767
/**
6868
* Derive follower load from the leader load.
6969
* <p>
70-
* If linear regression model is used, the The way we derive the follower metrics is the following:
70+
* If linear regression model is used, the way we derive the follower metrics is the following:
7171
* <ul>
7272
* <li>FOLLOWER_CPU = LEADER_NETWORK_IN * coefficient + residue </li>
7373
* <li>FOLLOWER_DISK = LEADER_DISK </li>

0 commit comments

Comments
 (0)