Skip to content

Commit 4d28ee3

Browse files
LiebingYuLiebing
andauthored
[server] Prohibit the creation of TableAssignment with zero buckets (#1489)
Co-authored-by: Liebing <[email protected]>
1 parent f559eca commit 4d28ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluss-server/src/main/java/com/alibaba/fluss/server/utils/TableAssignmentUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected static TableAssignment generateAssignment(
4747
TabletServerInfo[] servers,
4848
int startIndex,
4949
int nextReplicaShift) {
50-
if (nBuckets < 0) {
50+
if (nBuckets <= 0) {
5151
throw new InvalidBucketsException("Number of buckets must be larger than 0.");
5252
}
5353

0 commit comments

Comments
 (0)