Infinite plugin restart

Hi,
I'm using Logstash 6.1 with the JDBC input plugin after upgrading from 5.2, and noticed a new behavior that was not there earlier.

Earlier when Logstash was not able to connect to the database or ran into an SQL error, it would terminate - which was fine for my use case, but with version 6.1 after the error it just attempts to restart the plugin with the errors:

Unable to connect to database. Tried 1 times {:error_message=>"Java::JavaSql::SQLRecoverableException: ORA-01033: ORACLE initialization or shutdown in progress\n"}
[ERROR][logstash.pipeline        ] A plugin had an unrecoverable error. Will restart this plugin.

I tried searching for options but can't figure out if there is a way to limit the number of retries so that logstash terminates in case of such errors.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.