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 ability to specify a class for a stale connection #128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hhellbusch
Copy link

for example - want the resulting datasource validations to look like -

<validation>
        <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
        <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
        <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
    </validation>

@wildfly-ci
Copy link

Hello, hhellbusch. I'm waiting for one of the admins to verify this patch with /ok-to-test in a comment.

Available Commands:

/help Display this help text.

/ok-to-test Add the user to the approved list of testers and run tests.

/retest Rerun all tests.

@@ -457,6 +457,14 @@ function generate_external_datasource_xml() {
<background-validation-millis>${millis}</background-validation-millis>"
fi


# allows for specificaiton of a stale-connection-checker
stale_checker=$(find_env "${prefix}_STALE_CONNECTION_CHECKER")
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind logging a CLOUD_XXX issue for this?
We have now a dual way of handling env var. sed patching and CLI operations sent to the server.


So you will need to update this part too.
We are also adding new env var to https://github.com/wildfly/wildfly-cekit-modules/blob/master/jboss/container/wildfly/launch/datasources/module.yaml for documentation purpose.

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, not sure where to create a CLOUD_XXX issue... Can you share the link? First time contributing here :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, you can log a JIRA using https://issues.jboss.org the project to log the issue against is Cloud Enablement. Then you can use the created CLOUD-XXX id in the commit description, for example: "Fix for CLOUD-XXX: add ability to specify a class for a stale connection"

Copy link
Author

Choose a reason for hiding this comment

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

ticket has been opened -
https://issues.jboss.org/browse/CLOUD-3427

Cheers!

@hhellbusch
Copy link
Author

@jfdenise i know its been a few years... is this PR still of use to ya'll? looks like the jira i opened never had any traction either.

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.

3 participants