-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added dangling index tests. Signed-off-by: dblock <dblock@amazon.com> * Start the cluster once. Signed-off-by: dblock <dblock@amazon.com> * Removed replicas and node2 from voting configuration. Signed-off-by: dblock <dblock@amazon.com> * Fixed POST and DELETE /_dangling/{index_uuid} returning 202. Signed-off-by: dblock <dblock@amazon.com> * Fix: link. Signed-off-by: dblock <dblock@amazon.com> * Include hidden files in preparing for vale. Signed-off-by: dblock <dblock@amazon.com> * Security is disabled in this cluster. Signed-off-by: dblock <dblock@amazon.com> --------- Signed-off-by: dblock <dblock@amazon.com>
- Loading branch information
Showing
184 changed files
with
232 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
This container contains data from a detached cluster with a `movies` index. It was created as follows. | ||
|
||
Data will be stored in [opensearch-data1](./opensearch-data1). | ||
|
||
From this `.data` directory. | ||
|
||
Create a single-node cluster (without security) and open a shell in it. | ||
|
||
``` | ||
docker run --name opensearch-single-node-cluster\ | ||
-it --entrypoint /bin/bash \ | ||
-p 9200:9200 -p 9600:9600 \ | ||
-e "discovery.type=single-node" \ | ||
--ulimit memlock=-1:-1 \ | ||
--ulimit nofile=65536:65536 \ | ||
-e DISABLE_INSTALL_DEMO_CONFIG=true \ | ||
-e DISABLE_SECURITY_PLUGIN=true \ | ||
-v $(pwd)/opensearch-data1:/usr/share/opensearch/data \ | ||
opensearchproject/opensearch:latest | ||
``` | ||
|
||
Start the service. | ||
|
||
``` | ||
./opensearch-docker-entrypoint.sh | ||
``` | ||
|
||
From another shell, add data. | ||
|
||
``` | ||
curl -X POST http://localhost:9200/movies/_doc --json '{"director":"Bennett Miller","title":"The Cruise","year":1998}' | ||
{"_index":"movies","_id":"XBDMTpMBjBlaZgUqAkGm","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1} | ||
``` | ||
|
||
Remove replicas. | ||
|
||
``` | ||
curl -X PUT http://localhost:9200/movies/_settings --json '{"index.number_of_replicas":0}' | ||
{"acknowledged":true} | ||
``` | ||
|
||
Stop the service with Ctrl+C. | ||
|
||
Detach cluster. | ||
|
||
``` | ||
./bin/opensearch-node detach-cluster | ||
Confirm [y/N] y | ||
Node was successfully detached from the cluster | ||
``` | ||
|
||
The cluster in [docker-compose](docker-compose.yml) uses this data. Start it. | ||
|
||
``` | ||
docker compose up | ||
``` | ||
|
||
After the service starts the `movies` index is dangling. | ||
|
||
To make it usable in tests we need to turn it to a single node cluster. | ||
|
||
Remove replicas. | ||
|
||
``` | ||
curl -X PUT http://localhost:9200/_settings --json '{"index.number_of_replicas":0}' | ||
{"acknowledged":true} | ||
``` | ||
|
||
Remove node2 from voting. | ||
|
||
``` | ||
curl -X POST http://localhost:9200/_cluster/voting_config_exclusions?node_names=opensearch-node2 | ||
{"acknowledged":true} | ||
``` | ||
|
||
Stop the cluster. | ||
|
||
Remove lock files, those will cause an "Underlying file changed by an external force" error when copied to the docker container. | ||
|
||
``` | ||
find . -name *.lock | xargs rm | ||
``` | ||
|
||
Now you can run the [single-node docker-compose](../docker-compose.yml) in the folder above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: '3' | ||
services: | ||
opensearch-node1: | ||
image: ${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject}/opensearch:${OPENSEARCH_VERSION:-latest}${OPENSEARCH_DOCKER_REF} | ||
environment: | ||
- DISABLE_INSTALL_DEMO_CONFIG=true | ||
- DISABLE_SECURITY_PLUGIN=true | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!} | ||
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS} | ||
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2 | ||
- cluster.name=opensearch-cluster | ||
- discovery.seed_hosts=opensearch-node1,opensearch-node2 | ||
- node.name=opensearch-node1 | ||
volumes: | ||
- ./opensearch-data1:/usr/share/opensearch/data | ||
ports: | ||
- 9200:9200 | ||
- 9600:9600 | ||
networks: | ||
- opensearch-net | ||
opensearch-node2: | ||
image: ${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject}/opensearch:${OPENSEARCH_VERSION:-latest}${OPENSEARCH_DOCKER_REF} | ||
environment: | ||
- DISABLE_INSTALL_DEMO_CONFIG=true | ||
- DISABLE_SECURITY_PLUGIN=true | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!} | ||
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS} | ||
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2 | ||
- cluster.name=opensearch-cluster | ||
- discovery.seed_hosts=opensearch-node1,opensearch-node2 | ||
- node.name=opensearch-node2 | ||
volumes: | ||
- opensearch-data2:/usr/share/opensearch/data | ||
networks: | ||
- opensearch-net | ||
|
||
volumes: | ||
opensearch-data1: {} | ||
opensearch-data2: {} | ||
|
||
networks: | ||
opensearch-net: {} |
1 change: 1 addition & 0 deletions
1
tests/dangling/.data/opensearch-data1/batch_metrics_enabled.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
false |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+85 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/_state/_2p_Lucene912_0.doc
Binary file not shown.
Binary file added
BIN
+104 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/_state/_2p_Lucene912_0.psm
Binary file not shown.
Binary file added
BIN
+218 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/_state/_2p_Lucene912_0.tim
Binary file not shown.
Binary file added
BIN
+74 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/_state/_2p_Lucene912_0.tip
Binary file not shown.
Binary file added
BIN
+269 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/_state/_2p_Lucene912_0.tmd
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+180 Bytes
...ta/opensearch-data1/nodes/0/indices/-QraBKjKRAyJE-LVG03EVg/0/_state/retention-leases-6.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/-QraBKjKRAyJE-LVG03EVg/0/_state/state-5.st
Binary file not shown.
Binary file added
BIN
+208 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/-QraBKjKRAyJE-LVG03EVg/0/index/segments_4
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/-QraBKjKRAyJE-LVG03EVg/0/translog/translog-7.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/-QraBKjKRAyJE-LVG03EVg/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+768 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/-QraBKjKRAyJE-LVG03EVg/_state/state-13.st
Binary file not shown.
Binary file added
BIN
+182 Bytes
...ta/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/_state/retention-leases-1.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/_state/state-0.st
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_0.cfe
Binary file not shown.
Binary file added
BIN
+88.4 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_0.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_0.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_1.cfe
Binary file not shown.
Binary file added
BIN
+9.22 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_1.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_1.si
Binary file not shown.
Binary file added
BIN
+1.76 KB
...s/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_1_1.fnm
Binary file not shown.
Binary file added
BIN
+75 Bytes
....data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_1_1_Lucene90_0.dvd
Binary file not shown.
Binary file added
BIN
+160 Bytes
....data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_1_1_Lucene90_0.dvm
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_2.cfe
Binary file not shown.
Binary file added
BIN
+9.22 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_2.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_2.si
Binary file not shown.
Binary file added
BIN
+1.76 KB
...s/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_2_1.fnm
Binary file not shown.
Binary file added
BIN
+75 Bytes
....data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_2_1_Lucene90_0.dvd
Binary file not shown.
Binary file added
BIN
+160 Bytes
....data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_2_1_Lucene90_0.dvm
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_3.cfe
Binary file not shown.
Binary file added
BIN
+9.22 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_3.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/_3.si
Binary file not shown.
Binary file added
BIN
+675 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/index/segments_3
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/translog/translog-3.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+862 Bytes
.../dangling/.data/opensearch-data1/nodes/0/indices/7NIf6VBiSMCH7TWyPr6hgQ/_state/state-3.st
Binary file not shown.
Binary file added
BIN
+72 Bytes
...ta/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/_state/retention-leases-0.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/_state/state-0.st
Binary file not shown.
Binary file added
BIN
+442 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/index/_0.cfe
Binary file not shown.
Binary file added
BIN
+3.01 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/index/_0.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/index/_0.si
Binary file not shown.
Binary file added
BIN
+314 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/index/segments_3
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/translog/translog-3.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+701 Bytes
.../dangling/.data/opensearch-data1/nodes/0/indices/OknnOhCGTamE8WZRCobe4A/_state/state-1.st
Binary file not shown.
Binary file added
BIN
+183 Bytes
...ta/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/_state/retention-leases-7.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/_state/state-4.st
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_18.cfe
Binary file not shown.
Binary file added
BIN
+4.91 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_18.cfs
Binary file not shown.
Binary file added
BIN
+338 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_18.si
Binary file not shown.
Binary file added
BIN
+158 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.fdm
Binary file not shown.
Binary file added
BIN
+31.1 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.fdt
Binary file not shown.
Binary file added
BIN
+73 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.fdx
Binary file not shown.
Binary file added
BIN
+2.72 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.fnm
Binary file not shown.
Binary file added
BIN
+2.78 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.kdd
Binary file not shown.
Binary file added
BIN
+81 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.kdi
Binary file not shown.
Binary file added
BIN
+194 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.kdm
Binary file not shown.
Binary file added
BIN
+5.89 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.nvd
Binary file not shown.
Binary file added
BIN
+319 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.nvm
Binary file not shown.
Binary file added
BIN
+589 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19.si
Binary file not shown.
Binary file added
BIN
+2.72 KB
.../dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_2.fnm
Binary file not shown.
Binary file added
BIN
+989 Bytes
...data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_2_Lucene90_0.dvd
Binary file not shown.
Binary file added
BIN
+160 Bytes
...data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_2_Lucene90_0.dvm
Binary file not shown.
Binary file added
BIN
+21.8 KB
.../.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene90_0.dvd
Binary file not shown.
Binary file added
BIN
+2.07 KB
.../.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene90_0.dvm
Binary file not shown.
Binary file added
BIN
+7.13 KB
....data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene912_0.doc
Binary file not shown.
Binary file added
BIN
+2.17 KB
....data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene912_0.pos
Binary file not shown.
Binary file added
BIN
+112 Bytes
....data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene912_0.psm
Binary file not shown.
Binary file added
BIN
+50.2 KB
....data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene912_0.tim
Binary file not shown.
Binary file added
BIN
+450 Bytes
....data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene912_0.tip
Binary file not shown.
Binary file added
BIN
+1.17 KB
....data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_19_Lucene912_0.tmd
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1a.cfe
Binary file not shown.
Binary file added
BIN
+9.22 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1a.cfs
Binary file not shown.
Binary file added
BIN
+338 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1a.si
Binary file not shown.
Binary file added
BIN
+1.76 KB
.../dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1a_1.fnm
Binary file not shown.
Binary file added
BIN
+75 Bytes
...data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1a_1_Lucene90_0.dvd
Binary file not shown.
Binary file added
BIN
+160 Bytes
...data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1a_1_Lucene90_0.dvm
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1b.cfe
Binary file not shown.
Binary file added
BIN
+9.22 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1b.cfs
Binary file not shown.
Binary file added
BIN
+338 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/_1b.si
Binary file not shown.
Binary file added
BIN
+693 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/index/segments_c
Binary file not shown.
Binary file added
BIN
+55 Bytes
....data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/translog/translog-12.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+865 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/PhgNgHtKQwyUpgIvYNnuQw/_state/state-12.st
Binary file not shown.
Binary file added
BIN
+72 Bytes
...ta/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/_state/retention-leases-0.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/_state/state-1.st
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/index/_0.cfe
Binary file not shown.
Binary file added
BIN
+11.8 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/index/_0.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/index/_0.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/index/_1.cfe
Binary file not shown.
Binary file added
BIN
+11.8 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/index/_1.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/index/_1.si
Binary file not shown.
Binary file added
BIN
+397 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/index/segments_3
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/translog/translog-4.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+743 Bytes
.../dangling/.data/opensearch-data1/nodes/0/indices/_Tniu97iTJmurS35V4rpsA/_state/state-4.st
Binary file not shown.
Binary file added
BIN
+180 Bytes
...ta/opensearch-data1/nodes/0/indices/_bJfm1BsRdG-N91LRxI1Vg/0/_state/retention-leases-1.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/_bJfm1BsRdG-N91LRxI1Vg/0/_state/state-0.st
Binary file not shown.
Binary file added
BIN
+208 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/_bJfm1BsRdG-N91LRxI1Vg/0/index/segments_2
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/_bJfm1BsRdG-N91LRxI1Vg/0/translog/translog-2.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/_bJfm1BsRdG-N91LRxI1Vg/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+765 Bytes
.../dangling/.data/opensearch-data1/nodes/0/indices/_bJfm1BsRdG-N91LRxI1Vg/_state/state-1.st
Binary file not shown.
Binary file added
BIN
+180 Bytes
...ta/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/_state/retention-leases-1.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/_state/state-1.st
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_0.cfe
Binary file not shown.
Binary file added
BIN
+10.1 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_0.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_0.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_1.cfe
Binary file not shown.
Binary file added
BIN
+27 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_1.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_1.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_2.cfe
Binary file not shown.
Binary file added
BIN
+4.46 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_2.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_2.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_3.cfe
Binary file not shown.
Binary file added
BIN
+6.88 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_3.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_3.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_4.cfe
Binary file not shown.
Binary file added
BIN
+3.48 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_4.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_4.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_5.cfe
Binary file not shown.
Binary file added
BIN
+4.21 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_5.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_5.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_6.cfe
Binary file not shown.
Binary file added
BIN
+3.4 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_6.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_6.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_7.cfe
Binary file not shown.
Binary file added
BIN
+4.39 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_7.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_7.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_8.cfe
Binary file not shown.
Binary file added
BIN
+4.39 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_8.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_8.si
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_9.cfe
Binary file not shown.
Binary file added
BIN
+4.79 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_9.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/_9.si
Binary file not shown.
Binary file added
BIN
+1.04 KB
...dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/index/segments_3
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/translog/translog-4.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+707 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/kzPC9f32Q3SshHQWnYNS8Q/_state/state-13.st
Binary file not shown.
Binary file added
BIN
+72 Bytes
...ta/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/_state/retention-leases-0.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/_state/state-0.st
Binary file not shown.
Binary file added
BIN
+517 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/index/_0.cfe
Binary file not shown.
Binary file added
BIN
+3.94 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/index/_0.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/index/_0.si
Binary file not shown.
Binary file added
BIN
+314 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/index/segments_3
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/translog/translog-3.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+594 Bytes
.../dangling/.data/opensearch-data1/nodes/0/indices/p6tliBznQO-FzTdslShrwA/_state/state-3.st
Binary file not shown.
Binary file added
BIN
+180 Bytes
...ta/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/_state/retention-leases-7.st
Binary file not shown.
Binary file added
BIN
+125 Bytes
...angling/.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/_state/state-5.st
Binary file not shown.
Binary file added
BIN
+442 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/index/_0.cfe
Binary file not shown.
Binary file added
BIN
+3.01 KB
tests/dangling/.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/index/_0.cfs
Binary file not shown.
Binary file added
BIN
+335 Bytes
tests/dangling/.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/index/_0.si
Binary file not shown.
Binary file added
BIN
+314 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/index/segments_4
Binary file not shown.
Binary file added
BIN
+55 Bytes
.../.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/translog/translog-7.tlog
Binary file not shown.
Binary file added
BIN
+88 Bytes
...ing/.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/0/translog/translog.ckp
Binary file not shown.
Binary file added
BIN
+704 Bytes
...dangling/.data/opensearch-data1/nodes/0/indices/zV2wGe-cQs28OclYDa2RRQ/_state/state-13.st
Binary file not shown.
1 change: 1 addition & 0 deletions
1
tests/dangling/.data/opensearch-data1/performance_analyzer_enabled.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
false |
1 change: 1 addition & 0 deletions
1
tests/dangling/.data/opensearch-data1/thread_contention_monitoring_enabled.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ARG OPENSEARCH_DOCKER_HUB_PROJECT | ||
ARG OPENSEARCH_VERSION | ||
ARG OPENSEARCH_DOCKER_REF | ||
|
||
FROM ${OPENSEARCH_DOCKER_HUB_PROJECT}/opensearch:${OPENSEARCH_VERSION}${OPENSEARCH_DOCKER_REF} | ||
|
||
COPY --chown=1000:1000 .data/opensearch-data1 /usr/share/opensearch/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test dangling indexes. | ||
distributions: | ||
excluded: | ||
- amazon-managed | ||
- amazon-serverless | ||
chapters: | ||
- synopsis: Get dangling indexes. | ||
path: /_dangling | ||
method: GET | ||
response: | ||
status: 200 | ||
payload: | ||
dangling_indices: | ||
- index_name: .opensearch-observability | ||
- index_name: movies | ||
- synopsis: Import a dangling index. | ||
path: /_dangling/{index_uuid} | ||
method: POST | ||
parameters: | ||
index_uuid: p6tliBznQO-FzTdslShrwA # movies | ||
accept_data_loss: true | ||
response: | ||
status: 202 | ||
- synopsis: Delete a dangling index. | ||
path: /_dangling/{index_uuid} | ||
method: DELETE | ||
parameters: | ||
index_uuid: _bJfm1BsRdG-N91LRxI1Vg # .opensearch-observability | ||
accept_data_loss: true | ||
response: | ||
status: 202 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '3' | ||
|
||
services: | ||
opensearch-cluster: | ||
build: | ||
context: . | ||
args: | ||
- OPENSEARCH_DOCKER_HUB_PROJECT=${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject} | ||
- OPENSEARCH_DOCKER_REF=${OPENSEARCH_DOCKER_REF} | ||
- OPENSEARCH_VERSION=${OPENSEARCH_VERSION:-latest} | ||
ports: | ||
- 9200:9200 | ||
- 9600:9600 | ||
environment: | ||
- DISABLE_INSTALL_DEMO_CONFIG=true | ||
- DISABLE_SECURITY_PLUGIN=true | ||
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS} | ||
- discovery.type=single-node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3' | ||
|
||
services: | ||
opensearch-cluster: | ||
image: ${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject}/opensearch:${OPENSEARCH_VERSION:-latest}${OPENSEARCH_DOCKER_REF} | ||
ports: | ||
- 9200:9200 | ||
- 9600:9600 | ||
environment: | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!} | ||
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS} | ||
- discovery.type=single-node |