HBASE-914 MSG_REPORT_CLOSE has a byte array for a message

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@703032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-10-09 00:34:07 +00:00
parent 609ff27c83
commit 89fd7417f7
3 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,7 @@ Release 0.19.0 - Unreleased
HBASE-844 Can't pass script to hbase shell
HBASE-837 Add unit tests for ThriftServer.HBaseHandler (Izaak Rubin via Stack)
HBASE-913 Classes using log4j directly
HBASE-914 MSG_REPORT_CLOSE has a byte array for a message
IMPROVEMENTS
HBASE-901 Add a limit to key length, check key and value length on client side

View File

@ -194,7 +194,7 @@ public class HMsg implements Writable {
sb.append(this.info.getRegionNameAsString());
}
if (this.message != null && this.message.length > 0) {
sb.append(": " + this.message);
sb.append(": " + Bytes.toString(this.message));
}
return sb.toString();
}

View File

@ -36,6 +36,7 @@ import org.apache.hadoop.hbase.ipc.HRegionInterface;
import org.apache.hadoop.hbase.regionserver.HLog;
import org.apache.hadoop.hbase.regionserver.HRegion;
import org.apache.hadoop.hbase.util.Writables;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.io.RowResult;
/**
@ -110,7 +111,7 @@ class ProcessServerShutdown extends RegionServerOperation {
byte [] row = values.getRow();
if (LOG.isDebugEnabled() && row != null) {
LOG.debug("shutdown scanner looking at " + row.toString());
LOG.debug("shutdown scanner looking at " + Bytes.toString(row));
}
// Check server name. If null, be conservative and treat as though