Skip to content

Commit 4c93a23

Browse files
committed
[Docs] "The the" is a great band, but ... (#26644)
Removing several occurrences of this typo in the docs and javadocs, seems to be a common mistake. Corrections turn up once in a while in PRs, better to correct some of this in one sweep.
1 parent f6f87a7 commit 4c93a23

File tree

27 files changed

+36
-35
lines changed

27 files changed

+36
-35
lines changed

core/src/main/java/org/elasticsearch/action/DocWriteResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public abstract class DocWriteResponse extends ReplicationResponse implements Wr
6060
private static final String FORCED_REFRESH = "forced_refresh";
6161

6262
/**
63-
* An enum that represents the the results of CRUD operations, primarily used to communicate the type of
63+
* An enum that represents the results of CRUD operations, primarily used to communicate the type of
6464
* operation that occurred.
6565
*/
6666
public enum Result implements Writeable {

core/src/main/java/org/elasticsearch/action/admin/cluster/node/tasks/list/ListTasksResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private void buildTaskGroups() {
110110
// we found parent in the list of tasks - add it to the parent list
111111
parentTask.addGroup(taskGroup);
112112
} else {
113-
// we got zombie or the parent was filtered out - add it to the the top task list
113+
// we got zombie or the parent was filtered out - add it to the top task list
114114
topLevelTasks.add(taskGroup);
115115
}
116116
} else {

core/src/main/java/org/elasticsearch/action/support/AutoCreateIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public boolean needToCheck() {
6464

6565
/**
6666
* Should the index be auto created?
67-
* @throws IndexNotFoundException if the the index doesn't exist and shouldn't be auto created
67+
* @throws IndexNotFoundException if the index doesn't exist and shouldn't be auto created
6868
*/
6969
public boolean shouldAutoCreate(String index, ClusterState state) {
7070
if (resolver.hasIndexOrAlias(index, state)) {

core/src/main/java/org/elasticsearch/action/support/replication/ReplicationOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public interface Primary<
343343
public interface Replicas<RequestT extends ReplicationRequest<RequestT>> {
344344

345345
/**
346-
* Performs the the specified request on the specified replica.
346+
* Performs the specified request on the specified replica.
347347
*
348348
* @param replica the shard this request should be executed on
349349
* @param replicaRequest the operation to perform

core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public String getId() {
277277
}
278278

279279
/**
280-
* The unique ephemeral id of the node. Ephemeral ids are meant to be attached the the life span
280+
* The unique ephemeral id of the node. Ephemeral ids are meant to be attached the life span
281281
* of a node process. When ever a node is restarted, it's ephemeral id is required to change (while it's {@link #getId()}
282282
* will be read from the data folder and will remain the same across restarts). Since all node attributes and addresses
283283
* are maintained during the life span of a node process, we can (and are) using the ephemeralId in

core/src/main/java/org/elasticsearch/common/xcontent/XContentParserUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private XContentParserUtils() {
3939
}
4040

4141
/**
42-
* Makes sure that current token is of type {@link XContentParser.Token#FIELD_NAME} and the the field name is equal to the provided one
42+
* Makes sure that current token is of type {@link XContentParser.Token#FIELD_NAME} and the field name is equal to the provided one
4343
* @throws ParsingException if the token is not of type {@link XContentParser.Token#FIELD_NAME} or is not equal to the given field name
4444
*/
4545
public static void ensureFieldName(XContentParser parser, Token token, String fieldName) throws IOException {

core/src/main/java/org/elasticsearch/index/engine/VersionValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class VersionValue implements Accountable {
3434

3535
/** the seq number of the operation that last changed the associated uuid */
3636
final long seqNo;
37-
/** the the term of the operation that last changed the associated uuid */
37+
/** the term of the operation that last changed the associated uuid */
3838
final long term;
3939

4040
VersionValue(long version, long seqNo, long term) {

core/src/main/java/org/elasticsearch/index/seqno/SeqNoStats.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.elasticsearch.common.io.stream.StreamInput;
2323
import org.elasticsearch.common.io.stream.StreamOutput;
2424
import org.elasticsearch.common.io.stream.Writeable;
25-
import org.elasticsearch.common.xcontent.ToXContent.Params;
2625
import org.elasticsearch.common.xcontent.ToXContentFragment;
2726
import org.elasticsearch.common.xcontent.XContentBuilder;
2827

@@ -42,7 +41,7 @@ public class SeqNoStats implements ToXContentFragment, Writeable {
4241
public SeqNoStats(long maxSeqNo, long localCheckpoint, long globalCheckpoint) {
4342
assert localCheckpoint <= maxSeqNo:
4443
"local checkpoint [" + localCheckpoint + "] is above maximum seq no [" + maxSeqNo + "]";
45-
// note that the the global checkpoint can be higher from both maxSeqNo and localCheckpoint
44+
// note that the global checkpoint can be higher from both maxSeqNo and localCheckpoint
4645
// as we use this stats object to describe lucene commits as well as live statistic.
4746
this.maxSeqNo = maxSeqNo;
4847
this.localCheckpoint = localCheckpoint;

core/src/main/java/org/elasticsearch/index/shard/IndexShard.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ private void verifyRelocatingState() {
609609
}
610610
}
611611

612+
@Override
612613
public IndexShardState state() {
613614
return state;
614615
}
@@ -1346,6 +1347,7 @@ public RecoveryStats recoveryStats() {
13461347
* Returns the current {@link RecoveryState} if this shard is recovering or has been recovering.
13471348
* Returns null if the recovery has not yet started or shard was not recovered (created via an API).
13481349
*/
1350+
@Override
13491351
public RecoveryState recoveryState() {
13501352
return this.recoveryState;
13511353
}
@@ -1757,7 +1759,7 @@ public void updateGlobalCheckpointOnReplica(final long globalCheckpoint, final S
17571759
* case that the global checkpoint update from the primary is ahead of the local checkpoint on this shard. In this case, we
17581760
* ignore the global checkpoint update. This can happen if we are in the translog stage of recovery. Prior to this, the engine
17591761
* is not opened and this shard will not receive global checkpoint updates, and after this the shard will be contributing to
1760-
* calculations of the the global checkpoint. However, we can not assert that we are in the translog stage of recovery here as
1762+
* calculations of the global checkpoint. However, we can not assert that we are in the translog stage of recovery here as
17611763
* while the global checkpoint update may have emanated from the primary when we were in that state, we could subsequently move
17621764
* to recovery finalization, or even finished recovery before the update arrives here.
17631765
*/

core/src/main/java/org/elasticsearch/index/shard/IndexShardOperationPermits.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private void releaseDelayedOperations() {
183183
* - blockOperations can be called on a recovery thread which can be expected to be interrupted when recovery is cancelled;
184184
* interruptions are bad here as permit acquisition will throw an interrupted exception which will be swallowed by
185185
* the threaded action listener if the queue of the thread pool on which it submits is full
186-
* - if a permit is acquired and the queue of the thread pool which the the threaded action listener uses is full, the
186+
* - if a permit is acquired and the queue of the thread pool which the threaded action listener uses is full, the
187187
* onFailure handler is executed on the calling thread; this should not be the recovery thread as it would delay the
188188
* recovery
189189
*/

0 commit comments

Comments
 (0)