this test checks that chooserandom works for an excluded node . concode_field_sep Log LOG concode_elem_sep DatanodeDescriptor dataNodes[] concode_elem_sep NetworkTopology cluster concode_field_sep void testContains concode_elem_sep void testRacks concode_elem_sep void testCreateInvalidTopology concode_elem_sep void testGetDistance concode_elem_sep void testSortByDistance concode_elem_sep void testRemove concode_elem_sep void testInvalidNetworkTopologiesNotCachedInHdfs concode_elem_sep void setupDatanodes concode_elem_sep void testNumOfChildren concode_elem_sep Map<Node,Integer> pickNodesAtRandom concode_elem_sep void testChooseRandomExcludedRack
void function ( ) { String loc0 = "srini_string" + NodeBase . getPath ( dataNodes [ 0 ] ) ; Map < Node , Integer > loc1 = pickNodesAtRandom ( 100 , loc0 ) ; for ( Node loc2 : dataNodes ) { assertTrue ( loc1 . get ( loc2 ) > 0 || loc2 == dataNodes [ 0 ] ) ; } }