# Apparent scroll timeout error

**URL:** https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440
**Category:** Elasticsearch
**Created:** [May 19, 2011, 8:09pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440 "2011-05-19T20:09:27Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Grant\_Rodgers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant_rodgers/32/3204_2.png) [@Grant\_Rodgers](https://discuss.elastic.co/u/Grant_Rodgers)
#### Post date: [May 19, 2011, 8:09pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/1 "2011-05-19T20:09:27Z")

</div>

I'm getting this error when scrolling:

{"error":"ReduceSearchPhaseException[Failed to execute phase [fetch],  
[reduce] ; shardFailures {SearchContextMissingException[No search  
context found for id [353389]]}{RemoteTransportException[[Sigmar]  
[inet[/10.198.61.171:9300]][search/phase/scan/scroll]]; nested:  
SearchContextMissingException[No search context found for id  
[279091]]; }{RemoteTransportException[[Wildpride][inet[/  
10.96.85.229:9300]][search/phase/scan/scroll]]; nested:  
SearchContextMissingException[No search context found for id  
[205220]]; }{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]]  
[search/phase/scan/scroll]]; nested: SearchContextMissingException[No  
search context found for id [620590]]; }  
{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]][search/  
phase/scan/scroll]]; nested: SearchContextMissingException[No search  
context found for id [620591]]; }{RemoteTransportException[[Corbo,  
Jared][inet[/10.211.95.128:9300]][search/phase/scan/scroll]]; nested:  
SearchContextMissingException[No search context found for id  
[79383]]; }]; nested: IndexOutOfBoundsException[index (0) must be less  
than size (0)]; ","status":500}

This error does not generate a stack trace in the elasticsearch logs.

Initially, my scroll parameter was '5m', and the 'user' time elapsed  
(as reported by time command) before the scroll failed was roughly 5  
minutes. I then set the scroll parameter to '20m' and the user time  
elapsed before the failure was roughly 20 minutes.

Is the scroll time parameter the timeout since the first scroll  
request, or since the most recent scroll request? My intuitive  
understanding was that the timeout is updated on every scroll request,  
since otherwise it would be difficult to scroll very large indices. Is  
this an incorrect assumption?

On a related note, the documentation for scrolling needs to be fleshed  
out. The scroll uri endpoint is only documented in a few gists  
scattered around.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [May 19, 2011, 8:11pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/2 "2011-05-19T20:11:40Z")

</div>

The timeout parameter applies to the next API call, not for the entire duration of the scrolling. Which version are you using, and are you scrolling a scan search type, or a different search type?  
On Thursday, May 19, 2011 at 11:09 PM, Grant Rodgers wrote:

> I'm getting this error when scrolling:
> 
> {"error":"ReduceSearchPhaseException[Failed to execute phase [fetch],  
> [reduce] ; shardFailures {SearchContextMissingException[No search  
> context found for id [353389]]}{RemoteTransportException[[Sigmar]  
> [inet[/10.198.61.171:9300]][search/phase/scan/scroll]]; nested:  
> SearchContextMissingException[No search context found for id  
> [279091]]; }{RemoteTransportException[[Wildpride][inet[/  
> 10.96.85.229:9300]][search/phase/scan/scroll]]; nested:  
> SearchContextMissingException[No search context found for id  
> [205220]]; }{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]]  
> [search/phase/scan/scroll]]; nested: SearchContextMissingException[No  
> search context found for id [620590]]; }  
> {RemoteTransportException[[Zach][inet[/10.97.30.240:9300]][search/  
> phase/scan/scroll]]; nested: SearchContextMissingException[No search  
> context found for id [620591]]; }{RemoteTransportException[[Corbo,  
> Jared][inet[/10.211.95.128:9300]][search/phase/scan/scroll]]; nested:  
> SearchContextMissingException[No search context found for id  
> [79383]]; }]; nested: IndexOutOfBoundsException[index (0) must be less  
> than size (0)]; ","status":500}
> 
> This error does not generate a stack trace in the elasticsearch logs.
> 
> Initially, my scroll parameter was '5m', and the 'user' time elapsed  
> (as reported by time command) before the scroll failed was roughly 5  
> minutes. I then set the scroll parameter to '20m' and the user time  
> elapsed before the failure was roughly 20 minutes.
> 
> Is the scroll time parameter the timeout since the first scroll  
> request, or since the most recent scroll request? My intuitive  
> understanding was that the timeout is updated on every scroll request,  
> since otherwise it would be difficult to scroll very large indices. Is  
> this an incorrect assumption?
> 
> On a related note, the documentation for scrolling needs to be fleshed  
> out. The scroll uri endpoint is only documented in a few gists  
> scattered around.

---

<div class="post-metadata">

### Author: ![Grant\_Rodgers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant_rodgers/32/3204_2.png) [@Grant\_Rodgers](https://discuss.elastic.co/u/Grant_Rodgers)
#### Post date: [May 19, 2011, 8:15pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/3 "2011-05-19T20:15:15Z")

</div>

I am using 0.16.1 and scan search type

On May 19, 1:11 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> The timeout parameter applies to the next API call, not for the entire duration of the scrolling. Which version are you using, and are you scrolling a scan search type, or a different search type?
> 
> On Thursday, May 19, 2011 at 11:09 PM, Grant Rodgers wrote:
> 
> > I'm getting this error when scrolling:
> 
> > {"error":"ReduceSearchPhaseException[Failed to execute phase [fetch],  
> > [reduce] ; shardFailures {SearchContextMissingException[No search  
> > context found for id [353389]]}{RemoteTransportException[[Sigmar]  
> > [inet[/10.198.61.171:9300]][search/phase/scan/scroll]]; nested:  
> > SearchContextMissingException[No search context found for id  
> > [279091]]; }{RemoteTransportException[[Wildpride][inet[/  
> > 10.96.85.229:9300]][search/phase/scan/scroll]]; nested:  
> > SearchContextMissingException[No search context found for id  
> > [205220]]; }{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]]  
> > [search/phase/scan/scroll]]; nested: SearchContextMissingException[No  
> > search context found for id [620590]]; }  
> > {RemoteTransportException[[Zach][inet[/10.97.30.240:9300]][search/  
> > phase/scan/scroll]]; nested: SearchContextMissingException[No search  
> > context found for id [620591]]; }{RemoteTransportException[[Corbo,  
> > Jared][inet[/10.211.95.128:9300]][search/phase/scan/scroll]]; nested:  
> > SearchContextMissingException[No search context found for id  
> > [79383]]; }]; nested: IndexOutOfBoundsException[index (0) must be less  
> > than size (0)]; ","status":500}
> 
> > This error does not generate a stack trace in the elasticsearch logs.
> 
> > Initially, my scroll parameter was '5m', and the 'user' time elapsed  
> > (as reported by time command) before the scroll failed was roughly 5  
> > minutes. I then set the scroll parameter to '20m' and the user time  
> > elapsed before the failure was roughly 20 minutes.
> 
> > Is the scroll time parameter the timeout since the first scroll  
> > request, or since the most recent scroll request? My intuitive  
> > understanding was that the timeout is updated on every scroll request,  
> > since otherwise it would be difficult to scroll very large indices. Is  
> > this an incorrect assumption?
> 
> > On a related note, the documentation for scrolling needs to be fleshed  
> > out. The scroll uri endpoint is only documented in a few gists  
> > scattered around.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [May 19, 2011, 8:23pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/4 "2011-05-19T20:23:49Z")

</div>

Can you provide a recreation in some form? Are you sure you are feeding the scroll\_id you get from each response back to the next request? Btw, the scroll timeout value does not affect any timeout set on the search part.  
On Thursday, May 19, 2011 at 11:15 PM, Grant Rodgers wrote:  
I am using 0.16.1 and scan search type

> On May 19, 1:11 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > The timeout parameter applies to the next API call, not for the entire duration of the scrolling. Which version are you using, and are you scrolling a scan search type, or a different search type?
> > 
> > On Thursday, May 19, 2011 at 11:09 PM, Grant Rodgers wrote:
> > 
> > > I'm getting this error when scrolling:
> > 
> > > {"error":"ReduceSearchPhaseException[Failed to execute phase [fetch],  
> > > [reduce] ; shardFailures {SearchContextMissingException[No search  
> > > context found for id [353389]]}{RemoteTransportException[[Sigmar]  
> > > [inet[/10.198.61.171:9300]][search/phase/scan/scroll]]; nested:  
> > > SearchContextMissingException[No search context found for id  
> > > [279091]]; }{RemoteTransportException[[Wildpride][inet[/  
> > > 10.96.85.229:9300]][search/phase/scan/scroll]]; nested:  
> > > SearchContextMissingException[No search context found for id  
> > > [205220]]; }{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]]  
> > > [search/phase/scan/scroll]]; nested: SearchContextMissingException[No  
> > > search context found for id [620590]]; }  
> > > {RemoteTransportException[[Zach][inet[/10.97.30.240:9300]][search/  
> > > phase/scan/scroll]]; nested: SearchContextMissingException[No search  
> > > context found for id [620591]]; }{RemoteTransportException[[Corbo,  
> > > Jared][inet[/10.211.95.128:9300]][search/phase/scan/scroll]]; nested:  
> > > SearchContextMissingException[No search context found for id  
> > > [79383]]; }]; nested: IndexOutOfBoundsException[index (0) must be less  
> > > than size (0)]; ","status":500}
> > 
> > > This error does not generate a stack trace in the elasticsearch logs.
> > 
> > > Initially, my scroll parameter was '5m', and the 'user' time elapsed  
> > > (as reported by time command) before the scroll failed was roughly 5  
> > > minutes. I then set the scroll parameter to '20m' and the user time  
> > > elapsed before the failure was roughly 20 minutes.
> > 
> > > Is the scroll time parameter the timeout since the first scroll  
> > > request, or since the most recent scroll request? My intuitive  
> > > understanding was that the timeout is updated on every scroll request,  
> > > since otherwise it would be difficult to scroll very large indices. Is  
> > > this an incorrect assumption?
> > 
> > > On a related note, the documentation for scrolling needs to be fleshed  
> > > out. The scroll uri endpoint is only documented in a few gists  
> > > scattered around.

---

<div class="post-metadata">

### Author: ![Grant\_Rodgers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant_rodgers/32/3204_2.png) [@Grant\_Rodgers](https://discuss.elastic.co/u/Grant_Rodgers)
#### Post date: [May 19, 2011, 9:02pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/5 "2011-05-19T21:02:29Z")

</div>

After investigating further, this may be intended behavior.

In some cases, the scroll loop can take several seconds to complete,  
and since the scan type multiplies the limit (currently 100) by the  
number of shards (6), that means the time between scroll requests can  
be more than 30 minutes. The correlation between user time and scroll  
time could be a red herring.

I am changing the code to divide the limit by number of shards so that  
we get the expected number of records back from the request. If this  
doesn't fix the issue I will reply with a recreation.

Thanks! Sorry for the noise - as usual it is probably user error  
instead of elasticsearch 🙂 Although I stand by my warning about  
scroll documentation - the multiplying property of scan is  
undocumented and may catch other users out.

Grant

On May 19, 1:23 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Can you provide a recreation in some form? Are you sure you are feeding the scroll\_id you get from each response back to the next request? Btw, the scroll timeout value does not affect any timeout set on the search part.On Thursday, May 19, 2011 at 11:15 PM, Grant Rodgers wrote:
> 
> I am using 0.16.1 and scan search type
> 
> > On May 19, 1:11 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > The timeout parameter applies to the next API call, not for the entire duration of the scrolling. Which version are you using, and are you scrolling a scan search type, or a different search type?
> 
> > > On Thursday, May 19, 2011 at 11:09 PM, Grant Rodgers wrote:
> > > 
> > > > I'm getting this error when scrolling:
> 
> > > > {"error":"ReduceSearchPhaseException[Failed to execute phase [fetch],  
> > > > [reduce] ; shardFailures {SearchContextMissingException[No search  
> > > > context found for id [353389]]}{RemoteTransportException[[Sigmar]  
> > > > [inet[/10.198.61.171:9300]][search/phase/scan/scroll]]; nested:  
> > > > SearchContextMissingException[No search context found for id  
> > > > [279091]]; }{RemoteTransportException[[Wildpride][inet[/  
> > > > 10.96.85.229:9300]][search/phase/scan/scroll]]; nested:  
> > > > SearchContextMissingException[No search context found for id  
> > > > [205220]]; }{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]]  
> > > > [search/phase/scan/scroll]]; nested: SearchContextMissingException[No  
> > > > search context found for id [620590]]; }  
> > > > {RemoteTransportException[[Zach][inet[/10.97.30.240:9300]][search/  
> > > > phase/scan/scroll]]; nested: SearchContextMissingException[No search  
> > > > context found for id [620591]]; }{RemoteTransportException[[Corbo,  
> > > > Jared][inet[/10.211.95.128:9300]][search/phase/scan/scroll]]; nested:  
> > > > SearchContextMissingException[No search context found for id  
> > > > [79383]]; }]; nested: IndexOutOfBoundsException[index (0) must be less  
> > > > than size (0)]; ","status":500}
> 
> > > > This error does not generate a stack trace in the elasticsearch logs.
> 
> > > > Initially, my scroll parameter was '5m', and the 'user' time elapsed  
> > > > (as reported by time command) before the scroll failed was roughly 5  
> > > > minutes. I then set the scroll parameter to '20m' and the user time  
> > > > elapsed before the failure was roughly 20 minutes.
> 
> > > > Is the scroll time parameter the timeout since the first scroll  
> > > > request, or since the most recent scroll request? My intuitive  
> > > > understanding was that the timeout is updated on every scroll request,  
> > > > since otherwise it would be difficult to scroll very large indices. Is  
> > > > this an incorrect assumption?
> 
> > > > On a related note, the documentation for scrolling needs to be fleshed  
> > > > out. The scroll uri endpoint is only documented in a few gists  
> > > > scattered around.

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [May 19, 2011, 9:05pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/6 "2011-05-19T21:05:33Z")

</div>

On Friday, May 20, 2011 at 12:02 AM, Grant Rodgers wrote:  
After investigating further, this may be intended behavior.

> In some cases, the scroll loop can take several seconds to complete,  
> and since the scan type multiplies the limit (currently 100) by the  
> number of shards (6), that means the time between scroll requests can  
> be more than 30 minutes. The correlation between user time and scroll  
> time could be a red herring.  
> You mean the processing time of the scan result can take more time? I see.
> 
> I am changing the code to divide the limit by number of shards so that  
> we get the expected number of records back from the request. If this  
> doesn't fix the issue I will reply with a recreation.
> 
> Thanks! Sorry for the noise - as usual it is probably user error  
> instead of elasticsearch 🙂 Although I stand by my warning about  
> scroll documentation - the multiplying property of scan is  
> undocumented and may catch other users out.  
> Agreed, it should be documented. Can you help? 🙂
> 
> Grant
> 
> On May 19, 1:23 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Can you provide a recreation in some form? Are you sure you are feeding the scroll\_id you get from each response back to the next request? Btw, the scroll timeout value does not affect any timeout set on the search part.On Thursday, May 19, 2011 at 11:15 PM, Grant Rodgers wrote:
> > 
> > I am using 0.16.1 and scan search type
> > 
> > > On May 19, 1:11 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > > 
> > > > The timeout parameter applies to the next API call, not for the entire duration of the scrolling. Which version are you using, and are you scrolling a scan search type, or a different search type?
> > 
> > > > On Thursday, May 19, 2011 at 11:09 PM, Grant Rodgers wrote:
> > > > 
> > > > > I'm getting this error when scrolling:
> > 
> > > > > {"error":"ReduceSearchPhaseException[Failed to execute phase [fetch],  
> > > > > [reduce] ; shardFailures {SearchContextMissingException[No search  
> > > > > context found for id [353389]]}{RemoteTransportException[[Sigmar]  
> > > > > [inet[/10.198.61.171:9300]][search/phase/scan/scroll]]; nested:  
> > > > > SearchContextMissingException[No search context found for id  
> > > > > [279091]]; }{RemoteTransportException[[Wildpride][inet[/  
> > > > > 10.96.85.229:9300]][search/phase/scan/scroll]]; nested:  
> > > > > SearchContextMissingException[No search context found for id  
> > > > > [205220]]; }{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]]  
> > > > > [search/phase/scan/scroll]]; nested: SearchContextMissingException[No  
> > > > > search context found for id [620590]]; }  
> > > > > {RemoteTransportException[[Zach][inet[/10.97.30.240:9300]][search/  
> > > > > phase/scan/scroll]]; nested: SearchContextMissingException[No search  
> > > > > context found for id [620591]]; }{RemoteTransportException[[Corbo,  
> > > > > Jared][inet[/10.211.95.128:9300]][search/phase/scan/scroll]]; nested:  
> > > > > SearchContextMissingException[No search context found for id  
> > > > > [79383]]; }]; nested: IndexOutOfBoundsException[index (0) must be less  
> > > > > than size (0)]; ","status":500}
> > 
> > > > > This error does not generate a stack trace in the elasticsearch logs.
> > 
> > > > > Initially, my scroll parameter was '5m', and the 'user' time elapsed  
> > > > > (as reported by time command) before the scroll failed was roughly 5  
> > > > > minutes. I then set the scroll parameter to '20m' and the user time  
> > > > > elapsed before the failure was roughly 20 minutes.
> > 
> > > > > Is the scroll time parameter the timeout since the first scroll  
> > > > > request, or since the most recent scroll request? My intuitive  
> > > > > understanding was that the timeout is updated on every scroll request,  
> > > > > since otherwise it would be difficult to scroll very large indices. Is  
> > > > > this an incorrect assumption?
> > 
> > > > > On a related note, the documentation for scrolling needs to be fleshed  
> > > > > out. The scroll uri endpoint is only documented in a few gists  
> > > > > scattered around.

---

<div class="post-metadata">

### Author: ![Grant\_Rodgers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant_rodgers/32/3204_2.png) [@Grant\_Rodgers](https://discuss.elastic.co/u/Grant_Rodgers)
#### Post date: [May 19, 2011, 9:38pm UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/7 "2011-05-19T21:38:32Z")

</div>

Well I discovered that the scan documentation now includes an example  
of how to scroll, so it's better than I expected. I added an example  
to the scrolling page anyway and some other notes. Pull request  
incoming!

On May 19, 2:05 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> On Friday, May 20, 2011 at 12:02 AM, Grant Rodgers wrote:
> 
> After investigating further, this may be intended behavior.
> 
> > In some cases, the scroll loop can take several seconds to complete,  
> > and since the scan type multiplies the limit (currently 100) by the  
> > number of shards (6), that means the time between scroll requests can  
> > be more than 30 minutes. The correlation between user time and scroll  
> > time could be a red herring.
> 
> You mean the processing time of the scan result can take more time? I see.
> 
> > I am changing the code to divide the limit by number of shards so that  
> > we get the expected number of records back from the request. If this  
> > doesn't fix the issue I will reply with a recreation.
> 
> > Thanks! Sorry for the noise - as usual it is probably user error  
> > instead of elasticsearch 🙂 Although I stand by my warning about  
> > scroll documentation - the multiplying property of scan is  
> > undocumented and may catch other users out.
> 
> Agreed, it should be documented. Can you help? 🙂
> 
> > Grant
> 
> > On May 19, 1:23 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Can you provide a recreation in some form? Are you sure you are feeding the scroll\_id you get from each response back to the next request? Btw, the scroll timeout value does not affect any timeout set on the search part.On Thursday, May 19, 2011 at 11:15 PM, Grant Rodgers wrote:
> 
> > > I am using 0.16.1 and scan search type
> 
> > > > On May 19, 1:11 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > > > 
> > > > > The timeout parameter applies to the next API call, not for the entire duration of the scrolling. Which version are you using, and are you scrolling a scan search type, or a different search type?
> 
> > > > > On Thursday, May 19, 2011 at 11:09 PM, Grant Rodgers wrote:
> > > > > 
> > > > > > I'm getting this error when scrolling:
> 
> > > > > > {"error":"ReduceSearchPhaseException[Failed to execute phase [fetch],  
> > > > > > [reduce] ; shardFailures {SearchContextMissingException[No search  
> > > > > > context found for id [353389]]}{RemoteTransportException[[Sigmar]  
> > > > > > [inet[/10.198.61.171:9300]][search/phase/scan/scroll]]; nested:  
> > > > > > SearchContextMissingException[No search context found for id  
> > > > > > [279091]]; }{RemoteTransportException[[Wildpride][inet[/  
> > > > > > 10.96.85.229:9300]][search/phase/scan/scroll]]; nested:  
> > > > > > SearchContextMissingException[No search context found for id  
> > > > > > [205220]]; }{RemoteTransportException[[Zach][inet[/10.97.30.240:9300]]  
> > > > > > [search/phase/scan/scroll]]; nested: SearchContextMissingException[No  
> > > > > > search context found for id [620590]]; }  
> > > > > > {RemoteTransportException[[Zach][inet[/10.97.30.240:9300]][search/  
> > > > > > phase/scan/scroll]]; nested: SearchContextMissingException[No search  
> > > > > > context found for id [620591]]; }{RemoteTransportException[[Corbo,  
> > > > > > Jared][inet[/10.211.95.128:9300]][search/phase/scan/scroll]]; nested:  
> > > > > > SearchContextMissingException[No search context found for id  
> > > > > > [79383]]; }]; nested: IndexOutOfBoundsException[index (0) must be less  
> > > > > > than size (0)]; ","status":500}
> 
> > > > > > This error does not generate a stack trace in the elasticsearch logs.
> 
> > > > > > Initially, my scroll parameter was '5m', and the 'user' time elapsed  
> > > > > > (as reported by time command) before the scroll failed was roughly 5  
> > > > > > minutes. I then set the scroll parameter to '20m' and the user time  
> > > > > > elapsed before the failure was roughly 20 minutes.
> 
> > > > > > Is the scroll time parameter the timeout since the first scroll  
> > > > > > request, or since the most recent scroll request? My intuitive  
> > > > > > understanding was that the timeout is updated on every scroll request,  
> > > > > > since otherwise it would be difficult to scroll very large indices. Is  
> > > > > > this an incorrect assumption?
> 
> > > > > > On a related note, the documentation for scrolling needs to be fleshed  
> > > > > > out. The scroll uri endpoint is only documented in a few gists  
> > > > > > scattered around.

---

<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, 4:05am UTC](https://discuss.elastic.co/t/apparent-scroll-timeout-error/4440/8 "2017-07-06T04:05:48Z")

</div>


