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

Tsz-wo Sze reassigned RATIS-2167:
---------------------------------

    Component/s: API
       Assignee: JiangHua Zhu

> 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
>
> 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