HBASE-1768 REST server has upper limit of 5k PUT; second fix
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@805537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
936d360e45
commit
08c60dc517
|
@ -374,14 +374,13 @@ public class Dispatcher extends javax.servlet.http.HttpServlet {
|
|||
return new byte[0];
|
||||
}
|
||||
}
|
||||
char[] c;// 40 characters * sizeof(UTF16)
|
||||
while (r.ready()) {
|
||||
char [] c;// 40 characters * sizeof(UTF16)
|
||||
while (true) {
|
||||
c = new char[bufferLength];
|
||||
int n = r.read(c, 0, bufferLength);
|
||||
resultant += new String(c);
|
||||
if (n != bufferLength) {
|
||||
break;
|
||||
} else if (resultant.length() > maxLength) {
|
||||
if (n == -1) break;
|
||||
resultant += new String(c, 0, n);
|
||||
if (resultant.length() > maxLength) {
|
||||
resultant = resultant.substring(0, maxLength);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue