Skip to content

Commit

Permalink
Removed unused all-in-one RFS scripts; made tests less verbose (opens…
Browse files Browse the repository at this point in the history
…earch-project#813)

* Removed unused all-in-one RFS scripts; made tests less verbose

Signed-off-by: Chris Helma <[email protected]>

* Updated RFS Test logging per suggestions

Signed-off-by: Chris Helma <[email protected]>

---------

Signed-off-by: Chris Helma <[email protected]>
  • Loading branch information
chelma authored Jul 12, 2024
1 parent 503d702 commit 874d92d
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 604 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static void main(String[] args) throws Exception {


try (var processManager = new LeaseExpireTrigger(workItemId->{
log.error("Terminating RunRfsWorker because its lease has expired for " + workItemId);
log.error("Terminating RfsMigrateDocuments because its lease has expired for " + workItemId);
System.exit(PROCESS_TIMED_OUT);
}, Clock.systemUTC())) {
var workCoordinator = new OpenSearchWorkCoordinator(new ApacheHttpClient(new URI(arguments.targetHost)),
Expand Down
24 changes: 0 additions & 24 deletions RFS/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,6 @@ dependencies {
testFixturesImplementation group: 'org.hamcrest', name: 'hamcrest'
}

application {
mainClassName = 'com.rfs.ReindexFromSnapshot'
}

task runRfsWorker (type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.rfs.RunRfsWorker'
}

task createSnapshot (type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.rfs.RfsCreateSnapshot'
}

task migrateMetadata (type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.rfs.RfsMigrateMetadata'
}

task migrateDocuments (type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.rfs.RfsMigrateDocuments'
}

test {
useJUnitPlatform {
excludeTags 'longTest'
Expand Down
Loading

0 comments on commit 874d92d

Please sign in to comment.