hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r804340 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/rest/Dispatcher.java
Date Fri, 14 Aug 2009 19:40:47 GMT
Author: stack
Date: Fri Aug 14 19:40:46 2009
New Revision: 804340

URL: http://svn.apache.org/viewvc?rev=804340&view=rev
Log:
HBASE-1768 REST server has upper limit of 5k PUT

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=804340&r1=804339&r2=804340&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Fri Aug 14 19:40:46 2009
@@ -332,6 +332,7 @@
                what N was
    HBASE-1745  [tools] Tool to kick region out of inTransistion
    HBASE-1757  REST server runs out of fds
+   HBASE-1768  REST server has upper limit of 5k PUT
 
   IMPROVEMENTS
    HBASE-1089  Add count of regions on filesystem to master UI; add percentage

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java?rev=804340&r1=804339&r2=804340&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java Fri Aug 14 19:40:46
2009
@@ -81,6 +81,7 @@
   protected RowController rowController;
   protected ScannerController scannercontroller;
   protected TimestampController tsController;
+  private HBaseConfiguration conf = null;
 
   public enum ContentType {
     XML("text/xml"), JSON("application/json"), PLAIN("text/plain"), MIME(
@@ -135,7 +136,7 @@
   public void init() throws ServletException {
     super.init();
 
-    HBaseConfiguration conf = new HBaseConfiguration();
+    this.conf = new HBaseConfiguration();
     HBaseAdmin admin = null;
 
     try {
@@ -360,7 +361,9 @@
       String resultant = "";
       BufferedReader r = request.getReader();
 
-      int maxLength = 5000; // tie to conf
+      int defaultmaxlength = 10 * 1024 * 1024;
+      int maxLength = this.conf == null?
+        defaultmaxlength: this.conf.getInt("hbase.rest.input.limit", defaultmaxlength);
       int bufferLength = 640;
 
       // TODO make s maxLength and c size values in configuration



Mime
View raw message