HDFS-6033. PBImageXmlWriter incorrectly handles processing cache directives. Contributed by Aaron T. Myers.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1573050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2014-02-28 19:45:37 +00:00
parent 3965d65200
commit 8e809b8c81
2 changed files with 4 additions and 1 deletions

View File

@ -505,6 +505,9 @@ Release 2.4.0 - UNRELEASED
HDFS-5339. WebHDFS URI does not accept logical nameservices when security is HDFS-5339. WebHDFS URI does not accept logical nameservices when security is
enabled. (Haohui Mai via jing9) enabled. (Haohui Mai via jing9)
HDFS-6033. PBImageXmlWriter incorrectly handles processing cache
directives. (atm)
BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS
HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9) HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9)

View File

@ -157,7 +157,7 @@ public final class PBImageXmlWriter {
.o("maxRelativeExpiry", p.getMaxRelativeExpiry()); .o("maxRelativeExpiry", p.getMaxRelativeExpiry());
out.print("</pool>\n"); out.print("</pool>\n");
} }
for (int i = 0; i < s.getNumPools(); ++i) { for (int i = 0; i < s.getNumDirectives(); ++i) {
CacheDirectiveInfoProto p = CacheDirectiveInfoProto CacheDirectiveInfoProto p = CacheDirectiveInfoProto
.parseDelimitedFrom(is); .parseDelimitedFrom(is);
out.print("<directive>"); out.print("<directive>");