|
@@ -36,6 +36,7 @@ import org.apache.hadoop.hdfs.DFSTestUtil;
|
|
import org.apache.hadoop.hdfs.DistributedFileSystem;
|
|
import org.apache.hadoop.hdfs.DistributedFileSystem;
|
|
import org.apache.hadoop.hdfs.HdfsConfiguration;
|
|
import org.apache.hadoop.hdfs.HdfsConfiguration;
|
|
import org.apache.hadoop.hdfs.MiniDFSCluster;
|
|
import org.apache.hadoop.hdfs.MiniDFSCluster;
|
|
|
|
+import org.apache.hadoop.hdfs.protocol.XAttrNotFoundException;
|
|
import org.apache.hadoop.io.IOUtils;
|
|
import org.apache.hadoop.io.IOUtils;
|
|
import org.apache.hadoop.security.AccessControlException;
|
|
import org.apache.hadoop.security.AccessControlException;
|
|
import org.apache.hadoop.security.UserGroupInformation;
|
|
import org.apache.hadoop.security.UserGroupInformation;
|
|
@@ -408,7 +409,7 @@ public class FSXAttrBaseTest {
|
|
Assert.fail("expected IOException");
|
|
Assert.fail("expected IOException");
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
GenericTestUtils.assertExceptionContains(
|
|
GenericTestUtils.assertExceptionContains(
|
|
- "At least one of the attributes provided was not found.", e);
|
|
|
|
|
|
+ XAttrNotFoundException.DEFAULT_EXCEPTION_MSG, e);
|
|
}
|
|
}
|
|
|
|
|
|
/* Throw an exception if an xattr that was requested does not exist. */
|
|
/* Throw an exception if an xattr that was requested does not exist. */
|
|
@@ -422,7 +423,7 @@ public class FSXAttrBaseTest {
|
|
Assert.fail("expected IOException");
|
|
Assert.fail("expected IOException");
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
GenericTestUtils.assertExceptionContains(
|
|
GenericTestUtils.assertExceptionContains(
|
|
- "At least one of the attributes provided was not found.", e);
|
|
|
|
|
|
+ XAttrNotFoundException.DEFAULT_EXCEPTION_MSG, e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|