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

feat: Harvest should reduce batch size and retry when ONTAP times out #2770

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

cgrinds
Copy link
Collaborator

@cgrinds cgrinds commented Mar 22, 2024

No description provided.

z.Logger.Error().Err(err).
Int("oldBatchSize", z.batchSize).
Int("newBatchSize", z.batchSize-100).
Msg("Changed batch_size")
z.batchSize -= 100
return nil, nil
} else if strings.Contains(errMsg, "Timeout: Operation") && z.batchSize > 100 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps it would be better to compare both errMsg and Timeout: Operation in lowercase?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed.

rahulguptajss
rahulguptajss previously approved these changes Mar 25, 2024
Hardikl
Hardikl previously approved these changes Mar 25, 2024
z.Logger.Error().Err(err).
Int("oldBatchSize", z.batchSize).
Int("newBatchSize", z.batchSize-100).
Msg("Changed batch_size")
z.batchSize -= 100
return nil, nil
} else if strings.Contains(errMsg, "Timeout: Operation") && z.batchSize > 100 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed.

@cgrinds cgrinds dismissed stale reviews from Hardikl and rahulguptajss via 7ecc80f March 25, 2024 11:59
@cgrinds cgrinds merged commit cfeb222 into main Mar 25, 2024
10 checks passed
@cgrinds cgrinds deleted the cbg-cm-timeout branch March 25, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants