HBASE-10979 Fix AnnotationReadingPriorityFunction 'scan' handling
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1587644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d16b201640
commit
1a89a3fede
|
@ -171,7 +171,7 @@ class AnnotationReadingPriorityFunction implements PriorityFunction {
|
|||
return HConstants.NORMAL_QOS;
|
||||
}
|
||||
|
||||
if (methodName.equals("scan")) { // scanner methods...
|
||||
if (methodName.equalsIgnoreCase("scan")) { // scanner methods...
|
||||
ScanRequest request = (ScanRequest)param;
|
||||
if (!request.hasScannerId()) {
|
||||
return HConstants.NORMAL_QOS;
|
||||
|
|
|
@ -110,7 +110,7 @@ public class TestPriorityRpc {
|
|||
@Test
|
||||
public void testQosFunctionForScanMethod() throws IOException {
|
||||
RequestHeader.Builder headerBuilder = RequestHeader.newBuilder();
|
||||
headerBuilder.setMethodName("scan");
|
||||
headerBuilder.setMethodName("Scan");
|
||||
RequestHeader header = headerBuilder.build();
|
||||
|
||||
//build an empty scan request
|
||||
|
|
Loading…
Reference in New Issue