[
https://issues.apache.org/jira/browse/HBASE-7533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557369#comment-13557369
]
Ted Yu commented on HBASE-7533:
-------------------------------
Both RegionMovedException and DoNotRetryIOException give clients hint on what
to do next.
I think their representation in .proto can be unified.
{code}
class RegionRelocationException extends PBException {
// ctor from server side
RegionRelocationException(RegionRelocationData message) {
super(message);
}
RegionRelocationException(byte[] bytes) {
} // ctor from server side
}
message RegionRelocationData {
required ServerName serverName = 1;
}
{code}
We can designate a special value for RegionRelocationData.serverName which
tells client that client should not retry.
> Write an RPC Specification for 0.96
> -----------------------------------
>
> Key: HBASE-7533
> URL: https://issues.apache.org/jira/browse/HBASE-7533
> Project: HBase
> Issue Type: Bug
> Reporter: stack
> Assignee: stack
> Fix For: 0.96.0
>
> Attachments: 7533_proto_sketch.txt, rpc_spec.txt
>
>
> RPC format is changing for 0.96 to accomodate our protobufing all around.
> Here is a first cut. Please shred:
> https://docs.google.com/document/d/1-1RJMLXzYldmHgKP7M7ynK6euRpucD03fZ603DlZfGI/edit
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira