# TTL setting exceptions

**URL:** <https://discuss.elastic.co/t/ttl-setting-exceptions/7347>\
**Category:** Elasticsearch\
**Created:** [April 16, 2012, 1:31pm UTC](https://discuss.elastic.co/t/ttl-setting-exceptions/7347 "2012-04-16T13:31:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oren\_Mazor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oren_mazor/32/2903_2.png) [@Oren\_Mazor](https://discuss.elastic.co/u/Oren_Mazor)\
**Post date:** [April 16, 2012, 1:31pm UTC](https://discuss.elastic.co/t/ttl-setting-exceptions/7347/1 "2012-04-16T13:31:32Z")

</div>

Hey, just wondering. is there a situation where TTL is not respected  
by ES?

I did switch to 19.2, but I noticed in my 18.6 index, documents  
stopped expiring at some point. I was providing the \_ttl in the source  
document, which per the docs should be working (and it definitely used  
to work).

My insertions are all using the \_bulk api, if that helps.

thanks!

---

<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:** [April 16, 2012, 6:35pm UTC](https://discuss.elastic.co/t/ttl-setting-exceptions/7347/2 "2012-04-16T18:35:09Z")

</div>

Hey oren,

I have just tested the TTL feature using \_bulk api with ES 0.19.2 and  
it worked fine for me.

Can you gist a simple recreation of the bug?

On Mon, Apr 16, 2012 at 3:31 PM, Oren Mazor [oren.mazor@gmail.com](mailto:oren.mazor@gmail.com) wrote:

> Hey, just wondering. is there a situation where TTL is not respected  
> by ES?
> 
> I did switch to 19.2, but I noticed in my 18.6 index, documents  
> stopped expiring at some point. I was providing the \_ttl in the source  
> document, which per the docs should be working (and it definitely used  
> to work).
> 
> My insertions are all using the \_bulk api, if that helps.
> 
> thanks!

--  
Benjamin DEVEZE

---

<div class="post-metadata">

**Author:** ![Oren\_Mazor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oren_mazor/32/2903_2.png) [@Oren\_Mazor](https://discuss.elastic.co/u/Oren_Mazor)\
**Post date:** [April 18, 2012, 3:46pm UTC](https://discuss.elastic.co/t/ttl-setting-exceptions/7347/3 "2012-04-18T15:46:58Z")

</div>

Hey Benjamin. We've fixed the issue. there was a corner case where the  
TTL did not get set correctly.

cheers!

On Apr 16, 2:35 pm, Benjamin Devèze [benjamin.dev...@gmail.com](mailto:benjamin.dev...@gmail.com) wrote:

> Hey oren,
> 
> I have just tested the TTL feature using \_bulk api with ES 0.19.2 and  
> it worked fine for me.
> 
> Can you gist a simple recreation of the bug?
> 
> On Mon, Apr 16, 2012 at 3:31 PM, Oren Mazor [oren.ma...@gmail.com](mailto:oren.ma...@gmail.com) wrote:
> 
> > Hey, just wondering. is there a situation where TTL is not respected  
> > by ES?
> 
> > I did switch to 19.2, but I noticed in my 18.6 index, documents  
> > stopped expiring at some point. I was providing the \_ttl in the source  
> > document, which per the docs should be working (and it definitely used  
> > to work).
> 
> > My insertions are all using the \_bulk api, if that helps.
> 
> > thanks!
> 
> --  
> Benjamin DEVEZE

---

<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, 3:32am UTC](https://discuss.elastic.co/t/ttl-setting-exceptions/7347/4 "2017-07-06T03:32:06Z")

</div>


