If you can post a recreation I can have a look. Usually its better to close the client before the node itself (just to create less ripples).
On Tuesday, April 5, 2011 at 7:12 PM, zohar wrote:
Hi
As part of put tests we try and stop elastic , delete the index dir , and
re start later - just so we start with a clean slate.
we do :
if (node != null) {
node.close();
}
if (elasticSearchClient != null) {
elasticSearchClient.close();
}
however occasionally when the call returns the files are still locked and we
fail to delete the directory.
Is there a better way?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.