[ 
https://issues.apache.org/jira/browse/RATIS-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze resolved RATIS-2167.
-------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

The pull request is now merged.  Thanks, [~jianghuazhu]!

> Add default value in TermIndex
> ------------------------------
>
>                 Key: RATIS-2167
>                 URL: https://issues.apache.org/jira/browse/RATIS-2167
>             Project: Ratis
>          Issue Type: Improvement
>          Components: API, server
>    Affects Versions: 3.1.0
>            Reporter: JiangHua Zhu
>            Assignee: JiangHua Zhu
>            Priority: Major
>             Fix For: 3.2.0
>
>
> The default value of TermIndex is used in some places.
> BaseStateMachine class:
> {code:java}
>   public BaseStateMachine() {
>     setLastAppliedTermIndex(TermIndex.valueOf(0, -1));
>   }
> {code}
> In the Ozone project, TransactionInfo:
> {code:java}
> public static final TransactionInfo DEFAULT_VALUE = valueOf(0, -1);
> {code}
> They all use a common default value, TermIndex.valueOf(0,-1).
> We can build this unified default value into TermIndex.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to