-
Notifications
You must be signed in to change notification settings - Fork 28
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
Handle PSQLException
in the FASTEN server and MetadataDBExtension
#466
Conversation
server/src/main/java/eu/fasten/server/plugins/kafka/FastenKafkaPlugin.java
Outdated
Show resolved
Hide resolved
...zer/metadata-plugin/src/main/java/eu/fasten/analyzer/metadataplugin/MetadataDBExtension.java
Outdated
Show resolved
Hide resolved
...e-feeder/src/main/java/eu/fasten/analyzer/debianlicensefeeder/DebianLicenseFeederPlugin.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added several comments.
...zer/metadata-plugin/src/main/java/eu/fasten/analyzer/metadataplugin/MetadataDBExtension.java
Outdated
Show resolved
Hide resolved
@proksch |
Hi Amir, I tried restarting the REST API component for Java/MVN and it won't even come up anymore. I think it's really time to start trying things. What do you think? |
Hi Magiel (@MagielBruntink ) |
If I |
I have created issue #471 as it's not related to this PR. |
...quality-analyzer/src/main/java/eu/fasten/analyzer/qualityanalyzer/QualityAnalyzerPlugin.java
Outdated
Show resolved
Hide resolved
...zer/metadata-plugin/src/main/java/eu/fasten/analyzer/metadataplugin/MetadataDBExtension.java
Outdated
Show resolved
Hide resolved
...e-feeder/src/main/java/eu/fasten/analyzer/debianlicensefeeder/DebianLicenseFeederPlugin.java
Show resolved
Hide resolved
…tyAnalyzerPlugin`
@proksch |
Description
This PR makes the following changes:
PSQLException
has occurred in the plugin.PSQLException
has happened inMetadataDBExtension
, the plugin will be stopped and restarted by K8s or DC.Motivation and context
As discussed in #461, if a
PSQLException
happens in a plugin, it cannot proceed further due to a failed DB connection. Therefore, the plugin should be stopped and restarted by K8s/DC to make a new DB connection.Testing
Tested with the DC.