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

Disable autocommit in DB Connection when Retrieving Active Session Count #5528

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

ImalshaG
Copy link
Contributor

@ImalshaG ImalshaG commented Feb 20, 2024

Related issue: wso2/product-is#19586

This PR sets the autocommit option to false in the db connection inside getActiveSessionCount method to fix the SQL exception when pool_options.defaultAutoCommit config is set to true at deployment.toml for that db. When defaultAutoCommit is set to true, we cannot use commitTransaction and therefore with this fix, we will be setting autocommit to false for this db connection.

Similar to: #3191

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/8111719291

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/8111719291
Status: failure

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/8114112012

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/8114112012
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/8114112012

@ImalshaG ImalshaG merged commit 0ce698f into wso2:master Mar 4, 2024
2 checks passed
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