HBASE-16969 RegionCoprocessorServiceExec should override the toString() for debugging (ChiaPing Tsai)
This commit is contained in:
parent
d4256aa6f3
commit
fe47ec81f9
|
@ -101,4 +101,18 @@ public class RegionCoprocessorServiceExec implements Row {
|
|||
Row other = (Row) obj;
|
||||
return compareTo(other) == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("region:")
|
||||
.append(Bytes.toStringBinary(region))
|
||||
.append(", startKey:")
|
||||
.append(Bytes.toStringBinary(startKey))
|
||||
.append(", method:")
|
||||
.append(method.getFullName())
|
||||
.append(", request:")
|
||||
.append(request);
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ public class ZNodeClearer {
|
|||
new File(fileName).delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* See HBASE-14861. We are extracting master ServerName from rsZnodePath
|
||||
* example: "/hbase/rs/server.example.com,16020,1448266496481"
|
||||
|
|
Loading…
Reference in New Issue