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:
mbertozzi 2014-04-15 17:35:51 +00:00
parent d16b201640
commit 1a89a3fede
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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