repository - Elasticsearch respository shows no snapshots after upgrade from 2.x to 5.x -


on rhel6 system, followed steps laid out here create repository , capture snapshot prior upgrade. verified existence of snap shot:

curl 'localhost:9200/_snapshot/_all?pretty=true' 

which gave me following result:

{ "upgrade_backup" : {
"type" : "fs",
"settings" : {
"compress" : "true",
"location" : "/tmp/elasticsearch-backup"
} } }

after upgrading elasticsearch via yum, went restore snapshot none showing up:

curl 'localhost:9200/_snapshot/_all?pretty=true' 

{ }

i checked on file system , see repository files:

ls -lrt /tmp/elasticsearch-backup 

total 24
-rw-r--r--. 1 elasticsearch elasticsearch 121 apr 7 14:42 meta-snapshot-number-one.dat
drwxr-xr-x. 3 elasticsearch elasticsearch 21 apr 7 14:42 indices
-rw-r--r--. 1 elasticsearch elasticsearch 191 apr 7 14:42 snap-snapshot-number-one.dat
-rw-r--r--. 1 elasticsearch elasticsearch 37 apr 7 14:42 index
-rw-r--r--. 1 elasticsearch elasticsearch 188 apr 7 14:51 index-0
-rw-r--r--. 1 elasticsearch elasticsearch 8 apr 7 14:51 index.latest
-rw-r--r--. 1 elasticsearch elasticsearch 29 apr 7 14:51 incompatible-snapshots

i made sure elasticsearch.yml still has "data.repo" tag, i'm not sure or determine happened, somehow snapshots vanished!


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -