Skip to content

Oracle SQLRecoverableException #6

Description

@kirill1722

Hello

After some time we get the following Exception and Data is lost.

Exception in pipelineworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash
"exception"=>java.sql.SQLRecoverableException: No more data to read from socket

Version
Oracle 11.2.0.4.0

jdbc_streaming {
    jdbc_connection_string => "${xxx}"
    jdbc_user => "${xxx}"
    jdbc_password => "${xxx}"
    jdbc_validate_connection => true
    jdbc_driver_library => "/usr/share/logstash/ojdbc7-12.1.0.2.jar"
    jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
    statement => "select xxx"
    parameters => { "unr" => "xxx"}
    target => "xxx"
}

To fix it the plugin should handle Network or Sql Exceptions with retry. Or validate / refresh connection when SQL Exception occurs.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions