hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject svn commit: r1587644 - in /hbase/trunk/hbase-server/src: main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java
Date Tue, 15 Apr 2014 17:35:52 GMT
Author: mbertozzi
Date: Tue Apr 15 17:35:51 2014
New Revision: 1587644

URL: http://svn.apache.org/r1587644
Log:
HBASE-10979 Fix AnnotationReadingPriorityFunction 'scan' handling

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java?rev=1587644&r1=1587643&r2=1587644&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AnnotationReadingPriorityFunction.java
Tue Apr 15 17:35:51 2014
@@ -171,7 +171,7 @@ class AnnotationReadingPriorityFunction 
       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;

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java?rev=1587644&r1=1587643&r2=1587644&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java
Tue Apr 15 17:35:51 2014
@@ -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



Mime
View raw message