From 0a736fbc177df0c9d49922ab389c32fda4a06740 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Mon, 21 Jul 2014 13:38:06 +0000 Subject: [PATCH] HDFS-6679. Bump NameNodeLayoutVersion and update editsStored test files. Contributed by vinayakumarb git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-6584@1612266 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 + .../namenode/NameNodeLayoutVersion.java | 3 +- .../src/test/resources/editsStored | Bin 4970 -> 4918 bytes .../src/test/resources/editsStored.xml | 212 +++++++++--------- 4 files changed, 111 insertions(+), 107 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index e6eac4ce46c..12f10c549e1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -14,6 +14,9 @@ HDFS-6584: Archival Storage HDFS-6710. Change BlockPlacementPolicy to consider block storage policy in replica deletion. (szetszwo) + HDFS-6679. Bump NameNodeLayoutVersion and update editsStored test files. + (vinayakumarb via szetszwo) + Trunk (Unreleased) INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeLayoutVersion.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeLayoutVersion.java index 6ae2806d8f1..ce6c9dc4667 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeLayoutVersion.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeLayoutVersion.java @@ -65,7 +65,8 @@ public class NameNodeLayoutVersion { public static enum Feature implements LayoutFeature { ROLLING_UPGRADE(-55, -53, "Support rolling upgrade", false), EDITLOG_LENGTH(-56, "Add length field to every edit log op"), - XATTRS(-57, "Extended attributes"); + XATTRS(-57, "Extended attributes"), + BLOCK_STORAGE_POLICY(-58, "Block Storage policy"); private final FeatureInfo info; diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored index a3561cda528a9bae7b6fb6e16180ca9a9d344d7a..227f363e2c7d575df6bb27db53818b5af6641ac2 100644 GIT binary patch delta 1729 zcmaE*woQ%Y|NsBTCbFnnx)-Tk^5a;wyQl8i#LB)cijVJ#GB7a60x<|MGj%b7R0MNe z`Cz-(Mn}ie=av5~kj(6fNy;+r9-n_GFfcGeX^=P*h+tqUOPaipPsh~Mz}VQ-#K6cf z-jIRQ(8yfR00<2k1Wr5_ymYF{Y3-b=yCr433mk!3*d9##B*_V61WaaQRMrI<>5Ic? zuHw>y)S~pF{L%u(C0u5klqW|qYA1kngkm+CLsRk7SCGTZffxkX8MyV+GILVnbMwnm zQ=qowVb#mo`J}di8K}p5@>51tHIOA$Pz_Z;Um`o@E!b?c9Mdh6O_-)iVDTeg)oJI; zlOHmfW0U0Xjhv)8*??I`7K=`SRlSqIK|6bLB{L-8_duNiq(Ok}fEP^c+|~*Scv%)m zz#qV2G_r4(us@l>J-LwOmnJAo9s*s!$bdBjC4RRvZvnY*(c~$tTHrME0%|^x1_2bO z8<3D@q~_duT(jAVEs>FN{^U9ATD(A~{1Si}KADkMc=9uLM@h7JTEhPBu`bBoxszQu zR6!2<1x)jxL=2)qfNTe;FJ*kYcb!22iRmovbZj0F0+E%x*9j zOwJHcsYmn25^=_?P8Fc~V36y8z=?siAU{9H5Xh7Vm3It$jw!jBd6~r}MTsT(Ma7J7 z>w#q~2*`uU|JXyqU7|8;l`7B>Q;?xR;0!T$GPfWH`uL8woLa0xkm)*7D&ktl#sZ{_*NV! N$ODz|+Za&U3;@%+G4}uf delta 1705 zcmdm{_DYTA|NsBTC$gwox}9lqzsMo>+57jhYSo}k)7KvoWnf^C1!53jX6j-DskqK@ z`G83b+A<)zu zemtgg6_*yI7Nr;EmliNCX)^rqW^xdtwme9e7*^xCvbds)C(mJ&RRO6{!m5UQ&w2hn zW}p-NC*NgM)dDFrfjA+@1nMbdYu^G@GBDiVY0y7egK4S+7C#BNw;w+=`6`n+Hc7z^ zqGA@4RhV^TvFH?PKHwDtGJgK#TxM`s=d6c11xSMcC1EYx8&mTd64tydkg(o~$8=;* zFJa$tOJi~@%P&n}@Z@p>9m2?fH87=K-1vJG~3-pJZ%HAdg0{lTo5-EK=lA= z5TL|OrmKIiW!oIW9mL2v4`LdF`D6tyabZJHyn#Y151Ov>3MSv=36a1SYGsz;tdkvi zJwaI~Zx`0scDQ2yBvKG)L($}Qyygxdg}{;mZ2mDUM*hcYh+}WRs1(SRYbGo58Gxhb zEYuJn4FZ$|h11)oEnbsP@_pcdrL)Ng`E@xfxWeT@S)p?BcYXsOpn^3S zZIZsOuL9KLKegewjNl%f`B}j{EywUo--Y0U7UPGKnYvf;I;Ni^Owp0 z1av?pTGcJAq2>L)caFwnPeEC12Kel)zkX?QouIfImcqq1FLTBwHK6-7ffxkb8CVPQ z^K-Bl%zkqDhwn_jE!d9Do&dH0QQyf`LPppm0~MLx cI~f>!A>mw|U+SMDA`TSfflByo45(}d04v}BuK)l5 diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml index 7e9b8cf5286..0ccec968ae1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml @@ -1,6 +1,6 @@ - -57 + -58 OP_START_LOG_SEGMENT @@ -13,8 +13,8 @@ 2 1 - 1403590428625 - 16f34bfba67b2552 + 1406369452622 + aabb8c7ee691798e @@ -24,8 +24,8 @@ 3 2 - 1403590428631 - dbe6282854469833 + 1406369452627 + d4f03dbd3c2c2c39 @@ -37,18 +37,18 @@ 16386 /file_create 1 - 1402899229669 - 1402899229669 + 1405678254112 + 1405678254112 512 - DFSClient_NONMAPREDUCE_1233039831_1 + DFSClient_NONMAPREDUCE_1503354021_1 127.0.0.1 - andrew + vb supergroup 420 - e03f4a52-3d85-4e05-8942-286185e639bd - 8 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 6 @@ -59,13 +59,13 @@ 0 /file_create 1 - 1402899229711 - 1402899229669 + 1405678254157 + 1405678254112 512 - andrew + vb supergroup 420 @@ -78,9 +78,9 @@ 0 /file_create /file_moved - 1402899229718 - e03f4a52-3d85-4e05-8942-286185e639bd - 10 + 1405678254165 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 8 @@ -89,9 +89,9 @@ 7 0 /file_moved - 1402899229730 - e03f4a52-3d85-4e05-8942-286185e639bd - 11 + 1405678254190 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 9 @@ -101,9 +101,9 @@ 0 16387 /directory_mkdir - 1402899229748 + 1405678254202 - andrew + vb supergroup 493 @@ -136,8 +136,8 @@ 12 /directory_mkdir snapshot1 - e03f4a52-3d85-4e05-8942-286185e639bd - 16 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 14 @@ -147,8 +147,8 @@ /directory_mkdir snapshot1 snapshot2 - e03f4a52-3d85-4e05-8942-286185e639bd - 17 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 15 @@ -157,8 +157,8 @@ 14 /directory_mkdir snapshot2 - e03f4a52-3d85-4e05-8942-286185e639bd - 18 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 16 @@ -169,18 +169,18 @@ 16388 /file_create 1 - 1402899229871 - 1402899229871 + 1405678254268 + 1405678254268 512 - DFSClient_NONMAPREDUCE_1233039831_1 + DFSClient_NONMAPREDUCE_1503354021_1 127.0.0.1 - andrew + vb supergroup 420 - e03f4a52-3d85-4e05-8942-286185e639bd - 19 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 17 @@ -191,13 +191,13 @@ 0 /file_create 1 - 1402899229881 - 1402899229871 + 1405678254272 + 1405678254268 512 - andrew + vb supergroup 420 @@ -253,10 +253,10 @@ 0 /file_create /file_moved - 1402899229963 + 1405678254305 NONE - e03f4a52-3d85-4e05-8942-286185e639bd - 26 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 24 @@ -267,18 +267,18 @@ 16389 /file_concat_target 1 - 1402899229981 - 1402899229981 + 1405678254312 + 1405678254312 512 - DFSClient_NONMAPREDUCE_1233039831_1 + DFSClient_NONMAPREDUCE_1503354021_1 127.0.0.1 - andrew + vb supergroup 420 - e03f4a52-3d85-4e05-8942-286185e639bd - 28 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 26 @@ -383,8 +383,8 @@ 0 /file_concat_target 1 - 1402899230219 - 1402899229981 + 1405678254608 + 1405678254312 512 @@ -404,7 +404,7 @@ 1003 - andrew + vb supergroup 420 @@ -418,18 +418,18 @@ 16390 /file_concat_0 1 - 1402899230235 - 1402899230235 + 1405678254613 + 1405678254613 512 - DFSClient_NONMAPREDUCE_1233039831_1 + DFSClient_NONMAPREDUCE_1503354021_1 127.0.0.1 - andrew + vb supergroup 420 - e03f4a52-3d85-4e05-8942-286185e639bd - 41 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 39 @@ -534,8 +534,8 @@ 0 /file_concat_0 1 - 1402899230307 - 1402899230235 + 1405678254721 + 1405678254613 512 @@ -555,7 +555,7 @@ 1006 - andrew + vb supergroup 420 @@ -569,18 +569,18 @@ 16391 /file_concat_1 1 - 1402899230320 - 1402899230320 + 1405678254727 + 1405678254727 512 - DFSClient_NONMAPREDUCE_1233039831_1 + DFSClient_NONMAPREDUCE_1503354021_1 127.0.0.1 - andrew + vb supergroup 420 - e03f4a52-3d85-4e05-8942-286185e639bd - 53 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 51 @@ -685,8 +685,8 @@ 0 /file_concat_1 1 - 1402899230383 - 1402899230320 + 1405678254810 + 1405678254727 512 @@ -706,7 +706,7 @@ 1009 - andrew + vb supergroup 420 @@ -718,13 +718,13 @@ 56 0 /file_concat_target - 1402899230394 + 1405678254815 /file_concat_0 /file_concat_1 - e03f4a52-3d85-4e05-8942-286185e639bd - 64 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 62 @@ -735,15 +735,15 @@ 16392 /file_symlink /file_concat_target - 1402899230406 - 1402899230406 + 1405678254823 + 1405678254823 - andrew + vb supergroup 511 - e03f4a52-3d85-4e05-8942-286185e639bd - 65 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 63 @@ -754,18 +754,18 @@ 16393 /hard-lease-recovery-test 1 - 1402899230413 - 1402899230413 + 1405678254828 + 1405678254828 512 - DFSClient_NONMAPREDUCE_1233039831_1 + DFSClient_NONMAPREDUCE_1503354021_1 127.0.0.1 - andrew + vb supergroup 420 - e03f4a52-3d85-4e05-8942-286185e639bd - 66 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 64 @@ -821,7 +821,7 @@ OP_REASSIGN_LEASE 64 - DFSClient_NONMAPREDUCE_1233039831_1 + DFSClient_NONMAPREDUCE_1503354021_1 /hard-lease-recovery-test HDFS_NameNode @@ -834,8 +834,8 @@ 0 /hard-lease-recovery-test 1 - 1402899232526 - 1402899230413 + 1405678256966 + 1405678254828 512 @@ -845,7 +845,7 @@ 1011 - andrew + vb supergroup 420 @@ -856,13 +856,13 @@ 66 pool1 - andrew - andrew + vb + Administrators 493 9223372036854775807 2305843009213693951 - e03f4a52-3d85-4e05-8942-286185e639bd - 73 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 71 @@ -871,8 +871,8 @@ 67 pool1 99 - e03f4a52-3d85-4e05-8942-286185e639bd - 74 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 72 @@ -883,9 +883,9 @@ /path 1 pool1 - 2305844412112927450 - e03f4a52-3d85-4e05-8942-286185e639bd - 75 + 2305844414891951848 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 73 @@ -894,8 +894,8 @@ 69 1 2 - e03f4a52-3d85-4e05-8942-286185e639bd - 76 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 74 @@ -903,8 +903,8 @@ 70 1 - e03f4a52-3d85-4e05-8942-286185e639bd - 77 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 75 @@ -912,8 +912,8 @@ 71 pool1 - e03f4a52-3d85-4e05-8942-286185e639bd - 78 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 76 @@ -959,8 +959,8 @@ a1 0x313233 - e03f4a52-3d85-4e05-8942-286185e639bd - 80 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 78 @@ -973,8 +973,8 @@ a2 0x373839 - e03f4a52-3d85-4e05-8942-286185e639bd - 81 + c8e311d2-ca7a-42ad-9cd5-bb191c4b7041 + 79 @@ -992,14 +992,14 @@ OP_ROLLING_UPGRADE_START 76 - 1402899233646 + 1405678257978 OP_ROLLING_UPGRADE_FINALIZE 77 - 1402899233647 + 1405678257978