# Help understanding River start/close

**URL:** <https://discuss.elastic.co/t/help-understanding-river-start-close/13793>\
**Category:** Elasticsearch\
**Created:** [September 27, 2013, 6:51pm UTC](https://discuss.elastic.co/t/help-understanding-river-start-close/13793 "2013-09-27T18:51:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benmccann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benmccann/32/420_2.png) [@benmccann](https://discuss.elastic.co/u/benmccann)\
**Post date:** [September 27, 2013, 6:51pm UTC](https://discuss.elastic.co/t/help-understanding-river-start-close/13793/1 "2013-09-27T18:51:07Z")

</div>

I'm helping to maintain the MongoDB ElasticSearch River[https://github.com/richardwilly98/elasticsearch-river-mongodb](https://github.com/richardwilly98/elasticsearch-river-mongodb).  
One thing I'm very unsure about is the conditions under which River.start  
and River.close[https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/river/River.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/river/River.java)will be called. Are these user or system initiated? Can you call start  
again after close has been called?

Thanks,

Ben

P.S. I filed an issue requesting these to be documented[https://github.com/elasticsearch/elasticsearch/issues/3787](https://github.com/elasticsearch/elasticsearch/issues/3787)

--  
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:** ![benmccann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benmccann/32/420_2.png) [@benmccann](https://discuss.elastic.co/u/benmccann)\
**Post date:** [September 30, 2013, 6:51pm UTC](https://discuss.elastic.co/t/help-understanding-river-start-close/13793/2 "2013-09-30T18:51:05Z")

</div>

ping.

On Friday, September 27, 2013 11:51:07 AM UTC-7, Ben McCann wrote:

> I'm helping to maintain the MongoDB Elasticsearch River[https://github.com/richardwilly98/elasticsearch-river-mongodb](https://github.com/richardwilly98/elasticsearch-river-mongodb).  
> One thing I'm very unsure about is the conditions under which River.start  
> and River.close[https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/river/River.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/river/River.java)will be called. Are these user or system initiated? Can you call start  
> again after close has been called?
> 
> Thanks,
> 
> Ben
> 
> P.S. I filed an issue requesting these to be documented[https://github.com/elasticsearch/elasticsearch/issues/3787](https://github.com/elasticsearch/elasticsearch/issues/3787)

--  
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:14am UTC](https://discuss.elastic.co/t/help-understanding-river-start-close/13793/3 "2017-07-06T02:14:13Z")

</div>


