kevinrr888 commented on issue #5968:
URL: https://github.com/apache/accumulo/issues/5968#issuecomment-3560724636

   Both attempts fail without hanging. Here's the test for context (wrote in 
BulkNewIT)
   ```
     @Test
     public void testExceedsMaxTablets() throws Exception {
       try (AccumuloClient c = 
Accumulo.newClient().from(getClientProps()).build()) {
         final int maxTablets = 5;
         final int numTablets = 6;
         String dir = getDir("/testExceedsMaxTablets-");
         writeData(fs, dir + "/f1.", aconf, 0, numTablets);
         var props = Map.of(Property.TABLE_BULK_MAX_TABLETS.getKey(), 
maxTablets + "");
         var splits = IntStream.range(1, 
numTablets).mapToObj(BulkNewIT::row).map(Text::new)
                 .collect(Collectors.toCollection(TreeSet::new));
         c.tableOperations().delete(tableName);
         c.tableOperations().create(tableName, new 
NewTableConfiguration().setProperties(props).withSplits(splits));
         try {
           c.tableOperations().importDirectory(dir).to(tableName).load();
         } catch (Exception e) {
           LOG.error("ignoring exception", e);
         }
         c.tableOperations().importDirectory(dir).to(tableName).load();
       }
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to