Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Extras committed Oct 24, 2024
1 parent 910d387 commit b06d5d6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class WorkloadGroup implements Writable, GsonPostProcessable {
public static final String MEMORY_LIMIT = "memory_limit";

public static final String ENABLE_MEMORY_OVERCOMMIT = "enable_memory_overcommit";

public static final String LOAD_BUFFER_RATIO = "load_buffer_ratio";

public static final String MAX_CONCURRENCY = "max_concurrency";
Expand Down Expand Up @@ -274,9 +274,11 @@ private static void checkProperties(Map<String, String> properties) throws DdlEx
if (properties.containsKey(LOAD_BUFFER_RATIO)) {
String memoryLimit = properties.get(LOAD_BUFFER_RATIO);
if (!memoryLimit.endsWith("%")) {
throw new DdlException(LOAD_BUFFER_RATIO + " " + memoryLimit + " requires a percentage and ends with a '%'");
throw new DdlException(LOAD_BUFFER_RATIO + " " + memoryLimit
+ " requires a percentage and ends with a '%'");
}
String memLimitErr = LOAD_BUFFER_RATIO + " " + memoryLimit + " requires a positive int number.";
String memLimitErr = LOAD_BUFFER_RATIO + " " + memoryLimit
+ " requires a positive int number.";
try {
if (Integer.parseInt(memoryLimit.substring(0, memoryLimit.length() - 1)) < 0) {
throw new DdlException(memLimitErr);
Expand Down

0 comments on commit b06d5d6

Please sign in to comment.