Github user banjiewen commented on the pull request:

    https://github.com/apache/couchdb-mem3/pull/11#issuecomment-125054233
  
    The error exists because `N` is ~silently reduced to `NodeCount`.
    
    To quote @rnewson's comment in the related ticket, which I still believe is 
definitive here:
    
    > A strong mechanism would be to remove the silent reduction of N when 
creating a database, to instead return a 400 or 500 error message (we'll have 
to bikeshed a little on whether the user is in error for asking for more 
replicas than the cluster can create or the server is in error for not having 
enough nodes to satisfy the user).
    > When choosing "single node" in setup, the default N value should be set 
to 1, so that database creations do not return the error.
    
    IMO removing the error is all fine and good - it's not really the crux of 
the interest here. If there's a "Single Node Mode", that should set `N` to 1, 
and `N` should never be silently reduced.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to