Skip to content

Bug in ConsistencyLevel class where the enum seems to be referencing same level #641

Open

Description

@henryf1991

QUORUM(WeaviateProtoBase.ConsistencyLevel.CONSISTENCY_LEVEL_ONE, "QUORUM"),

public enum ConsistencyLevel {
  /**
   * The operation succeeds as soon as one replica acknowledges the request. This
   * is the fastest and most available, but least consistent option.
   */
  ONE(WeaviateProtoBase.ConsistencyLevel.CONSISTENCY_LEVEL_ONE, "ONE"),
  /**
   * The operation succeeds when a majority of replicas (calculated as
   * replication_factor/2 + 1) respond. This provides a balance between
   * consistency and availability.
   */
  QUORUM(WeaviateProtoBase.ConsistencyLevel.CONSISTENCY_LEVEL_ONE, "QUORUM"),
  /**
   * The operation succeeds only when all replicas respond. This is the most
   * consistent but least available and slowest option.
   */
  ALL(WeaviateProtoBase.ConsistencyLevel.CONSISTENCY_LEVEL_ONE, "ALL");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions