# ES consistently giving not able to parse \_ttl exception

**URL:** <https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158>\
**Category:** Elasticsearch\
**Created:** [August 10, 2013, 2:43am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158 "2013-08-10T02:43:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 10, 2013, 2:43am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/1 "2013-08-10T02:43:04Z")

</div>

Hi,

We are consistently getting exception - I dont know why is it not able to  
parse \_ttl.

[2013-08-09 01:18:22,929][DEBUG][action.index] [search5]  
[internal\_index\_hor][1], node[MwQNQpm8Q7GqPBSWaC2rRQ], [P], s[STARTED]:  
Failed to execute [index

{[internal\_index\_hor][internal\_index][relationship\_namespace],  
source[{"refresh\_exact":"true","refresh":"true"}]}]

org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
[\_ttl]

```
    at 

```

org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:396)

```
    at 

```

org.elasticsearch.index.mapper.internal.TTLFieldMapper.postParse(TTLFieldMapper.java:167)

```
    at 

```

org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:524)

```
    at 

```

org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:450)

```
    at 

```

org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:327)

```
    at 

```

org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:203)

```
    at 

```

org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.

java:532)

```
    at 

```

org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:430)

```
    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:662)

```

Caused by: org.elasticsearch.index.AlreadyExpiredException: already expired  
[internal\_index\_hor]/[internal\_index]/[relationship\_namespace] due to  
expire at [13

75991302672] and was processed at [1375991302928]

```
    at 

```

org.elasticsearch.index.mapper.internal.TTLFieldMapper.innerParseCreateField(TTLFieldMapper.java:205)

```
    at 

```

org.elasticsearch.index.mapper.core.NumberFieldMapper.parseCreateField(NumberFieldMapper.java:167)

```
    at 

```

org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:385)

```
    ... 10 more

```

{

- state: open
- settings: {
  - index.analysis.analyzer.my\_analyzer.tokenizer: keyword
  - index.analysis.analyzer.my\_analyzer.filter: lowercase
  - index.number\_of\_shards: 5
  - index.number\_of\_replicas: 2
  - index.version.created: 900199
  - index.refresh\_interval: 1s

- }
- mappings: {
  - internal\_index: {
    - \_ttl: {
      - enabled: true
      - default: 1000

    - }
    - properties: {
      - index\_version\_qual: {
        - include\_in\_all: false
        - store: true
        - analyzer: my\_analyzer
        - type: string

      - }
      - refresh\_qual: {
        - include\_in\_all: false
        - store: true
        - analyzer: my\_analyzer
        - type: string

      - }
      - entity\_version: {
        - include\_in\_all: false
        - store: true
        - type: long

      - }
      - index\_version: {
        - include\_in\_all: false
        - store: true
        - type: long

      - }
      - refresh\_exact: {
        - type: string

      - }
      - entity\_version\_qual: {
        - include\_in\_all: false
        - store: true
        - analyzer: my\_analyzer
        - type: string

      - }
      - refresh: {
        - include\_in\_all: false
        - store: true
        - analyzer: my\_analyzer
        - type: string

      - }

    - }

  - }

- }
- aliases: [
  - internal\_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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Benjamin\_Deveze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_deveze/32/1577_2.png) [@Benjamin\_Deveze](https://discuss.elastic.co/u/Benjamin_Deveze)\
**Post date:** [August 10, 2013, 11:06am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/2 "2013-08-10T11:06:04Z")

</div>

Hi Arjit,

from this message:

Caused by: org.elasticsearch.index.AlreadyExpiredException: already expired  
[internal\_index\_hor]/[internal\_index]/[relationship\_namespace] due to  
expire at [13

75991302672] and was processed at [1375991302928]

it seems like you are trying to index an already expired document.

This seems to be explained here by your default ttl value set to "1000"  
which is in milliseconds and stands for 1s.

Hope it helps

On Saturday, August 10, 2013 4:43:04 AM UTC+2, Arjit Gupta wrote:

> Hi,
> 
> We are consistently getting exception - I dont know why is it not able to  
> parse \_ttl.
> 
> [2013-08-09 01:18:22,929][DEBUG][action.index] [search5]  
> [internal\_index\_hor][1], node[MwQNQpm8Q7GqPBSWaC2rRQ], [P], s[STARTED]:  
> Failed to execute [index
> 
> {[internal\_index\_hor][internal\_index][relationship\_namespace],  
> source[{"refresh\_exact":"true","refresh":"true"}]}]
> 
> org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
> [\_ttl]
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:396)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.mapper.internal.TTLFieldMapper.postParse(TTLFieldMapper.java:167)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:524)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:450)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:327)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:203)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.
> 
> java:532)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:430)
> 
> ```
> 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:662)
> 
> ```
> 
> Caused by: org.elasticsearch.index.AlreadyExpiredException: already  
> expired [internal\_index\_hor]/[internal\_index]/[relationship\_namespace] due  
> to expire at [13
> 
> 75991302672] and was processed at [1375991302928]
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.mapper.internal.TTLFieldMapper.innerParseCreateField(TTLFieldMapper.java:205)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.mapper.core.NumberFieldMapper.parseCreateField(NumberFieldMapper.java:167)
> 
> ```
> at 
> 
> ```
> 
> org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:385)
> 
> ```
> ... 10 more
> 
> ```
> 
> {
> 
> - state: open
> - settings: {
> - index.analysis.analyzer.my\_analyzer.tokenizer: keyword
> - index.analysis.analyzer.my\_analyzer.filter: lowercase
> - index.number\_of\_shards: 5
> - index.number\_of\_replicas: 2
> - index.version.created: 900199
> - index.refresh\_interval: 1s
> 
> - }
> - mappings: {
> - internal\_index: {
> - \_ttl: {
> - enabled: true
> - default: 1000
> 
> - }
> - properties: {
> - index\_version\_qual: {
> - include\_in\_all: false
> - store: true
> - analyzer: my\_analyzer
> - type: string
> 
> - }
> - refresh\_qual: {
> - include\_in\_all: false
> - store: true
> - analyzer: my\_analyzer
> - type: string
> 
> - }
> - entity\_version: {
> - include\_in\_all: false
> - store: true
> - type: long
> 
> - }
> - index\_version: {
> - include\_in\_all: false
> - store: true
> - type: long
> 
> - }
> - refresh\_exact: {
> - type: string
> 
> - }
> - entity\_version\_qual: {
> - include\_in\_all: false
> - store: true
> - analyzer: my\_analyzer
> - type: string
> 
> - }
> - refresh: {
> - include\_in\_all: false
> - store: true
> - analyzer: my\_analyzer
> - type: string
> 
> - }
> 
> - }
> 
> - }
> 
> - }
> - aliases: [
> - internal\_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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 12, 2013, 10:36am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/3 "2013-08-12T10:36:51Z")

</div>

Thanks a lot.  
But I cant index an expired document ?  
Once a document is expired I cant index the same document ?

Thanks ,  
Arjit

On Sat, Aug 10, 2013 at 4:36 PM, Benjamin Devèze  
[benjamin.deveze@gmail.com](mailto:benjamin.deveze@gmail.com)wrote:

> Hi Arjit,
> 
> from this message:
> 
> Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> due to expire at [13
> 
> 75991302672] and was processed at [1375991302928]
> 
> it seems like you are trying to index an already expired document.
> 
> This seems to be explained here by your default ttl value set to "1000"  
> which is in milliseconds and stands for 1s.
> 
> Hope it helps
> 
> On Saturday, August 10, 2013 4:43:04 AM UTC+2, Arjit Gupta wrote:
> 
> > Hi,
> > 
> > We are consistently getting exception - I dont know why is it not able to  
> > parse \_ttl.
> > 
> > [2013-08-09 01:18:22,929][DEBUG][action.\*\*index] [search5]  
> > [internal\_index\_hor][1], node[MwQNQpm8Q7GqPBSWaC2rRQ], [P], s[STARTED]:  
> > Failed to execute [index
> > 
> > {[internal\_index\_hor][\*\*internal\_index][relationship\_**namespace],  
> > source[{"refresh\_exact":"true"**,"refresh":"true"}]}]
> > 
> > org.elasticsearch.index.\*\*mapper.MapperParsingException: failed to parse  
> > [\_ttl]
> > 
> > ```
> > at org.elasticsearch.index. **mapper.core.**
> > 
> > ```
> > 
> > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:396)
> > 
> > ```
> > at org.elasticsearch.index. **mapper.internal.**
> > 
> > ```
> > 
> > TTLFieldMapper.postParse(\*\*TTLFieldMapper.java:167)
> > 
> > ```
> > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > 
> > ```
> > 
> > DocumentMapper.java:524)
> > 
> > ```
> > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > 
> > ```
> > 
> > DocumentMapper.java:450)
> > 
> > ```
> > at org.elasticsearch.index.shard. **service.InternalIndexShard.**
> > 
> > ```
> > 
> > prepareIndex(\*\*InternalIndexShard.java:327)
> > 
> > ```
> > at org.elasticsearch.action. **index.TransportIndexAction.**
> > 
> > ```
> > 
> > shardOperationOnPrimary(\*\*TransportIndexAction.java:203)
> > 
> > ```
> > at org.elasticsearch.action. **support.replication.**
> > 
> > ```
> > 
> > TransportShardReplicationOpera\*\*tionAction$ **AsyncShardOperationAction.**  
> > performOnPrimary( **TransportShardReplicationOpera** tionAction.
> > 
> > java:532)
> > 
> > ```
> > at org.elasticsearch.action. **support.replication.**
> > 
> > ```
> > 
> > TransportShardReplicationOpera\*\*tionAction$\*\*AsyncShardOperationAction$1.  
> > \*\*run( **TransportShardReplicationOpera** tionAction.java:430)
> > 
> > ```
> > 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:662)
> > 
> > ```
> > 
> > Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> > expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> > due to expire at [13
> > 
> > 75991302672] and was processed at [1375991302928]
> > 
> > ```
> > at org.elasticsearch.index. **mapper.internal.** TTLFieldMapper.**
> > 
> > ```
> > 
> > innerParseCreateField(\*\*TTLFieldMapper.java:205)
> > 
> > ```
> > at org.elasticsearch.index. **mapper.core.NumberFieldMapper.**
> > 
> > ```
> > 
> > parseCreateField(\*\*NumberFieldMapper.java:167)
> > 
> > ```
> > at org.elasticsearch.index. **mapper.core.**
> > 
> > ```
> > 
> > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:385)
> > 
> > ```
> > ... 10 more
> > 
> > ```
> > 
> > {
> > 
> > - state: open
> > - settings: {
> > - index.analysis.analyzer.my\_\*\*analyzer.tokenizer: keyword
> > - index.analysis.analyzer.my\_\*\*analyzer.filter: lowercase
> > - index.number\_of\_shards: 5
> > - index.number\_of\_replicas: 2
> > - index.version.created: 900199
> > - index.refresh\_interval: 1s
> > 
> > - }
> > - mappings: {
> > - internal\_index: {
> > - \_ttl: {
> > - enabled: true
> > - default: 1000
> > 
> > - }
> > - properties: {
> > - index\_version\_qual: {
> > - include\_in\_all: false
> > - store: true
> > - analyzer: my\_analyzer
> > - type: string
> > 
> > - }
> > - refresh\_qual: {
> > - include\_in\_all: false
> > - store: true
> > - analyzer: my\_analyzer
> > - type: string
> > 
> > - }
> > - entity\_version: {
> > - include\_in\_all: false
> > - store: true
> > - type: long
> > 
> > - }
> > - index\_version: {
> > - include\_in\_all: false
> > - store: true
> > - type: long
> > 
> > - }
> > - refresh\_exact: {
> > - type: string
> > 
> > - }
> > - entity\_version\_qual: {
> > - include\_in\_all: false
> > - store: true
> > - analyzer: my\_analyzer
> > - type: string
> > 
> > - }
> > - refresh: {
> > - include\_in\_all: false
> > - store: true
> > - analyzer: my\_analyzer
> > - type: string
> > 
> > - }
> > 
> > - }
> > 
> > - }
> > 
> > - }
> > - aliases: [
> > - internal\_index
> > 
> > - ]
> > 
> > }
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Benjamin\_Deveze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_deveze/32/1577_2.png) [@Benjamin\_Deveze](https://discuss.elastic.co/u/Benjamin_Deveze)\
**Post date:** [August 12, 2013, 2:37pm UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/4 "2013-08-12T14:37:41Z")

</div>

It makes no sense to index an expired document that is going to be deleted  
right away.

You can of course reindex the same document with an expiration date in the  
future or update the ttl of an existing document.

On Mon, Aug 12, 2013 at 12:36 PM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:

> Thanks a lot.  
> But I cant index an expired document ?  
> Once a document is expired I cant index the same document ?
> 
> Thanks ,  
> Arjit
> 
> On Sat, Aug 10, 2013 at 4:36 PM, Benjamin Devèze \<  
> [benjamin.deveze@gmail.com](mailto:benjamin.deveze@gmail.com)\> wrote:
> 
> > Hi Arjit,
> > 
> > from this message:
> > 
> > Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> > expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> > due to expire at [13
> > 
> > 75991302672] and was processed at [1375991302928]
> > 
> > it seems like you are trying to index an already expired document.
> > 
> > This seems to be explained here by your default ttl value set to "1000"  
> > which is in milliseconds and stands for 1s.
> > 
> > Hope it helps
> > 
> > On Saturday, August 10, 2013 4:43:04 AM UTC+2, Arjit Gupta wrote:
> > 
> > > Hi,
> > > 
> > > We are consistently getting exception - I dont know why is it not able  
> > > to parse \_ttl.
> > > 
> > > [2013-08-09 01:18:22,929][DEBUG][action.\*\*index] [search5]  
> > > [internal\_index\_hor][1], node[MwQNQpm8Q7GqPBSWaC2rRQ], [P], s[STARTED]:  
> > > Failed to execute [index
> > > 
> > > {[internal\_index\_hor][\*\*internal\_index][relationship\_**namespace],  
> > > source[{"refresh\_exact":"true"**,"refresh":"true"}]}]
> > > 
> > > org.elasticsearch.index.\*\*mapper.MapperParsingException: failed to  
> > > parse [\_ttl]
> > > 
> > > ```
> > > at org.elasticsearch.index. **mapper.core.**
> > > 
> > > ```
> > > 
> > > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:396)
> > > 
> > > ```
> > > at org.elasticsearch.index. **mapper.internal.**
> > > 
> > > ```
> > > 
> > > TTLFieldMapper.postParse(\*\*TTLFieldMapper.java:167)
> > > 
> > > ```
> > > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > > 
> > > ```
> > > 
> > > DocumentMapper.java:524)
> > > 
> > > ```
> > > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > > 
> > > ```
> > > 
> > > DocumentMapper.java:450)
> > > 
> > > ```
> > > at org.elasticsearch.index.shard. **service.InternalIndexShard.**
> > > 
> > > ```
> > > 
> > > prepareIndex(\*\*InternalIndexShard.java:327)
> > > 
> > > ```
> > > at org.elasticsearch.action. **index.TransportIndexAction.**
> > > 
> > > ```
> > > 
> > > shardOperationOnPrimary(\*\*TransportIndexAction.java:203)
> > > 
> > > ```
> > > at org.elasticsearch.action. **support.replication.**
> > > 
> > > ```
> > > 
> > > TransportShardReplicationOpera\*\*tionAction$\*_AsyncShardOperationAction._  
> > > \*performOnPrimary( **TransportShardReplicationOpera** tionAction.
> > > 
> > > java:532)
> > > 
> > > ```
> > > at org.elasticsearch.action. **support.replication.**
> > > 
> > > ```
> > > 
> > > TransportShardReplicationOpera **tionAction$**  
> > > AsyncShardOperationAction$1.\*\*run( **TransportShardReplicationOpera**  
> > > tionAction.java:430)
> > > 
> > > ```
> > > 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:662)
> > > 
> > > ```
> > > 
> > > Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> > > expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> > > due to expire at [13
> > > 
> > > 75991302672] and was processed at [1375991302928]
> > > 
> > > ```
> > > at org.elasticsearch.index. **mapper.internal.** TTLFieldMapper.**
> > > 
> > > ```
> > > 
> > > innerParseCreateField(\*\*TTLFieldMapper.java:205)
> > > 
> > > ```
> > > at org.elasticsearch.index. **mapper.core.NumberFieldMapper.**
> > > 
> > > ```
> > > 
> > > parseCreateField(\*\*NumberFieldMapper.java:167)
> > > 
> > > ```
> > > at org.elasticsearch.index. **mapper.core.**
> > > 
> > > ```
> > > 
> > > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:385)
> > > 
> > > ```
> > > ... 10 more
> > > 
> > > ```
> > > 
> > > {
> > > 
> > > - state: open
> > > - settings: {
> > > - index.analysis.analyzer.my\_\*\*analyzer.tokenizer: keyword
> > > - index.analysis.analyzer.my\_\*\*analyzer.filter: lowercase
> > > - index.number\_of\_shards: 5
> > > - index.number\_of\_replicas: 2
> > > - index.version.created: 900199
> > > - index.refresh\_interval: 1s
> > > 
> > > - }
> > > - mappings: {
> > > - internal\_index: {
> > > - \_ttl: {
> > > - enabled: true
> > > - default: 1000
> > > 
> > > - }
> > > - properties: {
> > > - index\_version\_qual: {
> > > - include\_in\_all: false
> > > - store: true
> > > - analyzer: my\_analyzer
> > > - type: string
> > > 
> > > - }
> > > - refresh\_qual: {
> > > - include\_in\_all: false
> > > - store: true
> > > - analyzer: my\_analyzer
> > > - type: string
> > > 
> > > - }
> > > - entity\_version: {
> > > - include\_in\_all: false
> > > - store: true
> > > - type: long
> > > 
> > > - }
> > > - index\_version: {
> > > - include\_in\_all: false
> > > - store: true
> > > - type: long
> > > 
> > > - }
> > > - refresh\_exact: {
> > > - type: string
> > > 
> > > - }
> > > - entity\_version\_qual: {
> > > - include\_in\_all: false
> > > - store: true
> > > - analyzer: my\_analyzer
> > > - type: string
> > > 
> > > - }
> > > - refresh: {
> > > - include\_in\_all: false
> > > - store: true
> > > - analyzer: my\_analyzer
> > > - type: string
> > > 
> > > - }
> > > 
> > > - }
> > > 
> > > - }
> > > 
> > > - }
> > > - aliases: [
> > > - internal\_index
> > > 
> > > - ]
> > > 
> > > }
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Benjamin DEVEZE

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 24, 2013, 11:06am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/5 "2013-08-24T11:06:52Z")

</div>

I am not trying to index anything its Elastic search which is performing  
some operation. I am not able to get from the stack trace.

org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
[\_ttl]  
at  
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:396)  
at  
org.elasticsearch.index.mapper.internal.TTLFieldMapper.postParse(TTLFieldMapper.java:167)  
at  
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:524)  
at  
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:450)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:327)  
at  
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:203)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:532)  
at  
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:430)  
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:662)  
Caused by: org.elasticsearch.index.AlreadyExpiredException: already expired  
[internal\_index\_hor]/[internal\_index]/[relationship\_namespace] due to  
expire at [1377319486435] and was processed at [1377319527779]  
at  
org.elasticsearch.index.mapper.internal.TTLFieldMapper.innerParseCreateField(TTLFieldMapper.java:205)  
at  
org.elasticsearch.index.mapper.core.NumberFieldMapper.parseCreateField(NumberFieldMapper.java:167)  
at  
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:385)  
... 10 more

Thanks ,  
Arjit

On Mon, Aug 12, 2013 at 8:07 PM, Benjamin Devèze  
[benjamin.deveze@gmail.com](mailto:benjamin.deveze@gmail.com)wrote:

> It makes no sense to index an expired document that is going to be deleted  
> right away.
> 
> You can of course reindex the same document with an expiration date in the  
> future or update the ttl of an existing document.
> 
> On Mon, Aug 12, 2013 at 12:36 PM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:
> 
> > Thanks a lot.  
> > But I cant index an expired document ?  
> > Once a document is expired I cant index the same document ?
> > 
> > Thanks ,  
> > Arjit
> > 
> > On Sat, Aug 10, 2013 at 4:36 PM, Benjamin Devèze \<  
> > [benjamin.deveze@gmail.com](mailto:benjamin.deveze@gmail.com)\> wrote:
> > 
> > > Hi Arjit,
> > > 
> > > from this message:
> > > 
> > > Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> > > expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> > > due to expire at [13
> > > 
> > > 75991302672] and was processed at [1375991302928]
> > > 
> > > it seems like you are trying to index an already expired document.
> > > 
> > > This seems to be explained here by your default ttl value set to "1000"  
> > > which is in milliseconds and stands for 1s.
> > > 
> > > Hope it helps
> > > 
> > > On Saturday, August 10, 2013 4:43:04 AM UTC+2, Arjit Gupta wrote:
> > > 
> > > > Hi,
> > > > 
> > > > We are consistently getting exception - I dont know why is it not able  
> > > > to parse \_ttl.
> > > > 
> > > > [2013-08-09 01:18:22,929][DEBUG][action.\*\*index]  
> > > > [search5] [internal\_index\_hor][1], node[MwQNQpm8Q7GqPBSWaC2rRQ], [P],  
> > > > s[STARTED]: Failed to execute [index
> > > > 
> > > > {[internal\_index\_hor][\*\*internal\_index][relationship\_**namespace],  
> > > > source[{"refresh\_exact":"true"**,"refresh":"true"}]}]
> > > > 
> > > > org.elasticsearch.index.\*\*mapper.MapperParsingException: failed to  
> > > > parse [\_ttl]
> > > > 
> > > > ```
> > > > at org.elasticsearch.index. **mapper.core.**
> > > > 
> > > > ```
> > > > 
> > > > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:396)
> > > > 
> > > > ```
> > > > at org.elasticsearch.index. **mapper.internal.**
> > > > 
> > > > ```
> > > > 
> > > > TTLFieldMapper.postParse(\*\*TTLFieldMapper.java:167)
> > > > 
> > > > ```
> > > > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > > > 
> > > > ```
> > > > 
> > > > DocumentMapper.java:524)
> > > > 
> > > > ```
> > > > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > > > 
> > > > ```
> > > > 
> > > > DocumentMapper.java:450)
> > > > 
> > > > ```
> > > > at org.elasticsearch.index.shard.**service.InternalIndexShard.*
> > > > 
> > > > ```
> > > > 
> > > > \*prepareIndex(\*\*InternalIndexShard.java:327)
> > > > 
> > > > ```
> > > > at org.elasticsearch.action. **index.TransportIndexAction.**
> > > > 
> > > > ```
> > > > 
> > > > shardOperationOnPrimary(\*\*TransportIndexAction.java:203)
> > > > 
> > > > ```
> > > > at org.elasticsearch.action. **support.replication.**
> > > > 
> > > > ```
> > > > 
> > > > TransportShardReplicationOpera\*\*tionAction$\*\*AsyncShardOperationAction.  
> > > > \*\*performOnPrimary( **TransportShardReplicationOpera** tionAction.
> > > > 
> > > > java:532)
> > > > 
> > > > ```
> > > > at org.elasticsearch.action. **support.replication.**
> > > > 
> > > > ```
> > > > 
> > > > TransportShardReplicationOpera **tionAction$**  
> > > > AsyncShardOperationAction$1.\*\*run( **TransportShardReplicationOpera**  
> > > > tionAction.java:430)
> > > > 
> > > > ```
> > > > 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:662)
> > > > 
> > > > ```
> > > > 
> > > > Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> > > > expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> > > > due to expire at [13
> > > > 
> > > > 75991302672] and was processed at [1375991302928]
> > > > 
> > > > ```
> > > > at org.elasticsearch.index. **mapper.internal.** TTLFieldMapper.*
> > > > 
> > > > ```
> > > > 
> > > > \*innerParseCreateField(\*\*TTLFieldMapper.java:205)
> > > > 
> > > > ```
> > > > at org.elasticsearch.index. **mapper.core.NumberFieldMapper.**
> > > > 
> > > > ```
> > > > 
> > > > parseCreateField(\*\*NumberFieldMapper.java:167)
> > > > 
> > > > ```
> > > > at org.elasticsearch.index. **mapper.core.**
> > > > 
> > > > ```
> > > > 
> > > > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:385)
> > > > 
> > > > ```
> > > > ... 10 more
> > > > 
> > > > ```
> > > > 
> > > > {
> > > > 
> > > > - state: open
> > > > - settings: {
> > > > - index.analysis.analyzer.my\_\*\*analyzer.tokenizer: keyword
> > > > - index.analysis.analyzer.my\_\*\*analyzer.filter: lowercase
> > > > - index.number\_of\_shards: 5
> > > > - index.number\_of\_replicas: 2
> > > > - index.version.created: 900199
> > > > - index.refresh\_interval: 1s
> > > > 
> > > > - }
> > > > - mappings: {
> > > > - internal\_index: {
> > > > - \_ttl: {
> > > > - enabled: true
> > > > - default: 1000
> > > > 
> > > > - }
> > > > - properties: {
> > > > - index\_version\_qual: {
> > > > - include\_in\_all: false
> > > > - store: true
> > > > - analyzer: my\_analyzer
> > > > - type: string
> > > > 
> > > > - }
> > > > - refresh\_qual: {
> > > > - include\_in\_all: false
> > > > - store: true
> > > > - analyzer: my\_analyzer
> > > > - type: string
> > > > 
> > > > - }
> > > > - entity\_version: {
> > > > - include\_in\_all: false
> > > > - store: true
> > > > - type: long
> > > > 
> > > > - }
> > > > - index\_version: {
> > > > - include\_in\_all: false
> > > > - store: true
> > > > - type: long
> > > > 
> > > > - }
> > > > - refresh\_exact: {
> > > > - type: string
> > > > 
> > > > - }
> > > > - entity\_version\_qual: {
> > > > - include\_in\_all: false
> > > > - store: true
> > > > - analyzer: my\_analyzer
> > > > - type: string
> > > > 
> > > > - }
> > > > - refresh: {
> > > > - include\_in\_all: false
> > > > - store: true
> > > > - analyzer: my\_analyzer
> > > > - type: string
> > > > 
> > > > - }
> > > > 
> > > > - }
> > > > 
> > > > - }
> > > > 
> > > > - }
> > > > - aliases: [
> > > > - internal\_index
> > > > 
> > > > - ]
> > > > 
> > > > }
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Benjamin DEVEZE
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 24, 2013, 4:04pm UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/6 "2013-08-24T16:04:51Z")

</div>

After digging more into logs I found out we are getting. Do we need to have  
all the nodes to ntp synced ?

[2013-08-24 10:13:09,791][WARN][action.index] [search5]  
Failed to perform index on replica  
[internal\_index\_hor][1]org.elasticsearch.transport.RemoteTransportException:  
[search6][inet[/172.65.149.97:9300]][index/replica]

Caused by: org.elasticsearch.index.mapper.MapperParsingException: failed to  
parse [\_ttl]

```
    at

```

org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:396)

```
    at

```

org.elasticsearch.index.mapper.internal.TTLFieldMapper.postParse(TTLFieldMapper.java:167)

```
    at

```

org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:524)  
at  
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:450)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:327)  
at  
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnReplica(TransportIndexAction.java:258)

```
    at

```

org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$ReplicaOperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:254)

```
    at

```

org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$ReplicaOperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:240)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:265)  
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:662)

```

Caused by: org.elasticsearch.index.AlreadyExpiredException: already expired  
[internal\_index\_hor]/[internal\_index]/[relationship\_namespace] due to  
expire at [1377319389247] and was processed at [1377319389781]

```
    at

```

org.elasticsearch.index.mapper.internal.TTLFieldMapper.innerParseCreateField(TTLFieldMapper.java:205)  
at  
org.elasticsearch.index.mapper.core.NumberFieldMapper.parseCreateField(NumberFieldMapper.java:167)  
at  
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:385)  
... 11 more

[2013-08-24 10:13:09,801][WARN][cluster.action.shard]  
[sp-cms-hoodoo-search5] sending failed shard for [internal\_index\_hor][1],  
node[RV9FntFrS7O8FodB3zTAOA], [R], s[STARTED], reason [Failed to perform  
[index] on replica, message  
[RemoteTransportException[[search6][inet[/172.65.149.97:9300]][index/replica]];  
nested: MapperParsingException[failed to parse [\_ttl]]; nested:  
AlreadyExpiredException[already expired  
[internal\_index\_hor]/[internal\_index]/[fk\_sp\_cms\_listing\_tag\_relationship\_namespace]  
due to expire at [1377319389247] and was processed at [1377319389781]]; ]]

Thanks ,  
Arjit

On Sat, Aug 24, 2013 at 4:36 PM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:

> I am not trying to index anything its Elastic search which is performing  
> some operation. I am not able to get from the stack trace.
> 
> org.elasticsearch.index.mapper.MapperParsingException: failed to parse  
> [\_ttl]  
> at  
> org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:396)  
> at  
> org.elasticsearch.index.mapper.internal.TTLFieldMapper.postParse(TTLFieldMapper.java:167)  
> at  
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:524)  
> at  
> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:450)  
> at  
> org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:327)  
> at  
> org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:203)  
> at  
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:532)  
> at  
> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:430)  
> 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:662)  
> Caused by: org.elasticsearch.index.AlreadyExpiredException: already  
> expired [internal\_index\_hor]/[internal\_index]/[relationship\_namespace]  
> due to expire at [1377319486435] and was processed at [1377319527779]  
> at  
> org.elasticsearch.index.mapper.internal.TTLFieldMapper.innerParseCreateField(TTLFieldMapper.java:205)  
> at  
> org.elasticsearch.index.mapper.core.NumberFieldMapper.parseCreateField(NumberFieldMapper.java:167)  
> at  
> org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:385)  
> ... 10 more
> 
> Thanks ,  
> Arjit
> 
> On Mon, Aug 12, 2013 at 8:07 PM, Benjamin Devèze \<  
> [benjamin.deveze@gmail.com](mailto:benjamin.deveze@gmail.com)\> wrote:
> 
> > It makes no sense to index an expired document that is going to be  
> > deleted right away.
> > 
> > You can of course reindex the same document with an expiration date in  
> > the future or update the ttl of an existing document.
> > 
> > On Mon, Aug 12, 2013 at 12:36 PM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:
> > 
> > > Thanks a lot.  
> > > But I cant index an expired document ?  
> > > Once a document is expired I cant index the same document ?
> > > 
> > > Thanks ,  
> > > Arjit
> > > 
> > > On Sat, Aug 10, 2013 at 4:36 PM, Benjamin Devèze \<  
> > > [benjamin.deveze@gmail.com](mailto:benjamin.deveze@gmail.com)\> wrote:
> > > 
> > > > Hi Arjit,
> > > > 
> > > > from this message:
> > > > 
> > > > Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> > > > expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> > > > due to expire at [13
> > > > 
> > > > 75991302672] and was processed at [1375991302928]
> > > > 
> > > > it seems like you are trying to index an already expired document.
> > > > 
> > > > This seems to be explained here by your default ttl value set to "1000"  
> > > > which is in milliseconds and stands for 1s.
> > > > 
> > > > Hope it helps
> > > > 
> > > > On Saturday, August 10, 2013 4:43:04 AM UTC+2, Arjit Gupta wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > We are consistently getting exception - I dont know why is it not able  
> > > > > to parse \_ttl.
> > > > > 
> > > > > [2013-08-09 01:18:22,929][DEBUG][action.\*\*index]  
> > > > > [search5] [internal\_index\_hor][1], node[MwQNQpm8Q7GqPBSWaC2rRQ], [P],  
> > > > > s[STARTED]: Failed to execute [index
> > > > > 
> > > > > {[internal\_index\_hor][\*\*internal\_index][relationship\_**namespace],  
> > > > > source[{"refresh\_exact":"true"**,"refresh":"true"}]}]
> > > > > 
> > > > > org.elasticsearch.index.\*\*mapper.MapperParsingException: failed to  
> > > > > parse [\_ttl]
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index. **mapper.core.**
> > > > > 
> > > > > ```
> > > > > 
> > > > > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:396)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index. **mapper.internal.**
> > > > > 
> > > > > ```
> > > > > 
> > > > > TTLFieldMapper.postParse(\*\*TTLFieldMapper.java:167)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > > > > 
> > > > > ```
> > > > > 
> > > > > DocumentMapper.java:524)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index.**mapper.DocumentMapper.parse(**
> > > > > 
> > > > > ```
> > > > > 
> > > > > DocumentMapper.java:450)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index.shard.**service.InternalIndexShard.
> > > > > 
> > > > > ```
> > > > > 
> > > > > \*\*prepareIndex(\*\*InternalIndexShard.java:327)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.action. **index.TransportIndexAction.**
> > > > > 
> > > > > ```
> > > > > 
> > > > > shardOperationOnPrimary(\*\*TransportIndexAction.java:203)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.action. **support.replication.**
> > > > > 
> > > > > ```
> > > > > 
> > > > > TransportShardReplicationOpera **tionAction$**  
> > > > > AsyncShardOperationAction.**performOnPrimary(**  
> > > > > TransportShardReplicationOpera\*\*tionAction.
> > > > > 
> > > > > java:532)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.action. **support.replication.**
> > > > > 
> > > > > ```
> > > > > 
> > > > > TransportShardReplicationOpera **tionAction$**  
> > > > > AsyncShardOperationAction$1.\*\*run( **TransportShardReplicationOpera**  
> > > > > tionAction.java:430)
> > > > > 
> > > > > ```
> > > > > 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:662)
> > > > > 
> > > > > ```
> > > > > 
> > > > > Caused by: org.elasticsearch.index.\*\*AlreadyExpiredException: already  
> > > > > expired [internal\_index\_hor]/[\*\*internal\_index]/[relationship\_\*\*namespace]  
> > > > > due to expire at [13
> > > > > 
> > > > > 75991302672] and was processed at [1375991302928]
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index. **mapper.internal.** TTLFieldMapper.
> > > > > 
> > > > > ```
> > > > > 
> > > > > \*\*innerParseCreateField(\*\*TTLFieldMapper.java:205)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index. **mapper.core.NumberFieldMapper.**
> > > > > 
> > > > > ```
> > > > > 
> > > > > parseCreateField(\*\*NumberFieldMapper.java:167)
> > > > > 
> > > > > ```
> > > > > at org.elasticsearch.index. **mapper.core.**
> > > > > 
> > > > > ```
> > > > > 
> > > > > AbstractFieldMapper.parse(\*\*AbstractFieldMapper.java:385)
> > > > > 
> > > > > ```
> > > > > ... 10 more
> > > > > 
> > > > > ```
> > > > > 
> > > > > {
> > > > > 
> > > > > - state: open
> > > > > - settings: {
> > > > > - index.analysis.analyzer.my\_\*\*analyzer.tokenizer: keyword
> > > > > - index.analysis.analyzer.my\_\*\*analyzer.filter: lowercase
> > > > > - index.number\_of\_shards: 5
> > > > > - index.number\_of\_replicas: 2
> > > > > - index.version.created: 900199
> > > > > - index.refresh\_interval: 1s
> > > > > 
> > > > > - }
> > > > > - mappings: {
> > > > > - internal\_index: {
> > > > > - \_ttl: {
> > > > > - enabled: true
> > > > > - default: 1000
> > > > > 
> > > > > - }
> > > > > - properties: {
> > > > > - index\_version\_qual: {
> > > > > - include\_in\_all: false
> > > > > - store: true
> > > > > - analyzer: my\_analyzer
> > > > > - type: string
> > > > > 
> > > > > - }
> > > > > - refresh\_qual: {
> > > > > - include\_in\_all: false
> > > > > - store: true
> > > > > - analyzer: my\_analyzer
> > > > > - type: string
> > > > > 
> > > > > - }
> > > > > - entity\_version: {
> > > > > - include\_in\_all: false
> > > > > - store: true
> > > > > - type: long
> > > > > 
> > > > > - }
> > > > > - index\_version: {
> > > > > - include\_in\_all: false
> > > > > - store: true
> > > > > - type: long
> > > > > 
> > > > > - }
> > > > > - refresh\_exact: {
> > > > > - type: string
> > > > > 
> > > > > - }
> > > > > - entity\_version\_qual: {
> > > > > - include\_in\_all: false
> > > > > - store: true
> > > > > - analyzer: my\_analyzer
> > > > > - type: string
> > > > > 
> > > > > - }
> > > > > - refresh: {
> > > > > - include\_in\_all: false
> > > > > - store: true
> > > > > - analyzer: my\_analyzer
> > > > > - type: string
> > > > > 
> > > > > - }
> > > > > 
> > > > > - }
> > > > > 
> > > > > - }
> > > > > 
> > > > > - }
> > > > > - aliases: [
> > > > > - internal\_index
> > > > > 
> > > > > - ]
> > > > > 
> > > > > }
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > 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).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Benjamin DEVEZE
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 26, 2013, 8:11am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/7 "2013-08-26T08:11:37Z")

</div>

If you use ttl, ES assumes that all nodes operate with synchronized clocks.

Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [August 26, 2013, 2:10pm UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/8 "2013-08-26T14:10:00Z")

</div>

Jörg,

Is there an acceptable limit to the clock skew?

Even with very expensive temperature-stabilized time bases in each data  
center (another application, not DB related), we still see some clock skew.  
Not much, but it's not perfect either.

Brian

On Monday, August 26, 2013 4:11:37 AM UTC-4, Jörg Prante wrote:

> If you use ttl, ES assumes that all nodes operate with synchronized clocks.
> 
> Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 26, 2013, 6:01pm UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/9 "2013-08-26T18:01:15Z")

</div>

It depends on indices.ttl.interval which is by default set to 1m. Since the  
TTL expiration collector is fired according to this interval, I think a  
clock skew of ~30s is acceptable. Or you can modify indices.ttl.interval to  
a larger interval, but this may give longer lags.

Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 27, 2013, 5:31am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/10 "2013-08-27T05:31:46Z")

</div>

If I want the expired documents to be deleted by default should I set  
indices.ttl.interval  
= 0 ?

Thanks ,  
Arjit

On Mon, Aug 26, 2013 at 11:31 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> It depends on indices.ttl.interval which is by default set to 1m. Since  
> the TTL expiration collector is fired according to this interval, I think a  
> clock skew of ~30s is acceptable. Or you can modify indices.ttl.interval to  
> a larger interval, but this may give longer lags.
> 
> Jörg
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 27, 2013, 10:07am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/11 "2013-08-27T10:07:57Z")

</div>

I tried changing the setting  
curl -XPUT '[http://localhost:9200/](http://localhost:9200/)\<index\_name\>/\_settings' -d  
'{"indices.ttl.interval" : 0}'  
first I got exception  
ElasticSearchIllegalArgumentException[Can't update non dynamic  
settings[[index.indices.ttl.interval]] for open indices  
Then I closed the index and tried running the command again. But its still  
not honoring it.

Any help will be appreciated.

Thanks ,  
Arjit

On Tue, Aug 27, 2013 at 11:01 AM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:

> If I want the expired documents to be deleted by default should I set indices.ttl.interval  
> = 0 ?
> 
> Thanks ,  
> Arjit
> 
> On Mon, Aug 26, 2013 at 11:31 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> 
> > It depends on indices.ttl.interval which is by default set to 1m. Since  
> > the TTL expiration collector is fired according to this interval, I think a  
> > clock skew of ~30s is acceptable. Or you can modify indices.ttl.interval to  
> > a larger interval, but this may give longer lags.
> > 
> > Jörg
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [August 27, 2013, 10:08am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/12 "2013-08-27T10:08:22Z")

</div>

Thanks ,  
Arjit

On Tue, Aug 27, 2013 at 3:37 PM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:

> I tried changing the setting  
> curl -XPUT '[http://localhost:9200/](http://localhost:9200/)\<index\_name\>/\_settings' -d  
> '{"indices.ttl.interval" : 0}'  
> first I got exception  
> ElasticSearchIllegalArgumentException[Can't update non dynamic  
> settings[[index.indices.ttl.interval]] for open indices  
> Then I closed the index and tried running the command again. But its still  
> not honoring it.
> 
> Any help will be appreciated.
> 
> Thanks ,  
> Arjit
> 
> On Tue, Aug 27, 2013 at 11:01 AM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:
> 
> > If I want the expired documents to be deleted by default should I set indices.ttl.interval  
> > = 0 ?
> > 
> > Thanks ,  
> > Arjit
> > 
> > On Mon, Aug 26, 2013 at 11:31 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> > [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> > 
> > > It depends on indices.ttl.interval which is by default set to 1m. Since  
> > > the TTL expiration collector is fired according to this interval, I think a  
> > > clock skew of ~30s is acceptable. Or you can modify indices.ttl.interval to  
> > > a larger interval, but this may give longer lags.
> > > 
> > > Jörg
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe](https://groups.google.com/d/topic/elasticsearch/0So4AdJMT84/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:19am UTC](https://discuss.elastic.co/t/es-consistently-giving-not-able-to-parse--ttl-exception/13158/13 "2017-07-06T02:19:36Z")

</div>


