From 15e3873dc3d46016344887570e5d4aa8d20ca264 Mon Sep 17 00:00:00 2001 From: Daniel Templeton Date: Wed, 29 Mar 2017 10:56:36 -0700 Subject: [PATCH] HDFS-11571. Typo in DataStorage exception message (Contributed by Anna Budai via Daniel Templeton) --- .../org/apache/hadoop/hdfs/server/datanode/DataStorage.java | 2 +- .../org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataStorage.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataStorage.java index 57ef1bcec9..835643bd9e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataStorage.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataStorage.java @@ -543,7 +543,7 @@ synchronized void removeVolumes( void recoverTransitionRead(DataNode datanode, NamespaceInfo nsInfo, Collection dataDirs, StartupOption startOpt) throws IOException { if (addStorageLocations(datanode, nsInfo, dataDirs, startOpt).isEmpty()) { - throw new IOException("All specified directories are failed to load."); + throw new IOException("All specified directories have failed to load."); } } diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java index c56a01ca58..6c49451967 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataStorage.java @@ -200,7 +200,7 @@ public void testRecoverTransitionReadFailure() throws IOException { fail("An IOException should throw: all StorageLocations are NON_EXISTENT"); } catch (IOException e) { GenericTestUtils.assertExceptionContains( - "All specified directories are failed to load.", e); + "All specified directories have failed to load.", e); } assertEquals(0, storage.getNumStorageDirs()); }