Skip to content

Retry mechanism for service account#63

Merged
AnkitCLI merged 1 commit into
developfrom
AddingRetryWithFailsafe
Jul 8, 2025
Merged

Retry mechanism for service account#63
AnkitCLI merged 1 commit into
developfrom
AddingRetryWithFailsafe

Conversation

@AnkitCLI

Copy link
Copy Markdown
Collaborator

No description provided.

@AnkitCLI
AnkitCLI force-pushed the AddingRetryWithFailsafe branch 7 times, most recently from d9e9f00 to e5c089a Compare April 30, 2025 09:33
@AnkitCLI
AnkitCLI requested a review from psainics May 5, 2025 04:53
@@ -0,0 +1,48 @@
/*
* Copyright © 2022 Cask Data, Inc.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

return this;
}


Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove extra line

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

* @param statusCode the HTTP status code (should be in the 5xx range)
* @param message the detail message explaining the error
*/
public ServerErrorException(int statusCode, String message) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i think we can use the enum for statusCodes from http lib

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done . In this way?

CryptoKeyName cmekKeyName = CmekUtils.getCmekKey(config.cmekKey, context.getArguments().asMap(), collector);
collector.getOrThrowException();
baseConfiguration = getBaseConfiguration(cmekKeyName);
baseConfiguration.set("initialRetryDuration", Integer.toString(config.getConnection().getInitialRetryDuration()));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

move the keys to BigQueryConstants and follow a similar naming scheme

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

@AnkitCLI
AnkitCLI force-pushed the AddingRetryWithFailsafe branch 3 times, most recently from 2cf8920 to 0707493 Compare May 5, 2025 09:44
@AnkitCLI
AnkitCLI force-pushed the AddingRetryWithFailsafe branch 6 times, most recently from 1011aff to 4bf53f8 Compare June 5, 2025 07:25
@AnkitCLI
AnkitCLI force-pushed the AddingRetryWithFailsafe branch 2 times, most recently from 39dab19 to 2cd1c91 Compare June 16, 2025 06:20
@AnkitCLI
AnkitCLI force-pushed the AddingRetryWithFailsafe branch from dea8c9c to acd0f0d Compare July 8, 2025 05:44
@AnkitCLI
AnkitCLI merged commit e4aa851 into develop Jul 8, 2025
2 checks passed
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.

2 participants