This is an automated email from the ASF dual-hosted git repository. ctubbsii pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push: new cafc671 check if splits set is empty before table creation (#1913) cafc671 is described below commit cafc67182eb656e2495ce8dbc2d40cfcb844b929 Author: Dom G <47725857+domgargu...@users.noreply.github.com> AuthorDate: Fri Feb 5 14:34:00 2021 -0500 check if splits set is empty before table creation (#1913) --- test/src/main/java/org/apache/accumulo/test/TestIngest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/src/main/java/org/apache/accumulo/test/TestIngest.java b/test/src/main/java/org/apache/accumulo/test/TestIngest.java index d253ad2..c66380d 100644 --- a/test/src/main/java/org/apache/accumulo/test/TestIngest.java +++ b/test/src/main/java/org/apache/accumulo/test/TestIngest.java @@ -172,7 +172,10 @@ public class TestIngest { getSplitPoints(params.startRow, params.startRow + params.rows, params.numsplits); // if the table does not exist, create it (with splits) if (!client.tableOperations().exists(params.tableName)) { - NewTableConfiguration ntc = new NewTableConfiguration().withSplits(splits); + NewTableConfiguration ntc = new NewTableConfiguration(); + if (!splits.isEmpty()) { + ntc = ntc.withSplits(splits); + } client.tableOperations().create(params.tableName, ntc); } else { // if the table already exists, add splits to it try {