You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2009/08/14 21:42:19 UTC

svn commit: r804341 - in /hadoop/hbase/branches/0.20: CHANGES.txt src/java/org/apache/hadoop/hbase/rest/Dispatcher.java

Author: stack
Date: Fri Aug 14 19:42:19 2009
New Revision: 804341

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

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

Modified: hadoop/hbase/branches/0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=804341&r1=804340&r2=804341&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.20/CHANGES.txt Fri Aug 14 19:42:19 2009
@@ -316,6 +316,7 @@
    HBASE-1737  Regions unbalanced when adding new node
    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/branches/0.20/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java?rev=804341&r1=804340&r2=804341&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java (original)
+++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/rest/Dispatcher.java Fri Aug 14 19:42:19 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