# River unit test failing with ES 0.90.6

**URL:** <https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256>\
**Category:** Elasticsearch\
**Created:** [November 5, 2013, 9:43am UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256 "2013-11-05T09:43:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Louapre](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Richard\_Louapre](https://discuss.elastic.co/u/Richard_Louapre)\
**Post date:** [November 5, 2013, 9:43am UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/1 "2013-11-05T09:43:38Z")

</div>

Hi,

I try to migrate my plugin to ES 0.90.6 but most of my unit tests fail.

I have create a simple dummy river [1] that also fail with 0.90.6 but pass  
with 0.90.5 (change ES version in pom.xml).

It looks like something has been changed in the way river are registered  
and then started during unit test.

Any advice on what has been changed on to make unit test working with ES  
0.90.6?

[1] - [https://github.com/richardwilly98/my-dummy-river/tree/master](https://github.com/richardwilly98/my-dummy-river/tree/master)

Thanks,  
Richard.

--  
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:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [November 5, 2013, 1:57pm UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/2 "2013-11-05T13:57:29Z")

</div>

Hi,  
sounds weird, what kind of failures do you get? I quickly tried updating a  
river that I wrote a while ago and didn't have issues.

On Tuesday, November 5, 2013 10:43:38 AM UTC+1, Richard Louapre wrote:

> Hi,
> 
> I try to migrate my plugin to ES 0.90.6 but most of my unit tests fail.
> 
> I have create a simple dummy river [1] that also fail with 0.90.6 but pass  
> with 0.90.5 (change ES version in pom.xml).
> 
> It looks like something has been changed in the way river are registered  
> and then started during unit test.
> 
> Any advice on what has been changed on to make unit test working with ES  
> 0.90.6?
> 
> [1] - [GitHub - richardwilly98/my-dummy-river: My Dummy River](https://github.com/richardwilly98/my-dummy-river/tree/master)
> 
> Thanks,  
> Richard.

--  
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:** ![Richard\_Louapre](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Richard\_Louapre](https://discuss.elastic.co/u/Richard_Louapre)\
**Post date:** [November 5, 2013, 2:13pm UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/3 "2013-11-05T14:13:23Z")

</div>

Basically the river is registered but ES does not call River.start() method.

Thanks,  
Richard.

On Tuesday, November 5, 2013 8:57:29 AM UTC-5, Luca Cavanna wrote:

> Hi,  
> sounds weird, what kind of failures do you get? I quickly tried updating a  
> river that I wrote a while ago and didn't have issues.
> 
> On Tuesday, November 5, 2013 10:43:38 AM UTC+1, Richard Louapre wrote:
> 
> > Hi,
> > 
> > I try to migrate my plugin to ES 0.90.6 but most of my unit tests fail.
> > 
> > I have create a simple dummy river [1] that also fail with 0.90.6 but  
> > pass with 0.90.5 (change ES version in pom.xml).
> > 
> > It looks like something has been changed in the way river are registered  
> > and then started during unit test.
> > 
> > Any advice on what has been changed on to make unit test working with ES  
> > 0.90.6?
> > 
> > [1] - [GitHub - richardwilly98/my-dummy-river: My Dummy River](https://github.com/richardwilly98/my-dummy-river/tree/master)
> > 
> > Thanks,  
> > Richard.

--  
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:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 5, 2013, 2:53pm UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/4 "2013-11-05T14:53:17Z")

</div>

May be a stupid question. Did you mvn clean before launching your tests?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 5 nov. 2013 à 15:13, Richard Louapre [richard.louapre@gmail.com](mailto:richard.louapre@gmail.com) a écrit :

> Basically the river is registered but ES does not call River.start() method.
> 
> Thanks,  
> Richard.
> 
> On Tuesday, November 5, 2013 8:57:29 AM UTC-5, Luca Cavanna wrote:
> 
> > Hi,  
> > sounds weird, what kind of failures do you get? I quickly tried updating a river that I wrote a while ago and didn't have issues.
> > 
> > On Tuesday, November 5, 2013 10:43:38 AM UTC+1, Richard Louapre wrote:
> > 
> > > Hi,
> > > 
> > > I try to migrate my plugin to ES 0.90.6 but most of my unit tests fail.
> > > 
> > > I have create a simple dummy river [1] that also fail with 0.90.6 but pass with 0.90.5 (change ES version in pom.xml).
> > > 
> > > It looks like something has been changed in the way river are registered and then started during unit test.
> > > 
> > > Any advice on what has been changed on to make unit test working with ES 0.90.6?
> > > 
> > > [1] - [GitHub - richardwilly98/my-dummy-river: My Dummy River](https://github.com/richardwilly98/my-dummy-river/tree/master)
> > > 
> > > Thanks,  
> > > Richard.
> 
> --  
> 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).

--  
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:** ![Richard\_Louapre](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Richard\_Louapre](https://discuss.elastic.co/u/Richard_Louapre)\
**Post date:** [November 5, 2013, 3:11pm UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/5 "2013-11-05T15:11:07Z")

</div>

Always 😉

On Tuesday, November 5, 2013 9:53:17 AM UTC-5, David Pilato wrote:

> May be a stupid question. Did you mvn clean before launching your tests?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 5 nov. 2013 à 15:13, Richard Louapre \<[richard...@gmail.com](mailto:richard...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> Basically the river is registered but ES does not call River.start()  
> method.
> 
> Thanks,  
> Richard.
> 
> On Tuesday, November 5, 2013 8:57:29 AM UTC-5, Luca Cavanna wrote:
> 
> > Hi,  
> > sounds weird, what kind of failures do you get? I quickly tried updating  
> > a river that I wrote a while ago and didn't have issues.
> > 
> > On Tuesday, November 5, 2013 10:43:38 AM UTC+1, Richard Louapre wrote:
> > 
> > > Hi,
> > > 
> > > I try to migrate my plugin to ES 0.90.6 but most of my unit tests fail.
> > > 
> > > I have create a simple dummy river [1] that also fail with 0.90.6 but  
> > > pass with 0.90.5 (change ES version in pom.xml).
> > > 
> > > It looks like something has been changed in the way river are registered  
> > > and then started during unit test.
> > > 
> > > Any advice on what has been changed on to make unit test working with ES  
> > > 0.90.6?
> > > 
> > > [1] - [GitHub - richardwilly98/my-dummy-river: My Dummy River](https://github.com/richardwilly98/my-dummy-river/tree/master)
> > > 
> > > Thanks,  
> > > Richard.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > 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:** ![Richard\_Louapre](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@Richard\_Louapre](https://discuss.elastic.co/u/Richard_Louapre)\
**Post date:** [November 5, 2013, 3:37pm UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/6 "2013-11-05T15:37:57Z")

</div>

I have enabled DEBUG log level.

Here is the sequence for 0.90.5:  
2013-11-05 10:24:57,460 INFO org.elasticsearch.cluster.metadata -  
[Ka-Zar] [\_river] creating index, cause [auto(index api)], shards [1]/[0],  
mappings   
2013-11-05 10:24:57,468 DEBUG org.elasticsearch.river.cluster - [Ka-Zar]  
processing [reroute\_rivers\_node\_changed]: execute  
2013-11-05 10:24:57,469 DEBUG org.elasticsearch.river.cluster - [Ka-Zar]  
processing [reroute\_rivers\_node\_changed]: no change in cluster\_state  
2013-11-05 10:24:57,613 DEBUG org.elasticsearch.river.cluster - [Ka-Zar]  
processing [reroute\_rivers\_node\_changed]: execute  
2013-11-05 10:24:57,613 DEBUG org.elasticsearch.river.cluster - [Ka-Zar]  
processing [reroute\_rivers\_node\_changed]: no change in cluster\_state  
2013-11-05 10:24:57,705 INFO  
org.elasticsearch.com.github.richardwilly98.elasticsearch.MyDummyRiverTest

- Done Cluster Health, status GREEN  
2013-11-05 10:24:57,707 INFO org.elasticsearch.cluster.metadata -  
[Ka-Zar] [\_river] update\_mapping [my-dummy-river-1383665094926] (dynamic)  
2013-11-05 10:24:57,709 DEBUG org.elasticsearch.river.cluster - [Ka-Zar]  
processing [reroute\_rivers\_node\_changed]: execute  
_2013-11-05 10:24:57,711 DEBUG org.elasticsearch.river.cluster - [Ka-Zar]  
cluster state updated, version [1], source [reroute\_rivers\_node\_changed]_  
2013-11-05 10:24:57,712 DEBUG org.elasticsearch.river.cluster - [Ka-Zar]  
processing [reroute\_rivers\_node\_changed]: done applying updated  
cluster\_state  
2013-11-05 10:24:57,713 DEBUG org.elasticsearch.river - [Ka-Zar] creating  
river [my-dummy-river][my-dummy-river-1383665094926]  
2013-11-05 10:24:57,716 INFO  
org.elasticsearch.com.github.richardwilly98.elasticsearch.MyDummyRiver -  
[Ka-Zar] [my-dummy-river][my-dummy-river-1383665094926] start:  
my-dummy-river-1383665094926

Here is the sequence for 0.90.6:  
2013-11-05 10:29:17,607 INFO org.elasticsearch.cluster.metadata - [Vegas]  
[\_river] creating index, cause [auto(index api)], shards [1]/[0], mappings  
  
2013-11-05 10:29:17,754 DEBUG org.elasticsearch.river.cluster - [Vegas]  
processing [reroute\_rivers\_node\_changed]: execute  
2013-11-05 10:29:17,754 DEBUG org.elasticsearch.river.cluster - [Vegas]  
processing [reroute\_rivers\_node\_changed]: no change in cluster\_state  
2013-11-05 10:29:17,784 DEBUG org.elasticsearch.river.cluster - [Vegas]  
processing [reroute\_rivers\_node\_changed]: execute  
2013-11-05 10:29:17,784 DEBUG org.elasticsearch.river.cluster - [Vegas]  
processing [reroute\_rivers\_node\_changed]: no change in cluster\_state  
2013-11-05 10:29:17,859 INFO org.elasticsearch.cluster.metadata - [Vegas]  
[\_river] update\_mapping [my-dummy-river-1383665355042] (dynamic)  
2013-11-05 10:29:17,863 DEBUG org.elasticsearch.river.cluster - [Vegas]  
processing [reroute\_rivers\_node\_changed]: execute  
2013-11-05 10:29:17,865 DEBUG org.elasticsearch.river.cluster - [Vegas]  
processing [reroute\_rivers\_node\_changed]: no change in cluster\_state  
2013-11-05 10:29:17,884 INFO  
org.elasticsearch.com.github.richardwilly98.elasticsearch.MyDummyRiverTest

- Done Cluster Health, status GREEN  
2013-11-05 10:29:17,946 ERROR  
org.elasticsearch.com.github.richardwilly98.elasticsearch.MyDummyRiverTest
- testRiverStarted failed.

reroute\_rivers\_node\_changed seems to be missing.

Thanks,  
Richard.

On Tuesday, November 5, 2013 10:11:07 AM UTC-5, Richard Louapre wrote:

> Always 😉
> 
> On Tuesday, November 5, 2013 9:53:17 AM UTC-5, David Pilato wrote:
> 
> > May be a stupid question. Did you mvn clean before launching your tests?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 5 nov. 2013 à 15:13, Richard Louapre [richard...@gmail.com](mailto:richard...@gmail.com) a écrit :
> > 
> > Basically the river is registered but ES does not call River.start()  
> > method.
> > 
> > Thanks,  
> > Richard.
> > 
> > On Tuesday, November 5, 2013 8:57:29 AM UTC-5, Luca Cavanna wrote:
> > 
> > > Hi,  
> > > sounds weird, what kind of failures do you get? I quickly tried updating  
> > > a river that I wrote a while ago and didn't have issues.
> > > 
> > > On Tuesday, November 5, 2013 10:43:38 AM UTC+1, Richard Louapre wrote:
> > > 
> > > > Hi,
> > > > 
> > > > I try to migrate my plugin to ES 0.90.6 but most of my unit tests fail.
> > > > 
> > > > I have create a simple dummy river [1] that also fail with 0.90.6 but  
> > > > pass with 0.90.5 (change ES version in pom.xml).
> > > > 
> > > > It looks like something has been changed in the way river are  
> > > > registered and then started during unit test.
> > > > 
> > > > Any advice on what has been changed on to make unit test working with  
> > > > ES 0.90.6?
> > > > 
> > > > [1] - [GitHub - richardwilly98/my-dummy-river: My Dummy River](https://github.com/richardwilly98/my-dummy-river/tree/master)
> > > > 
> > > > Thanks,  
> > > > Richard.
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@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:** [November 5, 2013, 3:45pm UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/7 "2013-11-05T15:45:07Z")

</div>

Same here, trying to update JDBC river to 0.90.6. It does not execute the  
start method.

Am I doing something wrong?

Debug log:

> <https://gist.github.com/jprante/7321028>

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:** [November 5, 2013, 4:01pm UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/8 "2013-11-05T16:01:05Z")

</div>

Issue created at [River does not start · Issue #4089 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/4089)

Jörg

On Tue, Nov 5, 2013 at 4:45 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<[joergprante@gmail.com](mailto:joergprante@gmail.com)

> wrote:

> Same here, trying to update JDBC river to 0.90.6. It does not execute the  
> start method.
> 
> Am I doing something wrong?
> 
> Debug log:
> 
> [Elasticsearch 0.90.6 river test · GitHub](https://gist.github.com/jprante/7321028)
> 
> 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:** ![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:08am UTC](https://discuss.elastic.co/t/river-unit-test-failing-with-es-0-90-6/14256/9 "2017-07-06T02:08:46Z")

</div>


