Skip to content

HIVE-2849: Migrate AWS SDK to v2 #2695

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

2uasimojo
Copy link
Member

No description provided.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 4, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 4, 2025

@2uasimojo: This pull request references HIVE-2849 which is a valid jira issue.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 4, 2025
Copy link
Contributor

openshift-ci bot commented Jun 4, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

openshift-ci bot commented Jun 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 2uasimojo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 4, 2025
@2uasimojo 2uasimojo force-pushed the HIVE-2849/aws-sdk-v2 branch from 9d3441a to 011067d Compare June 4, 2025 21:48
}

func (c *awsClient) WaitUntilVpcPeeringConnectionDeleted(input *ec2.DescribeVpcPeeringConnectionsInput) error {
metricAWSAPICalls.WithLabelValues("WaitUntilVpcPeeringConnectionDeleted").Inc()
Copy link
Member Author

Choose a reason for hiding this comment

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

@jstuever @suhanime request 👀 here.

The point of the metric is so we can track how many times we call a given API. This name (WaitUntilVpcPeeringConnectionDeleted) is from the v1 SDK. I've kept the name for our shim. Question is, is it cool to keep it as the metric label, or should we change it to something else -- like VpcPeeringConnectionDeleted__Wait?

Copy link
Member Author

Choose a reason for hiding this comment

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

A consideration: changing the label would break continuity (start a new time series rather than continuing to add to the existing one) when upgrading hive across the boundary of this commit...

Copy link
Contributor

@suhanime suhanime Jun 4, 2025

Choose a reason for hiding this comment

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

I was thinking of other labels and thought about grouping it according to their core function first - aka, Authorize_* , Describe_* , Revoke_* - and by that logic - Wait_* . The one for wait might need rework to make it make sense on first glance though, or maybe WaitUntil_*?
Also, label name changes are still temporary, and as long as there's no query configured on a dashboard somewhere, it isn't a breaking change. There will be a new time series every time hive is upgraded anyways.

Copy link
Member Author

Choose a reason for hiding this comment

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

If the v1 and v2 SDK funcs have the same name, I see no reason to change the label. If there's some convincing argument for doing so, we can talk about it under a separate card/effort.

The question is what to do about these new cases where the v1 SDK func name does not exist in v2 and we can't use the exact name of the new func -- in this case because it's a generically-named method on an "object" of a specific "class". Your suggestion to use WaitUntil_* actually makes the decision pretty crisp for me: In this case it would mean we're changing WaitUntilVpcPeeringConnectionDeleted to WaitUntil_VpcPeeringConnectionDeleted, which seems not at all worth doing. And the delta between that and Wait_* or *_Wait is not significant. So, unless there's some strong reason to do otherwise, I think I'm going to keep the existing labels wherever feasible.

Thanks for the look!

@2uasimojo 2uasimojo force-pushed the HIVE-2849/aws-sdk-v2 branch 2 times, most recently from 3749bc4 to 76572f3 Compare June 5, 2025 22:35
@2uasimojo 2uasimojo force-pushed the HIVE-2849/aws-sdk-v2 branch from 76572f3 to c7af75f Compare June 20, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants