[
https://issues.apache.org/jira/browse/ZOOKEEPER-3764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17315975#comment-17315975
]
Zhewei Hu edited comment on ZOOKEEPER-3764 at 4/7/21, 6:10 AM:
---------------------------------------------------------------
I think (6/2-1) and ((6-1)/2) are the same.
Assume N is an even number and N = 2x, x is a positive integer bigger than 1,
then
int(N/2-1) = int(2x/2-1)=int(x-1)=x-1
int((N-1)/2)=int((2x-1)/2)=int(x-1/2)=x-1
was (Author: zhewei hu):
I think (6/2-1) and ((6-1)/2) are the same.
Assume N is an even number and N = 2x, x is a positive integer, then
int(N/2-1) = int(2x/2-1)=int(x-1)=x-1
int((N-1)/2)=int((2x-1)/2)=int(x-1/2)=x-1
> Add High Availability Guarantee Into Docs
> -----------------------------------------
>
> Key: ZOOKEEPER-3764
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3764
> Project: ZooKeeper
> Issue Type: Improvement
> Components: documentation
> Reporter: David Mollitor
> Assignee: Zhewei Hu
> Priority: Trivial
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> {quote}
> For a topic with replication factor N, we will tolerate up to N-1 server
> failures without losing any records committed to the log.
> * https://kafka.apache.org/documentation/
> {quote}
> Please add a similar statement to the ZK docs, to include the formula for
> calculating the maximum number of server failures.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)