[ 
https://issues.apache.org/jira/browse/RATIS-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901513#comment-16901513
 ] 

Tsz Wo Nicholas Sze commented on RATIS-635:
-------------------------------------------

The static helper function would look like the one line method below.  
Honestly, it seems not very useful.
{code:java}
  static Long min(Collection<CommitInfoProto> commitInfos) {
    return 
commitInfos.stream().map(CommitInfoProto::getCommitIndex).min(Long::compareTo).orElse(null);
  }
{code}

> Add an API to get the min replicated logIndex for a raftGroup in raftServer
> ---------------------------------------------------------------------------
>
>                 Key: RATIS-635
>                 URL: https://issues.apache.org/jira/browse/RATIS-635
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 0.4.0
>            Reporter: Shashikant Banerjee
>            Assignee: Shashikant Banerjee
>            Priority: Major
>              Labels: ozone
>             Fix For: 0.4.0
>
>         Attachments: RATIS-635.000.patch
>
>
> This feature is required by Ozone(HDDS-1753) to figure the min replicated 
> index across all servers of a RaftGroup.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to