elasticsearch/elasticsearch — Issue #1483: Shared Filesystem Gateway periodic snapshot cannot be successfully suspended
Author: tallpsmith
Created: 2011-11-22 00:31:53+00:00
State: open

As discussed on the mailing list:

http://elasticsearch-users.115913.n3.nabble.com/Gateway-Snapshot-settings-amp-unexpected-behaviour-maybe-bug-td3514819.html

We have a consistently reproducable case where attempting to suspend the periodic snapshotting fails.

Our test path goes something like this:

# cd into the location of the gateway snapshot location
$ cd /index/esgateway/qa4/indices

# do a recursive directory listing and save the output
$ ls -lR > /tmp/before-any-changes

# suspend the gateway snapshotting by setting the interval to 0
$ echo '{"index":{"gateway":{"snapshot_interval":0}}}' | \
curl -XPOST http://qa4es1.qa.acx:9200/snaptest/snaptype -d @-

# Do another recursive directory copy of the snapshot location, we're expecting nothing to have changed here, because we haven't modified the index, yet it looks like it snapshots at the time of resetting the snapshot to 0
$ ls -lR > /tmp/after-disable-gateway-via-zero-snapshot-interval

# now actually modify the index
$ curl -XPOST http://qa4es1.qa.acx:9200/snaptest/snaptype -d @testdata
(testdata is a file containing a json index update)

# Take another text copy of what the directory looks like, it really shouldn't have been touched right?
$ ls -lR > /tmp/after-post-with-index-modification

# Alas, we see differences...
$ diff /tmp/after-disable-gateway-via-zero-snapshot-interval \
/tmp/after-post-with-index-modification
... [several differences reported] ...

We were expecting no differences at this point, up until we
reset the regular snapshot interval ... perhaps we are missing
something there though.