This is an automated email from the ASF dual-hosted git repository.

bharat pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new f9ee97d  HDFS-14398. Update HAState.java to fix typos. Contributed by 
Nikhil Navadiya.
f9ee97d is described below

commit f9ee97de98e1371a2760286070e339a1fd7c5fde
Author: Bharat Viswanadham <[email protected]>
AuthorDate: Tue Jun 18 21:58:37 2019 -0700

    HDFS-14398. Update HAState.java to fix typos. Contributed by Nikhil 
Navadiya.
---
 .../java/org/apache/hadoop/hdfs/server/namenode/ha/HAState.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/HAState.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/HAState.java
index f569748..6684e8e 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/HAState.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/HAState.java
@@ -109,7 +109,7 @@ abstract public class HAState {
    * that are going on. It can also be used to check any preconditions
    * for the state transition.
    * 
-   * This method should not make any destructuve changes to the state
+   * This method should not make any destructive changes to the state
    * (eg stopping threads) since {@link #prepareToEnterState(HAContext)}
    * may subsequently cancel the state transition.
    * @param context HA context
@@ -134,10 +134,10 @@ abstract public class HAState {
    * @throws ServiceFailedException on failure to transition to new state.
    */
   public void setState(HAContext context, HAState s) throws 
ServiceFailedException {
-    if (this == s) { // Aleady in the new state
+    if (this == s) { // Already in the new state
       return;
     }
-    throw new ServiceFailedException("Transtion from state " + this + " to "
+    throw new ServiceFailedException("Transition from state " + this + " to "
         + s + " is not allowed.");
   }
   


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to