use of alluxio.network.protocol.RPCBlockReadRequest in project alluxio by Alluxio.
the class NettyDataServerTest method blockWorkerExceptionCausesFailStatusOnRead.
@Test
public void blockWorkerExceptionCausesFailStatusOnRead() throws Exception {
when(mBlockWorker.readBlockRemote(anyLong(), anyLong(), anyLong())).thenThrow(new RuntimeException());
RPCResponse response = request(new RPCBlockReadRequest(1, 2, 3, 4, 0));
// Verify that the write request failed.
assertEquals(RPCResponse.Status.UFS_READ_FAILED, response.getStatus());
}
use of alluxio.network.protocol.RPCBlockReadRequest in project alluxio by Alluxio.
the class NettyDataServerTest method blockWorkerExceptionCausesReadFailedStatus.
@Test
public void blockWorkerExceptionCausesReadFailedStatus() throws Exception {
when(mBlockWorker.readBlockRemote(anyLong(), anyLong(), anyLong())).thenThrow(new RuntimeException());
RPCResponse response = request(new RPCBlockReadRequest(1, 2, 3, 4, 0));
// Verify that the read request failed with UFS_READ_FAILED status.
assertEquals(RPCResponse.Status.UFS_READ_FAILED, response.getStatus());
}
Aggregations