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

Deprecate connectionPoolSize config setting #297

Merged
merged 2 commits into from
Oct 5, 2017

Conversation

lutovich
Copy link
Contributor

@lutovich lutovich commented Oct 3, 2017

In favour of maxConnectionPoolSize. Extracted pool config in a dedicated class which contains logic of handling now deprecated connectionPoolSize and new maxConnectionPoolSize. Added maxConnectionPoolSize to TypeScript declaration. Made code use console.warn instead of console.log for deprecation warnings. Updated test neo4j version to 3.2.5 and allowed stress test run a bit longer.

Currently default value of maxConnectionPoolSize is set to 50. This corresponds to previously default value of connectionPoolSize. We might tune this default in future.

@lutovich lutovich requested review from zhenlineo and ali-ince October 3, 2017 22:44
Copy link
Contributor

@ali-ince ali-ince left a comment

Choose a reason for hiding this comment

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

Changes seem ok for me, but are we deprecating connectionPoolSize (i.e. maxIdleConnectionPoolSize in meaning)?


if (maxIdleSizeConfigured && maxSizeConfigured) {
// both settings are configured - use configured values
maxIdleSize = config.connectionPoolSize;
Copy link
Contributor

Choose a reason for hiding this comment

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

I get same confused as @ali-ince
I thought we just deprecate maxIdle, why we still have two values?
If we want to keep maxIdle, then we should also add maxIdleConnectionPoolSize into config, right? otherwise, we have no reason to keep both two values here, right?

@lutovich
Copy link
Contributor Author

lutovich commented Oct 4, 2017

@ali-ince @zhenlineo you are right, we should probably just point connectionPoolSize to maxConnectionPoolSize since it's name does not say anything about "idle" and remove maxIdleSize from the pool. I'll update the PR.

In favour of `maxConnectionPoolSize`. Extracted pool config in a
dedicated class which contains logic of handling now deprecated
`connectionPoolSize` and new `maxConnectionPoolSize`. Added
`maxConnectionPoolSize` to TypeScript declaration. Made code use
`console.warn` instead of `console.log` for deprecation warnings.
Updated test neo4j version to 3.2.5 and allowed stress test run a
bit longer.
Now it will only have maxSize.
@zhenlineo zhenlineo merged commit d057222 into neo4j:1.5 Oct 5, 2017
@lutovich lutovich deleted the 1.5-pool-configs branch October 5, 2017 09:23
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