137138139140141142143144145
} @Test public void testConvertDatanodeID() { DatanodeID dn = DFSTestUtil.getLocalDatanodeID(); DatanodeIDProto dnProto = PBHelper.convert(dn); DatanodeID dn2 = PBHelper.convert(dnProto); compare(dn, dn2); }
130131132133134135136137138
} @Test public void testConvertDatanodeID() { DatanodeID dn = new DatanodeID("node", "node", "sid", 1, 2, 3); DatanodeIDProto dnProto = PBHelper.convert(dn); DatanodeID dn2 = PBHelper.convert(dnProto); compare(dn, dn2); }
135136137138139140141142143
142143144145146147148149150
139140141142143144145146147