This is an automated email from the ASF dual-hosted git repository.
yuxia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluss.git
The following commit(s) were added to refs/heads/main by this push:
new 4d28ee3a2 [server] Prohibit the creation of TableAssignment with zero
buckets (#1489)
4d28ee3a2 is described below
commit 4d28ee3a2573eca4bc02457ef9c820431d8ddcda
Author: Liebing <[email protected]>
AuthorDate: Wed Aug 6 19:04:32 2025 +0800
[server] Prohibit the creation of TableAssignment with zero buckets (#1489)
Co-authored-by: Liebing <[email protected]>
---
.../main/java/com/alibaba/fluss/server/utils/TableAssignmentUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fluss-server/src/main/java/com/alibaba/fluss/server/utils/TableAssignmentUtils.java
b/fluss-server/src/main/java/com/alibaba/fluss/server/utils/TableAssignmentUtils.java
index b741c378d..1d1d89946 100644
---
a/fluss-server/src/main/java/com/alibaba/fluss/server/utils/TableAssignmentUtils.java
+++
b/fluss-server/src/main/java/com/alibaba/fluss/server/utils/TableAssignmentUtils.java
@@ -47,7 +47,7 @@ public class TableAssignmentUtils {
TabletServerInfo[] servers,
int startIndex,
int nextReplicaShift) {
- if (nBuckets < 0) {
+ if (nBuckets <= 0) {
throw new InvalidBucketsException("Number of buckets must be
larger than 0.");
}