HBASE-1768 REST server has upper limit of 5k PUT

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@804340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-08-14 19:40:46 +00:00
parent 53b0527a5d
commit 58e3ad8b6c
2 changed files with 6 additions and 2 deletions

View File

@ -332,6 +332,7 @@ Release 0.20.0 - Unreleased
what N was what N was
HBASE-1745 [tools] Tool to kick region out of inTransistion HBASE-1745 [tools] Tool to kick region out of inTransistion
HBASE-1757 REST server runs out of fds HBASE-1757 REST server runs out of fds
HBASE-1768 REST server has upper limit of 5k PUT
IMPROVEMENTS IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -81,6 +81,7 @@ public class Dispatcher extends javax.servlet.http.HttpServlet {
protected RowController rowController; protected RowController rowController;
protected ScannerController scannercontroller; protected ScannerController scannercontroller;
protected TimestampController tsController; protected TimestampController tsController;
private HBaseConfiguration conf = null;
public enum ContentType { public enum ContentType {
XML("text/xml"), JSON("application/json"), PLAIN("text/plain"), MIME( XML("text/xml"), JSON("application/json"), PLAIN("text/plain"), MIME(
@ -135,7 +136,7 @@ public class Dispatcher extends javax.servlet.http.HttpServlet {
public void init() throws ServletException { public void init() throws ServletException {
super.init(); super.init();
HBaseConfiguration conf = new HBaseConfiguration(); this.conf = new HBaseConfiguration();
HBaseAdmin admin = null; HBaseAdmin admin = null;
try { try {
@ -360,7 +361,9 @@ public class Dispatcher extends javax.servlet.http.HttpServlet {
String resultant = ""; String resultant = "";
BufferedReader r = request.getReader(); 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; int bufferLength = 640;
// TODO make s maxLength and c size values in configuration // TODO make s maxLength and c size values in configuration