In indexing a bunch of documents, I'm deleting all indexes, recreating them, and indexing.
I'm not sure exactly what in the client code is causing this, but here's the exception(s) I'm getting (in ES 2.2.0) - any clues?
C:\Production\elasticsearch\elasticsearch-2.2.0\bin>.\elasticsearch.bat
[2016-02-26 15:35:29,339][INFO ][node ] [Ivan Kragoff] version[2.2.0], pid[8632], build[8ff36d1/2016-01-27T13:32:39Z]
[2016-02-26 15:35:29,347][INFO ][node ] [Ivan Kragoff] initializing ...
[2016-02-26 15:35:29,910][INFO ][plugins ] [Ivan Kragoff] modules [lang-groovy, lang-expression], plugins [], sites []
[2016-02-26 15:35:29,948][INFO ][env ] [Ivan Kragoff] using [1] data paths, mounts [[Win7x64Pro (C:)]], net usable_space [52.1gb], net total_space [223.5gb], spins? [unknown], types [NTFS]
[2016-02-26 15:35:29,949][INFO ][env ] [Ivan Kragoff] heap size [910.5mb], compressed ordinary object pointers [true]
[2016-02-26 15:35:32,507][INFO ][node ] [Ivan Kragoff] initialized
[2016-02-26 15:35:32,508][INFO ][node ] [Ivan Kragoff] starting ...
[2016-02-26 15:35:32,845][INFO ][transport ] [Ivan Kragoff] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2016-02-26 15:35:32,855][INFO ][discovery ] [Ivan Kragoff] elasticsearch/88eryboWSUi7RUSeUjbrYg
[2016-02-26 15:35:36,886][INFO ][cluster.service ] [Ivan Kragoff] new_master {Ivan Kragoff}{88eryboWSUi7RUSeUjbrYg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-02-26 15:35:36,959][INFO ][gateway ] [Ivan Kragoff] recovered [0] indices into cluster_state
[2016-02-26 15:35:37,190][INFO ][http ] [Ivan Kragoff] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2016-02-26 15:35:37,190][INFO ][node ] [Ivan Kragoff] started
[2016-02-26 15:38:14,861][INFO ][cluster.metadata ] [Ivan Kragoff] [patdocument-2] creating index, cause [api], templates [], shards [1]/[0], mappings [patdocument]
[2016-02-26 15:38:15,158][INFO ][cluster.metadata ] [Ivan Kragoff] [patdocument-2] creating index, cause [api], templates [], shards [1]/[0], mappings [patdocument]
[2016-02-26 15:38:15,239][INFO ][cluster.routing.allocation] [Ivan Kragoff] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[patdocument-2][0]] ...]).
[2016-02-26 15:38:16,116][WARN ][threadpool ] [Ivan Kragoff] failed to run org.elasticsearch.index.shard.IndexShard$EngineRefresher@3caefd97
[patdocument-2][[patdocument-2][0]] EngineClosedException[CurrentState[CLOSED] Closed]
at org.elasticsearch.index.shard.IndexShard.engine(IndexShard.java:1399)
at org.elasticsearch.index.shard.IndexShard$EngineRefresher.run(IndexShard.java:1275)
at org.elasticsearch.threadpool.ThreadPool$LoggingRunnable.run(ThreadPool.java:640)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2016-02-26 15:38:25,373][INFO ][cluster.metadata ] [Ivan Kragoff] [patdocument-50] creating index, cause [api], templates [], shards [1]/[0], mappings [patdocument]
[2016-02-26 15:38:25,504][INFO ][cluster.metadata ] [Ivan Kragoff] [patdocument-50] creating index, cause [api], templates [], shards [1]/[0], mappings [patdocument]
[2016-02-26 15:38:25,580][INFO ][cluster.routing.allocation] [Ivan Kragoff] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[patdocument-50][0]] ...]).
[2016-02-26 15:38:26,466][WARN ][threadpool ] [Ivan Kragoff] failed to run org.elasticsearch.index.shard.IndexShard$EngineRefresher@11714ec1