Skip to content

Commit a4ec9c6

Browse files
authored
Correct some typos/mistakes in comments/docs (#88446)
1 parent 9ebbe1c commit a4ec9c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

server/src/main/java/org/elasticsearch/action/support/ListenableActionFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import java.util.List;
1515

1616
/**
17-
* A {@code Future} and {@link ActionListener} against which which other {@link ActionListener}s can be registered later, to support
17+
* A {@code Future} and {@link ActionListener} against which other {@link ActionListener}s can be registered later, to support
1818
* fanning-out a result to a dynamic collection of listeners.
1919
*/
2020
public class ListenableActionFuture<T> extends AdapterActionFuture<T, T> {

server/src/main/java/org/elasticsearch/snapshots/RestoreService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ public ClusterState execute(ClusterState currentState) {
13071307
// that will be opened by the restore
13081308
if (currentIndexMetadata == null) {
13091309
// Index doesn't exist - create it and start recovery
1310-
// Make sure that the index we are about to create has a validate name
1310+
// Make sure that the index we are about to create has a valid name
13111311
ensureValidIndexName(currentState, snapshotIndexMetadata, renamedIndexName);
13121312
shardLimitValidator.validateShardLimit(snapshotIndexMetadata.getSettings(), currentState);
13131313

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
* {@code UpdateIndexShardSnapshotStatusRequest}.</li>
4444
*
4545
* <li>If as a result of the received status update requests, all shards in the cluster state are in a completed state, i.e are marked as
46-
* either {@code SUCCESS}, {@code FAILED} or {@code MISSING}, the {@code SnapshotShardsService} will update the state of the {@code Entry}
46+
* either {@code SUCCESS}, {@code FAILED} or {@code MISSING}, the {@code SnapshotsService} will update the state of the {@code Entry}
4747
* itself and mark it as {@code SUCCESS}. At the same time {@link org.elasticsearch.snapshots.SnapshotsService#endSnapshot} is executed,
48-
* writing the metadata necessary to finalize the snapshot in the repository to the repository.</li>
48+
* writing to the repository the metadata necessary to finalize the snapshot in the repository.</li>
4949
*
5050
* <li>After writing the final metadata to the repository, a cluster state update to remove the snapshot from the cluster state is
5151
* submitted and the removal of the snapshot's {@code SnapshotsInProgress.Entry} from the cluster state completes the snapshot process.

0 commit comments

Comments
 (0)