# WARN while updating index settings

**URL:** <https://discuss.elastic.co/t/warn-while-updating-index-settings/16381>\
**Category:** Elasticsearch\
**Created:** [March 14, 2014, 4:26pm UTC](https://discuss.elastic.co/t/warn-while-updating-index-settings/16381 "2014-03-14T16:26:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomasz\_Romanczuk](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@Tomasz\_Romanczuk](https://discuss.elastic.co/u/Tomasz_Romanczuk)\
**Post date:** [March 14, 2014, 4:26pm UTC](https://discuss.elastic.co/t/warn-while-updating-index-settings/16381/1 "2014-03-14T16:26:58Z")

</div>

Hi,  
I'm using percolate index to store some queires. After node start (used  
java API) I try to update index settings:

client.admin().indices().prepareClose(INDEX\_NAME).execute().actionGet();  
UpdateSettingsRequestBuilder builder =  
client.admin().indices().prepareUpdateSettings();  
builder.setIndices(INDEX\_NAME);  
builder.setSettings(createSettings());  
builder.execute().actionGet();

client.admin().indices().prepareOpen(INDEX\_NAME).execute().actionGet();

Everything works fine, changes are applied, but in my log I can see warning:

2014-03-14 16:55:40,896 WARN [org.elasticsearch.index.indexing]  
[alerts\_node] [\_percolator][0] post listener  
[org.elasticsearch.index.percolator.PercolatorService$RealTimePercolat  
orOperationListener@dd0099] failed  
org.elasticsearch.ElasticSearchException: failed to parse query [299]  
at  
org.elasticsearch.index.percolator.PercolatorExecutor.parseQuery(PercolatorExecutor.java:361)  
at  
org.elasticsearch.index.percolator.PercolatorExecutor.addQuery(PercolatorExecutor.java:332)  
at  
org.elasticsearch.index.percolator.PercolatorService$RealTimePercolatorOperationListener.postIndexUnderLock(PercolatorService.java:295)  
at  
org.elasticsearch.index.indexing.ShardIndexingService.postIndexUnderLock(ShardIndexingService.java:140)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.innerIndex(RobinEngine.java:594)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.index(RobinEngine.java:492)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.performRecoveryOperation(InternalIndexShard.java:703)  
at  
org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:224)  
at  
org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:174)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:619)  
Caused by: org.apache.lucene.store.AlreadyClosedException: this Analyzer is  
closed  
at  
org.apache.lucene.analysis.Analyzer$ReuseStrategy.getStoredValue(Analyzer.java:368)  
at  
org.apache.lucene.analysis.Analyzer$GlobalReuseStrategy.getReusableComponents(Analyzer.java:410)  
at  
org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:173)  
at  
org.elasticsearch.index.search.MatchQuery.parse(MatchQuery.java:203)  
at  
org.elasticsearch.index.query.MatchQueryParser.parse(MatchQueryParser.java:163)  
at  
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
at  
org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:107)  
at  
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
at  
org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:107)  
at  
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
at  
org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)  
at  
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
at  
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:284)  
at  
org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:255)  
at  
org.elasticsearch.index.percolator.PercolatorExecutor.parseQuery(PercolatorExecutor.java:350)

What is the reason of this WARN and how can I avoid it?

Thanks for any help!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/148a02a9-4e20-442c-9bc8-0037283aa11d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/148a02a9-4e20-442c-9bc8-0037283aa11d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [March 14, 2014, 6:26pm UTC](https://discuss.elastic.co/t/warn-while-updating-index-settings/16381/2 "2014-03-14T18:26:52Z")

</div>

Can you perhaps have a simple reproducible sequence with real data. I'm  
trying to reproduce but I'm not sure what settings you are changing and  
what data did you have prior to closing the index.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/41b28de0-767c-42bb-b84b-b19da5acd982%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/41b28de0-767c-42bb-b84b-b19da5acd982%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Tomasz\_Romanczuk](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@Tomasz\_Romanczuk](https://discuss.elastic.co/u/Tomasz_Romanczuk)\
**Post date:** [March 17, 2014, 9:21am UTC](https://discuss.elastic.co/t/warn-while-updating-index-settings/16381/3 "2014-03-17T09:21:10Z")

</div>

W dniu piątek, 14 marca 2014 17:26:58 UTC+1 użytkownik Tomasz Romanczuk  
napisał:

> Hi,  
> I'm using percolate index to store some queires. After node start  
> (used java API) I try to update index settings:
> 
> client.admin().indices().prepareClose(INDEX\_NAME).execute().actionGet();  
> UpdateSettingsRequestBuilder builder =  
> client.admin().indices().prepareUpdateSettings();  
> builder.setIndices(INDEX\_NAME);  
> builder.setSettings(createSettings());  
> builder.execute().actionGet();
> 
> client.admin().indices().prepareOpen(INDEX\_NAME).execute().actionGet();
> 
> Everything works fine, changes are applied, but in my log I can see  
> warning:
> 
> 2014-03-14 16:55:40,896 WARN [org.elasticsearch.index.indexing]  
> [alerts\_node] [\_percolator][0] post listener  
> [org.elasticsearch.index.percolator.PercolatorService$RealTimePercolat  
> orOperationListener@dd0099] failed  
> org.elasticsearch.ElasticSearchException: failed to parse query [299]  
> at  
> org.elasticsearch.index.percolator.PercolatorExecutor.parseQuery(PercolatorExecutor.java:361)  
> at  
> org.elasticsearch.index.percolator.PercolatorExecutor.addQuery(PercolatorExecutor.java:332)  
> at  
> org.elasticsearch.index.percolator.PercolatorService$RealTimePercolatorOperationListener.postIndexUnderLock(PercolatorService.java:295)  
> at  
> org.elasticsearch.index.indexing.ShardIndexingService.postIndexUnderLock(ShardIndexingService.java:140)  
> at  
> org.elasticsearch.index.engine.robin.RobinEngine.innerIndex(RobinEngine.java:594)  
> at  
> org.elasticsearch.index.engine.robin.RobinEngine.index(RobinEngine.java:492)  
> at  
> org.elasticsearch.index.shard.service.InternalIndexShard.performRecoveryOperation(InternalIndexShard.java:703)  
> at  
> org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:224)  
> at  
> org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:174)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:619)  
> Caused by: org.apache.lucene.store.AlreadyClosedException: this Analyzer  
> is closed  
> at  
> org.apache.lucene.analysis.Analyzer$ReuseStrategy.getStoredValue(Analyzer.java:368)  
> at  
> org.apache.lucene.analysis.Analyzer$GlobalReuseStrategy.getReusableComponents(Analyzer.java:410)  
> at  
> org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:173)  
> at  
> org.elasticsearch.index.search.MatchQuery.parse(MatchQuery.java:203)  
> at  
> org.elasticsearch.index.query.MatchQueryParser.parse(MatchQueryParser.java:163)  
> at  
> org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
> at  
> org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:107)  
> at  
> org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
> at  
> org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:107)  
> at  
> org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
> at  
> org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)  
> at  
> org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
> at  
> org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:284)  
> at  
> org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:255)  
> at  
> org.elasticsearch.index.percolator.PercolatorExecutor.parseQuery(PercolatorExecutor.java:350)
> 
> What is the reason of this WARN and how can I avoid it?
> 
> Thanks for any help!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/17bf659f-3457-405c-8e93-c02ca7960f65%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/17bf659f-3457-405c-8e93-c02ca7960f65%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:42am UTC](https://discuss.elastic.co/t/warn-while-updating-index-settings/16381/4 "2017-07-06T01:42:50Z")

</div>


