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

The db-cluster-parameter-group does not refresh parameters #665

Conversation

Russsnizza
Copy link
Contributor

@Russsnizza Russsnizza commented Sep 23, 2024

Fixes: #672

Description

This pull request addresses the need to retrieve DB cluster parameters in a paginated manner within the doRefresh() method of the DbClusterParameterGroupResource class.

Changes

Paginated retrieval in doRefresh() method.
Use of an Array String to override lambda's final constraint.

Add string array workaround for marker in AWS RDS API call
Copy link
Contributor

@harjain99 harjain99 left a comment

Choose a reason for hiding this comment

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

Minor feedback on the PR

Comment on lines 155 to 159
String[] marker = {null};
do {
DescribeDbClusterParametersResponse parametersResponse = client.describeDBClusterParameters(
r -> r.dbClusterParameterGroupName(getName()).marker(marker[0])
);
Copy link
Contributor

Choose a reason for hiding this comment

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

The marker should be a String, it doesn't need to be an array.
The sdk has non-lamba builders that can get you past the issue of not being able to update a String value within a lambda

Suggested change
String[] marker = {null};
do {
DescribeDbClusterParametersResponse parametersResponse = client.describeDBClusterParameters(
r -> r.dbClusterParameterGroupName(getName()).marker(marker[0])
);
String marker = {null};
do {
DescribeDbClusterParametersResponse parametersResponse = client.describeDBClusterParameters( DescribeDbClusterParametersRequest.builder().dbClusterParameterGroupName(getName()).marker(marker).build());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@Russsnizza Russsnizza changed the title INFRA-622: The db-cluster-parameter-group does not refresh parameters The db-cluster-parameter-group does not refresh parameters Sep 25, 2024
@harjain99 harjain99 merged commit 192d8be into master Oct 1, 2024
1 check passed
@harjain99 harjain99 deleted the bugfix/db-cluster-parameter-group-does-not-refresh-parameters branch October 1, 2024 20:47
@harjain99 harjain99 restored the bugfix/db-cluster-parameter-group-does-not-refresh-parameters branch October 8, 2024 13:27
@harjain99 harjain99 deleted the bugfix/db-cluster-parameter-group-does-not-refresh-parameters branch October 8, 2024 13:30
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.

The db-cluster-parameter-group does not refresh parameters
2 participants