use of alluxio.network.protocol.RPCResponse 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