Hi,
when using JDBC River's 'simple' strategy (with 'poll' reindexing
configured) on MySQL (5.5), if connection to the database is not
available on one reindexing attempt with exception
[ERROR][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource]
while opening read connection: jdbc:mysql://databaseXY Communications
link failure
....
Caused by: java.net.ConnectException: Connection refused
...
this causes NullPointerException in jdbc river:
ERROR][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow]
java.lang.NullPointerException
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource.executeQuery(SimpleRiverSource.java:409)
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource.fetch(SimpleRiverSource.java:238)
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow.move(SimpleRiverFlow.java:181)
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow.run(SimpleRiverFlow.java:139)
at java.lang.Thread.run(Thread.java:662)
which breaks the river in sense that next scheduled
reindexing/re-import will not occur later/again, even if database
becomes available (seems this is due to unhandled NPE caused by null
Connection from connectionForReading(); which then breaks the river)
ElasticSearch version is 0.90.0.Beta1+ and plugin version is 2.2.0
Hi,
when using JDBC River's 'simple' strategy (with 'poll' reindexing
configured) on MySQL (5.5), if connection to the database is not
available on one reindexing attempt with exception
[ERROR][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource]
while opening read connection: jdbc:mysql://databaseXY Communications
link failure
....
Caused by: java.net.ConnectException: Connection refused
...
this causes NullPointerException in jdbc river:
ERROR][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow]
java.lang.NullPointerException
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource.executeQuery(SimpleRiverSource.java:409)
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource.fetch(SimpleRiverSource.java:238)
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow.move(SimpleRiverFlow.java:181)
at org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow.run(SimpleRiverFlow.java:139)
at java.lang.Thread.run(Thread.java:662)
which breaks the river in sense that next scheduled
reindexing/re-import will not occur later/again, even if database
becomes available (seems this is due to unhandled NPE caused by null
Connection from connectionForReading(); which then breaks the river)
Elasticsearch version is 0.90.0.Beta1+ and plugin version is 2.2.0
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.