peterxcli commented on code in PR #11763:
URL: https://github.com/apache/ozone/pull/11763#discussion_r4373345295
##########
hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto:
##########
@@ -2862,6 +2862,28 @@ service OzoneManagerService {
returns(OMResponse);
}
+/**
+ The error that OzoneManagerService sends in the gRPC trailers when
submitRequest fails.
+*/
+message OMGrpcErrorProto {
+ message NotLeader {
+ // The OM node ID of the suggested leader, if known.
+ optional string suggestedLeaderNodeId = 1;
+ }
+ message LeaderNotReady {}
+ message ReadIndexFailed {}
+ message ReadFailed {}
+
+ optional string message = 1;
+ // Not set for any other error.
+ oneof error {
Review Comment:
this allow us to add more error type and structural info in future
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]