-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix prepared statement reconnect issue
This commit fixes an issue where, if the connection between Logstash and the database fails due to an attempt to use a closed prepared statement. This results in subsequent attempts to use a prepared statement failing when using scheduling, which can only be rectified by restarting Logstash. This commit resets the `statement_prepared` flag, which means that the prepared statement will be recreated upon the next scheduled run. This commit also adds a backtrace to log entries when this issue occurs to provide more visibility into the cause of the issue.
- Loading branch information
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters