Skip to content

Only have one Hibernate SessionFactory#1

Open
TimeInvestor wants to merge 1 commit intosergueik:masterfrom
TimeInvestor:patch-1
Open

Only have one Hibernate SessionFactory#1
TimeInvestor wants to merge 1 commit intosergueik:masterfrom
TimeInvestor:patch-1

Conversation

@TimeInvestor
Copy link
Copy Markdown

I think this is the root cause of this plugin causing too many DB connections especially when one has many Jenkins slaves.
I have tested this change on local setting.

I think this is the root cause of this plugin causing too many DB connections especially when one has many Jenkins slaves.
I have tested this change on local setting.
@ricardogarfe
Copy link
Copy Markdown

Hi!
I used this solution and worked for me. But I reverted it because it hasn't pass tests on jenkins CI.

Thus we should refactor more code that it seems.
Take a look my other changes and configure hibernate xml file.
Thanks for your help ! 👍

@sergueik
Copy link
Copy Markdown
Owner

Hello
I merged your change (also renamed the retval to _sessionFactory). To make project pass the CI build,
I currently marked with @ignore and commented out 14 failing unit and integration tests. I still need to remove the BuildEnvironment classes (that I added a long time ago) which do not appear to be useful at all. I will then research the failing tests. Please stay tuned

@sergueik
Copy link
Copy Markdown
Owner

removed the BuildEnvironment. All earlier commented tests are still commented. Please review the last revision and act accordingly

@ricardogarfe
Copy link
Copy Markdown

Hi ! I've fix session factory test to rule with new property, take a look my new pull request:

We have to discuss how to fix last test failure testInvalidJdbcDriverShouldFail from WhenTestingDataSource file.

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