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

Fix for GH issue 11623 #7

Merged
merged 2 commits into from
Mar 8, 2022
Merged

Fix for GH issue 11623 #7

merged 2 commits into from
Mar 8, 2022

Conversation

ashetkar
Copy link

@ashetkar ashetkar commented Mar 2, 2022

Issue:
When using the YBClusterAwareDataSource with property dataSource.portNumber to specify the port number, the driver was not updating the same in the data source. This was happening since the deprecated setter method BaseDataSource.setPortNumber() was updating another field portNumbers instead of the intended portNumber (singular).

Fix:
Update both these fields in BaseDataSource.setPortNumber().

Note:
The property dataSource.additionalEndpoints, if specified, must include the respective port numbers. Otherwise, the driver will try to connect to them, when required, with the default port number (5433) and not with dataSource.portNumber.

@ashetkar ashetkar requested review from kneeraj and Sfurti-yb March 2, 2022 13:27
@ashetkar ashetkar self-assigned this Mar 2, 2022
@ashetkar
Copy link
Author

ashetkar commented Mar 2, 2022

Fix for yugabyte/yugabyte-db#11623

Copy link

@kneeraj kneeraj left a comment

Choose a reason for hiding this comment

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

LGTM

@ashetkar ashetkar merged commit 063f22f into master Mar 8, 2022
@ashetkar ashetkar deleted the gh_11623 branch March 8, 2022 07:42
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.

2 participants