verify that read_only_shared replicas are not counted towards the overall replication count , but are included as replica locations returned to clients for reads . concode_field_sep Path PATH concode_elem_sep MiniDFSCluster cluster concode_elem_sep int RO_NODE_INDEX concode_elem_sep long seed concode_elem_sep int RETRIES concode_elem_sep short NUM_DATANODES concode_elem_sep ExtendedBlock extendedBlock concode_elem_sep Configuration conf concode_elem_sep BlockManager blockManager concode_elem_sep DistributedFileSystem fs concode_elem_sep DatanodeInfo readOnlyDataNode concode_elem_sep int BLOCK_SIZE concode_elem_sep DatanodeInfo normalDataNode concode_elem_sep DFSClient client concode_elem_sep Block block concode_elem_sep Log LOG concode_elem_sep DatanodeManager datanodeManager concode_field_sep void validateStorageState concode_elem_sep void waitForLocations concode_elem_sep LocatedBlock getLocatedBlock concode_elem_sep void setup concode_elem_sep void testReadOnlyReplicaCorrupt concode_elem_sep void tearDown concode_elem_sep void validateNumberReplicas concode_elem_sep void testNormalReplicaOffline
void function ( ) { validateNumberReplicas ( 1 ) ; fs . setReplication ( PATH , ( short ) 2 ) ; waitForLocations ( 3 ) ; validateNumberReplicas ( 2 ) ; }