HDFS-7997. The first non-existing xattr should also throw IOException. (zhouyingchao via yliu)
This commit is contained in:
parent
b5a22e9838
commit
3df61f303a
@ -392,6 +392,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
DatanodeDescriptor#updateHeartbeatState() (Brahma Reddy Battula via Colin
|
DatanodeDescriptor#updateHeartbeatState() (Brahma Reddy Battula via Colin
|
||||||
P. McCabe)
|
P. McCabe)
|
||||||
|
|
||||||
|
HDFS-7997. The first non-existing xattr should also throw IOException.
|
||||||
|
(zhouyingchao via yliu)
|
||||||
|
|
||||||
Release 2.7.0 - UNRELEASED
|
Release 2.7.0 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -108,7 +108,8 @@ static List<XAttr> getXAttrs(FSDirectory fsd, final String srcArg,
|
|||||||
return filteredAll;
|
return filteredAll;
|
||||||
}
|
}
|
||||||
if (filteredAll == null || filteredAll.isEmpty()) {
|
if (filteredAll == null || filteredAll.isEmpty()) {
|
||||||
return null;
|
throw new IOException(
|
||||||
|
"At least one of the attributes provided was not found.");
|
||||||
}
|
}
|
||||||
List<XAttr> toGet = Lists.newArrayListWithCapacity(xAttrs.size());
|
List<XAttr> toGet = Lists.newArrayListWithCapacity(xAttrs.size());
|
||||||
for (XAttr xAttr : xAttrs) {
|
for (XAttr xAttr : xAttrs) {
|
||||||
|
@ -420,8 +420,8 @@
|
|||||||
</cleanup-commands>
|
</cleanup-commands>
|
||||||
<comparators>
|
<comparators>
|
||||||
<comparator>
|
<comparator>
|
||||||
<type>ExactComparator</type>
|
<type>SubstringComparator</type>
|
||||||
<expected-output># file: /file1#LF#</expected-output>
|
<expected-output>At least one of the attributes provided was not found</expected-output>
|
||||||
</comparator>
|
</comparator>
|
||||||
</comparators>
|
</comparators>
|
||||||
</test>
|
</test>
|
||||||
|
Loading…
Reference in New Issue
Block a user