Skip to content

Conversation

@disksing
Copy link
Collaborator

When receiving ErrClientGetResourceGroup error, distinguish between permanent and transient errors:

  • For 'resource group not found' error, return directly without retry since it's a permanent error
  • For other errors (e.g., 'not leader'), apply backoff and retry since they are transient errors

Add test case TestOnSendFailByResourceGroupError to cover both scenarios:

  1. Test that 'resource group not found' returns immediately without backoff
  2. Test that other errors trigger retry with backoff

When receiving ErrClientGetResourceGroup error, distinguish between
permanent and transient errors:
- For 'resource group not found' error, return directly without retry
  since it's a permanent error
- For other errors (e.g., 'not leader'), apply backoff and retry
  since they are transient errors

Add test case TestOnSendFailByResourceGroupError to cover both scenarios:
1. Test that 'resource group not found' returns immediately without backoff
2. Test that other errors trigger retry with backoff

Signed-off-by: disksing <[email protected]>
@disksing disksing requested a review from iosmanthus October 22, 2025 05:24
@ti-chi-bot ti-chi-bot bot added dco-signoff: yes Indicates the PR's author has signed the dco. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 22, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 22, 2025

@ystaticy: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

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 kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 22, 2025
@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 22, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: iosmanthus, ystaticy

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

The pull request process is described here

Details 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

@ti-chi-bot
Copy link

ti-chi-bot bot commented Oct 22, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-10-22 06:12:08.888394831 +0000 UTC m=+852234.965647391: ☑️ agreed by iosmanthus.

@ti-chi-bot ti-chi-bot bot added the approved label Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved dco-signoff: yes Indicates the PR's author has signed the dco. needs-1-more-lgtm Indicates a PR needs 1 more LGTM. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants