Failing test: UNIT org.apache.cassandra.tools.BulkLoaderTest.testBulkLoader_WithArgs1

patch by Berenguer Blasi; reviewed by Brandon Williams for CASSANDRA-17283
This commit is contained in:
Bereng 2022-02-15 12:20:16 +01:00
parent d70e004975
commit a725d2c4c8
1 changed files with 18 additions and 4 deletions

View File

@ -36,7 +36,9 @@ public class BulkLoaderTest extends OfflineToolUtils
assertEquals(1, tool.getExitCode());
assertThat(tool.getCleanedStderr(), CoreMatchers.containsString("Missing sstable directory argument"));
assertNoUnexpectedThreadsStarted(new String[] { "ObjectCleanerThread" });
assertNoUnexpectedThreadsStarted(new String[] { "ObjectCleanerThread",
"Shutdown-checker",
"cluster[0-9]-connection-reaper-[0-9]" });
assertSchemaNotLoaded();
assertCLSMNotLoaded();
assertSystemKSNotLoaded();
@ -58,7 +60,11 @@ public class BulkLoaderTest extends OfflineToolUtils
if (!(tool.getException().getCause().getCause() instanceof NoHostAvailableException))
throw tool.getException();
assertNoUnexpectedThreadsStarted(new String[]{ "ObjectCleanerThread", "globalEventExecutor-[1-9]-[1-9]", "globalEventExecutor-[1-9]-[1-9]" });
assertNoUnexpectedThreadsStarted(new String[] { "ObjectCleanerThread",
"globalEventExecutor-[1-9]-[1-9]",
"globalEventExecutor-[1-9]-[1-9]",
"Shutdown-checker",
"cluster[0-9]-connection-reaper-[0-9]" });
assertSchemaNotLoaded();
assertCLSMNotLoaded();
assertSystemKSNotLoaded();
@ -82,7 +88,11 @@ public class BulkLoaderTest extends OfflineToolUtils
if (!(tool.getException().getCause().getCause() instanceof NoHostAvailableException))
throw tool.getException();
assertNoUnexpectedThreadsStarted(new String[]{ "ObjectCleanerThread", "globalEventExecutor-[1-9]-[1-9]", "globalEventExecutor-[1-9]-[1-9]" });
assertNoUnexpectedThreadsStarted(new String[] { "ObjectCleanerThread",
"globalEventExecutor-[1-9]-[1-9]",
"globalEventExecutor-[1-9]-[1-9]",
"Shutdown-checker",
"cluster[0-9]-connection-reaper-[0-9]" });
assertSchemaNotLoaded();
assertCLSMNotLoaded();
assertSystemKSNotLoaded();
@ -106,7 +116,11 @@ public class BulkLoaderTest extends OfflineToolUtils
if (!(tool.getException().getCause().getCause() instanceof NoHostAvailableException))
throw tool.getException();
assertNoUnexpectedThreadsStarted(new String[]{ "ObjectCleanerThread", "globalEventExecutor-[1-9]-[1-9]", "globalEventExecutor-[1-9]-[1-9]" });
assertNoUnexpectedThreadsStarted(new String[] { "ObjectCleanerThread",
"globalEventExecutor-[1-9]-[1-9]",
"globalEventExecutor-[1-9]-[1-9]",
"Shutdown-checker",
"cluster[0-9]-connection-reaper-[0-9]" });
assertSchemaNotLoaded();
assertCLSMNotLoaded();
assertSystemKSNotLoaded();