Skip to content

Commit

Permalink
HBASE-22715 All scan requests should be handled by scan handler threa…
Browse files Browse the repository at this point in the history
…ds in RWQueueRpcExecutor (#393)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
  • Loading branch information
Jeongdae Kim authored and apurtell committed Jul 24, 2019
1 parent 3e7c945 commit c3a8f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,7 @@ private boolean isWriteRequest(final RequestHeader header, final Message param)
}

private boolean isScanRequest(final RequestHeader header, final Message param) {
if (param instanceof ScanRequest) {
// The first scan request will be executed as a "short read"
ScanRequest request = (ScanRequest)param;
return request.hasScannerId();
}
return false;
return param instanceof ScanRequest;
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public void testScanQueues() throws Exception {

CallRunner scanCallTask = mock(CallRunner.class);
RpcServer.Call scanCall = mock(RpcServer.Call.class);
scanCall.param = ScanRequest.newBuilder().setScannerId(1).build();
scanCall.param = ScanRequest.newBuilder().build();
RequestHeader scanHead = RequestHeader.newBuilder().setMethodName("scan").build();
when(scanCallTask.getCall()).thenReturn(scanCall);
when(scanCall.getHeader()).thenReturn(scanHead);
Expand Down

0 comments on commit c3a8f6c

Please sign in to comment.