Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra safety to local data retrieval #78

Merged
merged 4 commits into from
Jul 9, 2021

Conversation

robbavey
Copy link
Contributor

@robbavey robbavey commented Jul 8, 2021

Under certain cirumstances, retrieving local data from the embedded derby database
can result in an exception being thrown from the Sequel library that is not wrapped in
a SequelError. Prior to this commit, that would result in the exception "escaping" the
plugin, causing the plugin (and the pipeline) to crash.

This commit broadens the scope of the rescue to catch any errors that might result from
that call, enabling the appropriate logging and tagging to take place without crashing
the plugin.

Fixes #77

robbavey added 2 commits July 8, 2021 12:10
Under certain cirumstances, retrieving local data from the embedded derby database
can result in an exception being thrown from the Sequel library that is not wrapped in
a `SequelError`. Prior to this commit, that would result in the exception "escaping" the
plugin, causing the plugin (and the pipeline) to crash.

This commit broadens the scope of the rescue to catch any errors that might result from
that call, enabling the appropriate logging and tagging to take place without crashing
the plugin.

Fixes logstash-plugins#77
Copy link
Contributor

@yaauie yaauie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍌 LGTM

@robbavey robbavey merged commit 8d813e2 into logstash-plugins:master Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ingestion during data refresh can cause plugin to crash
4 participants