Skip to content

Commit 6e27c47

Browse files
Correction of a typo (#15220)
Signed-off-by: 10000-ki <10000ki6472@gmail.com> (cherry picked from commit ea1ab7c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 2e6c5de commit 6e27c47

12 files changed

Lines changed: 14 additions & 14 deletions

File tree

libs/core/src/main/java/org/opensearch/core/xcontent/AbstractXContentParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ private static void skipToListStart(XContentParser parser) throws IOException {
375375
}
376376
}
377377

378-
// read a list without bounds checks, assuming the the current parser is always on an array start
378+
// read a list without bounds checks, assuming the current parser is always on an array start
379379
private static List<Object> readListUnsafe(XContentParser parser, Supplier<Map<String, Object>> mapFactory) throws IOException {
380380
assert parser.currentToken() == Token.START_ARRAY;
381381
ArrayList<Object> list = new ArrayList<>();

qa/os/src/test/java/org/opensearch/packaging/util/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public static String escapePath(Path path) {
380380
}
381381

382382
/**
383-
* Recursively copy the the source directory to the target directory, preserving permissions.
383+
* Recursively copy the source directory to the target directory, preserving permissions.
384384
*/
385385
public static void copyDirectory(Path source, Path target) throws IOException {
386386
Files.walkFileTree(source, new SimpleFileVisitor<Path>() {

qa/smoke-test-http/src/test/java/org/opensearch/http/DanglingIndicesRestIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public void testDanglingIndicesCanBeImported() throws Exception {
152152
* 1, then create two indices and delete them both while one node in
153153
* the cluster is stopped. The deletion of the second pushes the deletion
154154
* of the first out of the graveyard. When the stopped node is resumed,
155-
* only the second index will be found into the graveyard and the the
156-
* other will be considered dangling, and can therefore be listed and
155+
* only the second index will be found into the graveyard and the other
156+
* will be considered dangling, and can therefore be listed and
157157
* deleted through the API
158158
*/
159159
public void testDanglingIndicesCanBeDeleted() throws Exception {

server/src/internalClusterTest/java/org/opensearch/indices/recovery/DanglingIndicesIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ public void testMustAcceptDataLossToImportDanglingIndex() throws Exception {
298298
* 1, then create two indices and delete them both while one node in
299299
* the cluster is stopped. The deletion of the second pushes the deletion
300300
* of the first out of the graveyard. When the stopped node is resumed,
301-
* only the second index will be found into the graveyard and the the
302-
* other will be considered dangling, and can therefore be listed and
301+
* only the second index will be found into the graveyard and the other
302+
* will be considered dangling, and can therefore be listed and
303303
* deleted through the API
304304
*/
305305
public void testDanglingIndexCanBeDeleted() throws Exception {

server/src/main/java/org/opensearch/http/HttpChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ default void handleException(Exception ex) {}
7777

7878
/**
7979
* Returns the contextual property associated with this specific HTTP channel (the
80-
* implementation of how such properties are managed depends on the the particular
80+
* implementation of how such properties are managed depends on the particular
8181
* transport engine).
8282
*
8383
* @param name the name of the property

server/src/main/java/org/opensearch/indices/recovery/RecoverySourceHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void sendFiles(Store store, StoreFileMetadata[] files, IntSupplier translogOps,
541541

542542
void createRetentionLease(final long startingSeqNo, ActionListener<RetentionLease> listener) {
543543
RunUnderPrimaryPermit.run(() -> {
544-
// Clone the peer recovery retention lease belonging to the source shard. We are retaining history between the the local
544+
// Clone the peer recovery retention lease belonging to the source shard. We are retaining history between the local
545545
// checkpoint of the safe commit we're creating and this lease's retained seqno with the retention lock, and by cloning an
546546
// existing lease we (approximately) know that all our peers are also retaining history as requested by the cloned lease. If
547547
// the recovery now fails before copying enough history over then a subsequent attempt will find this lease, determine it is

server/src/main/java/org/opensearch/repositories/blobstore/BlobStoreRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public abstract class BlobStoreRepository extends AbstractLifecycleComponent imp
401401
/**
402402
* Flag that is set to {@code true} if this instance is started with {@link #metadata} that has a higher value for
403403
* {@link RepositoryMetadata#pendingGeneration()} than for {@link RepositoryMetadata#generation()} indicating a full cluster restart
404-
* potentially accounting for the the last {@code index-N} write in the cluster state.
404+
* potentially accounting for the last {@code index-N} write in the cluster state.
405405
* Note: While it is true that this value could also be set to {@code true} for an instance on a node that is just joining the cluster
406406
* during a new {@code index-N} write, this does not present a problem. The node will still load the correct {@link RepositoryData} in
407407
* all cases and simply do a redundant listing of the repository contents if it tries to load {@link RepositoryData} and falls back

server/src/main/java/org/opensearch/snapshots/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
* snapshots, we load the {@link org.opensearch.snapshots.SnapshotInfo} for the source snapshot and check for shard snapshot
132132
* failures of the relevant indices.</li>
133133
* <li>Once all shard counts are known and the health of all source indices data has been verified, we populate the
134-
* {@code SnapshotsInProgress.Entry#clones} map for the clone operation with the the relevant shard clone tasks.</li>
134+
* {@code SnapshotsInProgress.Entry#clones} map for the clone operation with the relevant shard clone tasks.</li>
135135
* <li>After the clone tasks have been added to the {@code SnapshotsInProgress.Entry}, cluster-manager executes them on its snapshot thread-pool
136136
* by invoking {@link org.opensearch.repositories.Repository#cloneShardSnapshot} for each shard that is to be cloned. Each completed
137137
* shard snapshot triggers a call to the {@link org.opensearch.snapshots.SnapshotsService#SHARD_STATE_EXECUTOR} which updates the

server/src/main/java/org/opensearch/transport/TcpChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public interface TcpChannel extends CloseableChannel {
101101

102102
/**
103103
* Returns the contextual property associated with this specific TCP channel (the
104-
* implementation of how such properties are managed depends on the the particular
104+
* implementation of how such properties are managed depends on the particular
105105
* transport engine).
106106
*
107107
* @param name the name of the property

server/src/test/java/org/opensearch/action/admin/cluster/node/info/NodeInfoTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
public class NodeInfoTests extends OpenSearchTestCase {
5353

5454
/**
55-
* Check that the the {@link NodeInfo#getInfo(Class)} method returns null
55+
* Check that the {@link NodeInfo#getInfo(Class)} method returns null
5656
* for absent info objects, and returns the right thing for present info
5757
* objects.
5858
*/

0 commit comments

Comments
 (0)