일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- matplotlib
- flask
- ELASTIC
- API
- zip 파일 암호화
- License
- license delete
- Python
- aggregation
- licence delete curl
- 파이썬
- Elasticsearch
- Java
- 차트
- query
- high level client
- TensorFlow
- token filter test
- docker
- springboot
- sort
- 900gle
- Mac
- Test
- Kafka
- plugin
- analyzer test
- MySQL
- zip 암호화
- aggs
Archives
- Today
- Total
개발잡부
[es] ESSingleNodeTestCase 본문
반응형
https://ldh-6019.tistory.com/352
Payload sort 를 만드는 도중.. 유닛테스트의 필요성을 느껴 ESSingleNodeTestCase 를 활용하여 TEST 케이스를 만들어 보았드아
개발 환경
- macOS
- intelliJ IDEA
- springboot gradle
build.gradle 파일 dependencies 추가
ESSingleNodeTestCase 는 elasticsearch 의 파생클래스
implementation group: 'org.elasticsearch', name: 'elasticsearch', version: '7.15.1'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.18.0'
package doo.elasticsearch.plugin;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.support.replication.ReplicationResponse;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.rest.RestStatus;
import org.elasticsearch.search.SearchHits;
import org.elasticsearch.test.ESSingleNodeTestCase;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class PayLoadSortTest extends ESSingleNodeTestCase {
@Test
public void indexApi() {
IndexRequest idxRequest =
new IndexRequest()
.index("doo")
.id("bbongdoo")
.source(newSource());
IndexResponse idxResponse = node().client().index(idxRequest).actionGet();
assertEquals("doo", idxResponse.getIndex());
assertEquals(RestStatus.CREATED, idxResponse.status());
assertEquals("bbongdoo", idxResponse.getId());
assertEquals(1L, idxResponse.getPrimaryTerm());
assertEquals(0L, idxResponse.getSeqNo());
assertEquals(1L, idxResponse.getVersion());
ReplicationResponse.ShardInfo shardInfo = idxResponse.getShardInfo();
assertEquals(0, shardInfo.getFailed());
assertEquals(1, shardInfo.getSuccessful());
assertEquals(1, shardInfo.getTotal());
}
private Map<String, String> newSource() {
Map<String, String> source = new HashMap<>();
source.put("firstName", "Doo");
source.put("lastName", "LEE");
return source;
}
@Test
public void getApi() {
GetResponse response =
node()
.client()
.prepareGet()
.setIndex("doo")
.setId("bbongdoo")
.execute()
.actionGet();
assertEquals("doo", response.getIndex());
assertEquals("bbongdoo", response.getId());
Map<String, Object> source = response.getSourceAsMap();
assertEquals("Doo", source.get("firstName"));
assertEquals("LEE", source.get("lastName"));
}
@Test
public void searchApi() {
SearchResponse response =
node()
.client()
.prepareSearch("doo")
.setQuery(QueryBuilders.termQuery("lastName", "LEE"))
.get();
SearchHits hits = response.getHits();
assertEquals(2L, hits.getTotalHits().value);
assertEquals("Doo", hits.getHits()[0].getId());
assertEquals("LEE", hits.getHits()[1].getId());
}
}
/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=49742:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit5-rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit-rt.jar:/Users/doo/plugin/payload-dscore/build/classes/java/test:/Users/doo/plugin/payload-dscore/build/classes/java/main:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch.test/framework/7.15.1/f553f686a5fdd984d82dec6e36bdde5210c3484b/framework-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch/7.15.1/ac43b905ece311700b976306af11442edf3aca6f/elasticsearch-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-core/2.18.0/7c1882ede137548925eadb750615edab2f6e13c/log4j-core-2.18.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-engine/5.7.0/d9044d6b45e2232ddd53fa56c15333e43d1749fd/junit-jupiter-engine-5.7.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.junit.jupiter/junit-jupiter-api/5.7.0/b25f3815c4c1860a73041e733a14a0379d00c4d5/junit-jupiter-api-5.7.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-cli/7.15.1/6419c8b1ab2cb7980402962dae9f7fe66d76b613/elasticsearch-cli-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-nio/7.15.1/66eb093b6d05eb4012f941e2ff3b8a4818c7e04c/elasticsearch-nio-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-ssl-config/7.15.1/341eba59e122857e11bbe19ba99e536128f25a0f/elasticsearch-ssl-config-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch.client/elasticsearch-rest-client-sniffer/7.15.1/177bc4bbfd252b7410512b46c723b191cd93ecba/elasticsearch-rest-client-sniffer-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch.client/elasticsearch-rest-client/7.15.1/8d7abece3677cfcf58935d11a620a76d6dab2c4c/elasticsearch-rest-client-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.carrotsearch.randomizedtesting/randomizedtesting-runner/2.7.1/e917f4983144c3b969eb7d3648338ecde5e3ba89/randomizedtesting-runner-2.7.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest/2.1/9420ba32c29217b54eebd26ff7f9234d31c3fbb2/hamcrest-2.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-test-framework/8.9.0/3e590e1040559c0106cfa2821744882b30344224/lucene-test-framework-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-codecs/8.9.0/55726b580b7bbb5798580811455e64444960da7/lucene-codecs-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.3/f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f/commons-logging-1.1.3.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.11/3acb4705652e16236558f0f4f2192cc33c3bd189/commons-codec-1.11.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/securemock/1.2/98201d4ad5ac93f6b415ae9172d52b5e7cda490e/securemock-1.2.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/mocksocket/1.2/190ad3f42fd6ab7367bae0c0e14d1dc4e4a3c361/mocksocket-1.2.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/io.github.nik9000/mapmatcher/0.0.3/7fbf08e29d1575c1c01689943ba7a4875631ff29/mapmatcher-0.0.3.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.10.4/8796585e716440d6dd5128b30359932a9eb74d0d/jackson-core-2.10.4.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.networknt/json-schema-validator/1.0.48/d28a6fb127101a59a452e338dbda973d09cf3434/json-schema-validator-1.0.48.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.10.4/76e9152e93d4cf052f93a64596f633ba5b1c8ed9/jackson-databind-2.10.4.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.10.4/6ae6028aff033f194c9710ad87c224ccaadeed6c/jackson-annotations-2.10.4.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.19/7e65777fb451ddab6a9c054beb879e521b7eab78/commons-compress-1.19.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.9/122c7cee69b53ed4a7681c03d4ee4c0e2765da5/commons-lang3-3.9.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-x-content/7.15.1/d28432c08626d617bacd575817ae22ebb49fa25b/elasticsearch-x-content-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-core/7.15.1/adbb5ddf43c96ac0a806a1ff2b7687e2227c6901/elasticsearch-core-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-secure-sm/7.15.1/eeb243439140bbf95ba75fc6bde21f5554aa42d5/elasticsearch-secure-sm-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-geo/7.15.1/b58c7d9353cc0752fd12a0b578caafcad34c0bf7/elasticsearch-geo-7.15.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-core/8.9.0/5c3f72357089f7f0c1ef44bbe7b4c67b6149a5af/lucene-core-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-analyzers-common/8.9.0/18f3bbff2b7672ea0b9cc18c8110ef69c763ae6b/lucene-analyzers-common-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-backward-codecs/8.9.0/fec88b5e71c699ceddc3ae0369481697ac9a5c96/lucene-backward-codecs-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-grouping/8.9.0/9440fdd430b1c2dadbf3bc72656848d61e6f747f/lucene-grouping-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-highlighter/8.9.0/94e80bdeab170b0ce1b36a32b6a790d23d7f6d7b/lucene-highlighter-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-join/8.9.0/5ae97803efd3344597f6b6bdf823b18d130e8851/lucene-join-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-memory/8.9.0/9423a6dca2a9ba665e644d86a713d9a6b2b0d3f/lucene-memory-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-misc/8.9.0/67494d621ba2ef1f2e4da3ef167106f00b52051/lucene-misc-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queries/8.9.0/c6bda4622abf240da6567a128242f46708fa6c00/lucene-queries-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-queryparser/8.9.0/95a9d8cf8ca8eaf9f241fd323697d26d211721b2/lucene-queryparser-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-sandbox/8.9.0/af9f6c0287465e17a520b93b684474712433b293/lucene-sandbox-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-spatial-extras/8.9.0/c89f4e78712806e8d5bb4adfb21cf0722ad3f175/lucene-spatial-extras-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-spatial3d/8.9.0/d1238c4e8bf4409b3bb3fbddf2e977b0f19b24b/lucene-spatial3d-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-suggest/8.9.0/98cb69950b48b829b6605a003c99aa7eb86fa9eb/lucene-suggest-8.9.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.carrotsearch/hppc/0.8.1/ffc7ba8f289428b9508ab484b8001dea944ae603/hppc-0.8.1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.lz4/lz4-java/1.8.0/4b986a99445e49ea5fbf5d149c4b63f6ed6c6780/lz4-java-1.8.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/joda-time/joda-time/2.10.10/29e8126e31f41e5c12b9fe3a7eb02e704c47d70b/joda-time-2.10.10.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.tdunning/t-digest/3.2/2ab94758b0276a8a26102adf8d528cf6d0567b9a/t-digest-3.2.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.hdrhistogram/HdrHistogram/2.1.9/e4631ce165eb400edecfa32e03d3f1be53dee754/HdrHistogram-2.1.9.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-api/2.18.0/c72ad9b1d8d42e4ea7befd8248bf05877af4c63d/log4j-api-2.18.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/jna/5.7.0-1/8ffc051522e63292eaf757d89353c14e94233988/jna-5.7.0-1.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-engine/1.7.0/eadb73c5074a4ac71061defd00fc176152a4d12c/junit-platform-engine-1.7.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apiguardian/apiguardian-api/1.1.0/fc9dff4bb36d627bdc553de77e1f17efd790876c/apiguardian-api-1.1.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.junit.platform/junit-platform-commons/1.7.0/84e309fbf21d857aac079a3c1fffd84284e1114d/junit-platform-commons-1.7.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.opentest4j/opentest4j/1.2.0/28c11eb91f9b6d8e200631d46e20a7f407f2a046/opentest4j-1.2.0.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/net.sf.jopt-simple/jopt-simple/5.0.2/98cafc6081d5632b61be2c9e60650b64ddbc637c/jopt-simple-5.0.2.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.5.10/7ca2e4276f4ef95e4db725a8cd4a1d1e7585b9e5/httpclient-4.5.10.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.4.12/21ebaf6d532bc350ba95bd81938fa5f0e511c132/httpcore-4.4.12.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpasyncclient/4.1.4/f3a3240681faae3fa46b573a4c7e50cec9db0d86/httpasyncclient-4.1.4.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore-nio/4.4.12/84cd29eca842f31db02987cfedea245af020198b/httpcore-nio-4.4.12.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.26/a78a8747147d2c5807683e76ec2b633e95c14fe9/snakeyaml-1.26.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.dataformat/jackson-dataformat-smile/2.10.4/c872c2e224cfdcc5481037d477f5890f05c001b4/jackson-dataformat-smile-2.10.4.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.10.4/8a7f3c6b640bd89214807af6d8160b4b3b16af93/jackson-dataformat-yaml-2.10.4.jar:/Users/doo/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.dataformat/jackson-dataformat-cbor/2.10.4/c854bb2d46138198cb5d4aae86ef6c04b8bc1e70/jackson-dataformat-cbor-2.10.4.jar:/Users/doo/plugin/payload-dscore/build/generated-resources:/Users/doo/.gradle/caches/modules-2/files-2.1/org.elasticsearch/elasticsearch-plugin-classloader/7.15.1/abc957803b9977c7be3f59fc806cbdb2facf1dc2/elasticsearch-plugin-classloader-7.15.1.jar com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 doo.elasticsearch.plugin.PayLoadSortTest,indexApi
[2022-08-14T03:38:50,351][INFO ][o.e.n.Node ] [indexApi] version[7.15.1], pid[1844], build[unknown/unknown/83c34f456ae29d60e94d886e455e6a3409bba9ed/2021-10-07T21:56:19.031608185Z], OS[Mac OS X/10.16/x86_64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/15.0.1/15.0.1+9]
[2022-08-14T03:38:50,356][INFO ][o.e.n.Node ] [indexApi] JVM home [/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home]
[2022-08-14T03:38:50,359][DEPRECATION][o.e.d.n.Node ] [indexApi] no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
[2022-08-14T03:38:50,359][INFO ][o.e.n.Node ] [indexApi] JVM arguments [-ea, -Didea.test.cyclic.buffer.size=1048576, -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=49742:/Applications/IntelliJ IDEA.app/Contents/bin, -Dfile.encoding=UTF-8]
[2022-08-14T03:38:50,359][DEPRECATION][o.e.d.n.Node ] [indexApi] setting [path.shared_data] is deprecated and will be removed in a future release
[2022-08-14T03:38:50,366][INFO ][o.e.p.PluginsService ] [indexApi] no modules loaded
[2022-08-14T03:38:50,367][INFO ][o.e.p.PluginsService ] [indexApi] loaded plugin [org.elasticsearch.script.MockScriptService$TestPlugin]
[2022-08-14T03:38:50,367][INFO ][o.e.p.PluginsService ] [indexApi] loaded plugin [org.elasticsearch.test.MockHttpTransport$TestPlugin]
[2022-08-14T03:38:50,367][INFO ][o.e.p.PluginsService ] [indexApi] loaded plugin [org.elasticsearch.transport.nio.MockNioTransportPlugin]
[2022-08-14T03:38:50,385][INFO ][o.e.e.NodeEnvironment ] [indexApi] using [1] data paths, mounts [[/System/Volumes/Data (/dev/disk1s1)]], net usable_space [413gb], net total_space [931.5gb], types [apfs]
[2022-08-14T03:38:50,385][INFO ][o.e.e.NodeEnvironment ] [indexApi] heap size [4gb], compressed ordinary object pointers [true]
[2022-08-14T03:38:50,435][INFO ][o.e.n.Node ] [indexApi] node name [node_s_0], node ID [oV836dgxTfy44hVNpBTwCw], cluster name [single-node-cluster-TEST_WORKER_VM=[--not-gradle--]-CLUSTER_SEED=[-4391986825773066465]-HASH=[308C2A47D2E]], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
[2022-08-14T03:38:51,806][INFO ][o.e.d.DiscoveryModule ] [indexApi] using discovery type [zen] and seed hosts providers [settings]
[2022-08-14T03:38:52,059][INFO ][o.e.g.DanglingIndicesState] [indexApi] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2022-08-14T03:38:52,231][INFO ][o.e.n.Node ] [indexApi] initialized
[2022-08-14T03:38:52,231][INFO ][o.e.n.Node ] [indexApi] starting ...
[2022-08-14T03:38:52,270][INFO ][o.e.t.TransportService ] [indexApi] publish_address {127.0.0.1:13301}, bound_addresses {[::1]:13301}, {127.0.0.1:13301}
[2022-08-14T03:38:52,471][INFO ][o.e.c.c.Coordinator ] [indexApi] setting initial configuration to VotingConfiguration{oV836dgxTfy44hVNpBTwCw}
[2022-08-14T03:38:52,596][INFO ][o.e.c.s.MasterService ] [node_s_0] elected-as-master ([1] nodes joined)[{node_s_0}{oV836dgxTfy44hVNpBTwCw}{l11xbj3KQMyNAYvmHkldNQ}{127.0.0.1}{127.0.0.1:13301}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: master node changed {previous [], current [{node_s_0}{oV836dgxTfy44hVNpBTwCw}{l11xbj3KQMyNAYvmHkldNQ}{127.0.0.1}{127.0.0.1:13301}{cdfhimrsw}]}
[2022-08-14T03:38:52,642][INFO ][o.e.c.c.CoordinationState] [node_s_0] cluster UUID set to [Vp8WH3LeRxyWfPtxPWM_mA]
[2022-08-14T03:38:52,662][INFO ][o.e.c.s.ClusterApplierService] [node_s_0] master node changed {previous [], current [{node_s_0}{oV836dgxTfy44hVNpBTwCw}{l11xbj3KQMyNAYvmHkldNQ}{127.0.0.1}{127.0.0.1:13301}{cdfhimrsw}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
[2022-08-14T03:38:52,692][INFO ][o.e.n.Node ] [indexApi] started
[2022-08-14T03:38:52,716][INFO ][o.e.g.GatewayService ] [node_s_0] recovered [0] indices into cluster_state
[2022-08-14T03:38:52,851][INFO ][o.e.c.m.MetadataIndexTemplateService] [node_s_0] adding template [one_shard_index_template] for index patterns [*]
[2022-08-14T03:38:52,884][INFO ][o.e.c.m.MetadataIndexTemplateService] [node_s_0] adding template [random-soft-deletes-template] for index patterns [*]
[2022-08-14T03:38:52,901][INFO ][d.e.p.PayLoadSortTest ] [indexApi] before test
[2022-08-14T03:38:52,913][DEPRECATION][o.e.d.c.m.MetadataCreateIndexService] [node_s_0] index [doo] matches multiple legacy templates [one_shard_index_template, random-soft-deletes-template], composable templates will only match a single template
[2022-08-14T03:38:52,915][DEPRECATION][o.e.d.c.m.MetadataCreateIndexService] [node_s_0] Creating indices with soft-deletes disabled is deprecated and will be removed in future Elasticsearch versions. Please do not specify value for setting [index.soft_deletes.enabled] of index [doo].
[2022-08-14T03:38:52,929][INFO ][o.e.c.m.MetadataCreateIndexService] [node_s_0] [doo] creating index, cause [auto(bulk api)], templates [random-soft-deletes-template, one_shard_index_template], shards [1]/[0]
[2022-08-14T03:38:53,096][INFO ][o.e.c.r.a.AllocationService] [node_s_0] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[doo][0]]]).
[2022-08-14T03:38:53,228][INFO ][o.e.c.m.MetadataMappingService] [node_s_0] [doo/8Nrv_p3UQg2Xip0G38imLw] create_mapping [_doc]
[2022-08-14T03:38:53,282][INFO ][d.e.p.PayLoadSortTest ] [indexApi] after test
[2022-08-14T03:38:53,284][INFO ][o.e.c.m.MetadataDeleteIndexService] [node_s_0] [doo/8Nrv_p3UQg2Xip0G38imLw] deleting index
[2022-08-14T03:38:53,322][INFO ][o.e.n.Node ] [suite] stopping ...
[2022-08-14T03:38:53,328][INFO ][o.e.n.Node ] [suite] stopped
[2022-08-14T03:38:53,328][INFO ][o.e.n.Node ] [suite] closing ...
[2022-08-14T03:38:53,336][INFO ][o.e.n.Node ] [suite] closed
Process finished with exit code 0
반응형
'ElasticStack > Elasticsearch' 카테고리의 다른 글
[es] health check (0) | 2022.11.16 |
---|---|
[es] Terms Query (0) | 2022.09.27 |
[es] sort - payload sort 3 (0) | 2022.08.11 |
[es] aggregation test 4 (0) | 2022.07.20 |
[es] _update_by_query (0) | 2022.07.20 |
Comments