shishkovilja commented on code in PR #12855:
URL: https://github.com/apache/ignite/pull/12855#discussion_r3072317438
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/binary/MetadataUpdateProposedMessage.java:
##########
@@ -134,22 +153,21 @@ public MetadataUpdateProposedMessage(BinaryMetadata
metadata, UUID origNodeId) {
* @param err Error caused this update to be rejected.
*/
void markRejected(BinaryObjectException err) {
- status = ProposalStatus.REJECTED;
- this.err = err;
+ errMsg = new ErrorMessage(err);
}
/**
*
*/
boolean rejected() {
- return status == ProposalStatus.REJECTED;
+ return errMsg != null;
}
/**
*
*/
BinaryObjectException rejectionError() {
- return err;
+ return (BinaryObjectException)errMsg.error();
Review Comment:
```suggestion
return (BinaryObjectException)ErrorMessage.error(errMsg);
```
--
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]