Closed nandanarista closed 2 years ago
This sounds reasonable to me -- and covers some of the same concerns as #24.
I suggest we also specify in the proto what the canonical code that is used is. Particularly, whilst implementing this, I thought:
FAILED_PRECONDITION
(note that we don't have an analogue here in Modify
because there this condition is not a fatal error).INVALID_ARGUMENT
(again, we don't have a an analogue here for the same reason as above in Modify
)
Today in the FlushRequest, if
election
doesn't specify aid
noroverride
in single primary mode, there's no Reason enum for this error. Does it make sense to add a specific enum like NO_ELECTION_ID_OR_OVERRIDE to ModifyResponseError.Reason ?