Skip to content

Commit

Permalink
Revert "experiment for healthcheck"
Browse files Browse the repository at this point in the history
This reverts commit b52ed6f.
  • Loading branch information
artntek committed Oct 23, 2023
1 parent b52ed6f commit 905c4f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
25 changes: 0 additions & 25 deletions helm/templates/cronjob.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions src/main/java/org/dataone/cn/indexer/IndexWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
package org.dataone.cn.indexer;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand All @@ -38,7 +35,6 @@

import org.apache.commons.codec.EncoderException;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.io.IOUtils;
import org.apache.log4j.Logger;
import org.apache.solr.client.solrj.SolrServerException;
import org.dataone.cn.indexer.annotation.OntologyModelService;
Expand Down Expand Up @@ -133,18 +129,6 @@ public static void main(String[] args) throws IOException, TimeoutException, Ser
loadExternalPropertiesFile(propertyFile);
IndexWorker worker = new IndexWorker();
worker.start();

try (OutputStream outputStream = new FileOutputStream("/etc/dataone/health-status")) {
IOUtils.write("INDEXWORKER OK", outputStream, Charset.defaultCharset());
} catch (IOException e) {
throw new RuntimeException("Unable to write /etc/dataone/health-status file", e);
}

// // Start the health check server
// new Thread(new HealthCheckServer()).start();
//
// // Set the health check flag
// HealthCheckServer.setStarted(true);
}

/**
Expand Down

0 comments on commit 905c4f7

Please sign in to comment.