diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java index 24fa862560a..b7775892530 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java @@ -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; diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java index e3c15d6d695..33044cb552a 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java @@ -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