Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31756827
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
EBernhardson
Apr 14 2020, 9:09 PM
2020-04-14 21:09:38 (UTC+0)
Size
698 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
ebernhardson@elastic1050:~$ cat test.py
import elasticsearch
import sys
es = elasticsearch.Elasticsearch('http://search.svc.eqiad.wmnet:9200')
for index in sys.stdin:
index = index.strip()
aliases = es.indices.get_alias(index)
if not aliases:
print("Deleting index with no aliases: {}".format(index))
es.indices.delete(index)
else:
print("WARNING: {} has live aliases: {}".format(index, aliases))
ebernhardson@elastic1050:~$ echo enwiki_content_1582848800 | /srv/deployment/search/mjolnir/deploy/venv/bin/python3 test.py
WARNING: enwiki_content_1582848800 has live aliases: {'enwiki_content_1582848800': {'aliases': {'enwiki': {}, 'enwiki_content': {}}}}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8382490
Default Alt Text
raw.txt (698 B)
Attached To
Mode
P10980 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment