Skip to content

Commit

Permalink
[Improvement] Optimize tips for checking replica settings apache#1330
Browse files Browse the repository at this point in the history
  • Loading branch information
guixiaowen committed Nov 24, 2023
1 parent 34db3f1 commit bebce29
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ public static <T> List<T> loadExtensions(Class<T> extClass, List<String> classes
public static void checkQuorumSetting(int replica, int replicaWrite, int replicaRead) {
if (replica < 1 || replicaWrite > replica || replicaRead > replica) {
throw new RssException(
"Replica config is invalid, recommend replica.write + replica.read > replica");
"Replica config is invalid, it cannot be less than 1" +
" or less than replica.write " +
" or less than replica.read. " +
" Please check it.");
}
if (replicaWrite + replicaRead <= replica) {
throw new RssException(
Expand Down

0 comments on commit bebce29

Please sign in to comment.