Index delete leaves translog folders

Hi, I am using the create and delete index functionality for index
versioning while keeping aliases for current ones.
The problem I am having is that after "delete" there are still some
folders left in the folder, you could try the following to replicate:

curl -XPUT 'http://localhost:9200/twitter1/'
curl -XPUT 'http://localhost:9200/twitter2/'
curl -XDELETE 'http://localhost:9200/twitter1/'
curl -XDELETE 'http://localhost:9200/twitter2/'

and on your ES data folder you'd see:

./nodes/0/_state
./nodes/0/_state/shards-10
./nodes/0/_state/metadata-10
./nodes/0/indices
./nodes/0/indices/twitter2
./nodes/0/indices/twitter2/0
./nodes/0/indices/twitter2/0/translog
./nodes/0/indices/twitter1
./nodes/0/indices/twitter1/0
./nodes/0/indices/twitter1/0/translog
./nodes/0/node.lock

Is that behavior expected? I guess it should remove every trace of the
index "twitter1" and "twitter2" if I called "delete".

Thanks,
Sebastian.

Yes, it should, I have fixed a related problem in master, and will fix this
as well.

-shay.banon

On Wed, Nov 3, 2010 at 7:07 AM, Sebastian sgavarini@gmail.com wrote:

Hi, I am using the create and delete index functionality for index
versioning while keeping aliases for current ones.
The problem I am having is that after "delete" there are still some
folders left in the folder, you could try the following to replicate:

curl -XPUT 'http://localhost:9200/twitter1/'
curl -XPUT 'http://localhost:9200/twitter2/'
curl -XDELETE 'http://localhost:9200/twitter1/'
curl -XDELETE 'http://localhost:9200/twitter2/'

and on your ES data folder you'd see:

./nodes/0/_state
./nodes/0/_state/shards-10
./nodes/0/_state/metadata-10
./nodes/0/indices
./nodes/0/indices/twitter2
./nodes/0/indices/twitter2/0
./nodes/0/indices/twitter2/0/translog
./nodes/0/indices/twitter1
./nodes/0/indices/twitter1/0
./nodes/0/indices/twitter1/0/translog
./nodes/0/node.lock

Is that behavior expected? I guess it should remove every trace of the
index "twitter1" and "twitter2" if I called "delete".

Thanks,
Sebastian.