hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1181471 - /hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/client/MultiPut.java
Date Tue, 11 Oct 2011 02:11:34 GMT
Author: nspiegelberg
Date: Tue Oct 11 02:11:34 2011
New Revision: 1181471

URL: http://svn.apache.org/viewvc?rev=1181471&view=rev
Log:
truncate slow query response output sooner

Modified:
    hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/client/MultiPut.java

Modified: hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/client/MultiPut.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/client/MultiPut.java?rev=1181471&r1=1181470&r2=1181471&view=diff
==============================================================================
--- hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/client/MultiPut.java (original)
+++ hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/client/MultiPut.java Tue Oct
11 02:11:34 2011
@@ -88,8 +88,8 @@ public class MultiPut implements Writabl
     for (List<Put> items : puts.values()) {
       sb.append("#puts:" + items.size() + " <");
       for (Put p : items) {
-        sb.append(p.toStringMax(4096));
-        if (sb.length() > 4096 * 2) {
+        sb.append(p.toStringMax(512));
+        if (sb.length() > 512 * 2) {
           sb.append("....<output truncated>...");
           return sb.toString();
         }



Mime
View raw message