kevinrr888 commented on code in PR #4452: URL: https://github.com/apache/accumulo/pull/4452#discussion_r1570878978
########## test/src/main/java/org/apache/accumulo/test/compaction/ExternalCompactionProgressIT.java: ########## @@ -97,14 +104,90 @@ public void testProgress() throws Exception { client.tableOperations().attachIterator(table1, setting, EnumSet.of(IteratorUtil.IteratorScope.majc)); log.info("Compacting table"); - compact(client, table1, 2, "DCQ1", true); + compact(client, table1, 2, QUEUE1, true); verify(client, table1, 2, ROWS); log.info("Done Compacting table"); compactionFinished.set(true); checkerThread.join(); verifyProgress(); + } finally { + getCluster().getClusterControl().stopAllServers(ServerType.COMPACTOR); + getCluster().getClusterControl().stopAllServers(ServerType.COMPACTION_COORDINATOR); + } + } + + @Test + public void testProgressWithBulkImport() throws Exception { + /* + * Tests the progress of an external compaction done on a table with bulk imported files. + * Progress should stay 0-100. There was previously a bug with the Compactor showing a >100% + * progress for compactions with bulk import files. + */ + String[] tableNames = getUniqueNames(2); + String tableName1 = tableNames[0]; + String tableName2 = tableNames[1]; + + try (AccumuloClient client = Accumulo.newClient().from(getClientProps()).build()) { Review Comment: Yes. The progress would go up to 200% prior to the changes, which is what was expected. -- 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: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org