Skip to content

Commit

Permalink
remove extra endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
vthacker committed Oct 18, 2023
1 parent 20e372d commit 87d2cf6
Showing 1 changed file with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@

import com.google.common.util.concurrent.AbstractService;
import com.linecorp.armeria.common.HttpResponse;
import com.linecorp.armeria.common.HttpStatus;
import com.linecorp.armeria.common.MediaType;
import com.linecorp.armeria.server.annotation.Blocking;
import com.linecorp.armeria.server.annotation.Get;
import com.linecorp.armeria.server.annotation.Post;
import com.slack.kaldb.elasticsearchApi.BulkIngestResponse;
import com.slack.kaldb.metadata.core.KaldbMetadataStoreChangeListener;
Expand Down Expand Up @@ -157,53 +154,6 @@ public OpenSearchBulkIngestApi(
this.kafkaProducer.initTransactions();
}

// along with the bulk API we also need to expose some node info that logstash needs info from
@Get("/")
public HttpResponse getNodeInfo() {
String output =
"""
{
"name" : "node_name",
"cluster_name" : "cluster_name",
"cluster_uuid" : "uuid",
"version" : {
"number" : "7.12.0",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "78722783c38caa25a70982b5b042074cde5d3b3a",
"build_date" : "2021-04-02T00:53:29.130908562Z",
"build_snapshot" : false,
"lucene_version" : "8.8.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
""";
return HttpResponse.of(HttpStatus.OK, MediaType.JSON_UTF_8, output);
}

@Get("/_license")
public HttpResponse getLicenseInfo() {
String output =
"""
{
"license" : {
"status" : "active",
"uid" : "8afdc262-f37a-4b48-ad2e-68e224180640",
"type" : "basic",
"issue_date" : "2020-12-07T23:59:22.009Z",
"issue_date_in_millis" : 1607385562009,
"max_nodes" : 1000,
"issued_to" : "cluster_name",
"issuer" : "elasticsearch",
"start_date_in_millis" : -1
}
}
""";
return HttpResponse.of(HttpStatus.OK, MediaType.JSON_UTF_8, output);
}

/**
* 1. Kaldb does not support the concept of "updates". It's always an add 2. The "index" is used
* as the span name
Expand Down

0 comments on commit 87d2cf6

Please sign in to comment.