You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Shashikant Banerjee (JIRA)" <ji...@apache.org> on 2018/11/06 14:17:00 UTC
[jira] [Created] (RATIS-394) Remove the assertion while setting the
exception in TransactionContextImpl
Shashikant Banerjee created RATIS-394:
-----------------------------------------
Summary: Remove the assertion while setting the exception in TransactionContextImpl
Key: RATIS-394
URL: https://issues.apache.org/jira/browse/RATIS-394
Project: Ratis
Issue Type: Improvement
Reporter: Shashikant Banerjee
Assignee: Shashikant Banerjee
Fix For: 0.3.0
In the below code in TransactionContaextImpl,
{code:java}
@Override
public TransactionContext setException(Exception ioe) {
assert exception != null;
this.exception = ioe;
return this;
}
{code}
While setting the exception it asserts the exception maintained in the object is not null or not. While setting the exception first time, it will be null always and hence asserts. We should relax the check here.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)