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

Cassandra_scaler improvement #4079

Closed
wants to merge 1 commit into from

Conversation

ithesadson
Copy link
Contributor

Signed-off-by: ithesadson thesadson@gmail.com

Current Code: Port information can be assigned in 2 different ways.
a- in clusterIPAddress
b- in port
Change: Removed assignment of port information in clusterIPAddress. Port information can only be entered in the port.

Why is this change necessary?
In case clusterIPAddress contains port information, in previous version of the code there was an unnecessary and incorrect check in clusterIPAddress, it is better to simplify it and only ask to be entered in port variable.

If the clusterIPAddress contains port information, checking if the port information is entered in the clusterIPAddress will cause some errors.
Error example in current code: User enters the following values.
clusterIPAddress: "https://cassandra.test"
port: "9042"
->Expected clusterIPAddress : https://cassandra.test:9042
The actual clusterIPAddress: https://cassandra.test

CheckList

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Signed-off-by: ithesadson <thesadson@gmail.com>
@ithesadson ithesadson requested a review from a team as a code owner January 6, 2023 17:35
Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

I am afraid this is breaking change, because the docs mentions that the port could be specified both ways https://keda.sh/docs/2.9/scalers/cassandra/

Shouldn't we instead try to fix the problematic part and keep the possibility to specify port in both places?

@JorTurFer @tomkerkhove wdyt?

Also could you please open an issue for this and link here. Then add a changelog entry (as was mentioned in the PR template that you have removed)

Thanks!

@JorTurFer
Copy link
Member

I think we should avoid breaking changes

@ithesadson
Copy link
Contributor Author

ithesadson commented Jan 15, 2023

Issue link: #4110 @zroubalik

@zroubalik
Copy link
Member

@ithesadson please don't break the behaviour and keep the original one. Just fix the problem please.

@zroubalik
Copy link
Member

closing in favor of #4162

@zroubalik zroubalik closed this Feb 6, 2023
@ithesadson ithesadson deleted the cassandra_scaler_commit branch March 20, 2023 11:10
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