Skip to content

Treat RESOURCE_EXHAUSTED with retry information as aborted. - #2645

Merged
vkedia merged 3 commits into
googleapis:masterfrom
mairbek:resourceex
Jan 9, 2018
Merged

Treat RESOURCE_EXHAUSTED with retry information as aborted.#2645
vkedia merged 3 commits into
googleapis:masterfrom
mairbek:resourceex

Conversation

@mairbek

Copy link
Copy Markdown

No description provided.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 21, 2017
@vkedia
vkedia self-requested a review November 27, 2017 21:46
* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.
*/
public static long extractRetryDelay(Throwable cause) {

This comment was marked as spam.

This comment was marked as spam.

* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.
*/
public static long extractRetryDelay(Throwable cause) {

This comment was marked as spam.

This comment was marked as spam.


/**
* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.

This comment was marked as spam.

This comment was marked as spam.

/**
* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.
*/

This comment was marked as spam.

This comment was marked as spam.

delay = ((AbortedException) e).getRetryDelayInMillis();
}
long delay = SpannerException.extractRetryDelay(e.getCause());
if (e.getErrorCode() == ErrorCode.ABORTED || (e.getErrorCode() ==

This comment was marked as spam.

@mairbekmairbek left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated the code

/**
* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.
*/

This comment was marked as spam.


/**
* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.

This comment was marked as spam.

* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.
*/
public static long extractRetryDelay(Throwable cause) {

This comment was marked as spam.

* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any
* retry delay. In that case, clients should fall back to a locally computed retry delay.
*/
public static long extractRetryDelay(Throwable cause) {

This comment was marked as spam.

@vkediavkedia left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

couple of minor comments

}

/**
* Return the retry delay for transaction in milliseconds. Return -1 if this does not specify any

This comment was marked as spam.

trailers.put(key, retryInfo);
SpannerException e =
SpannerExceptionFactory.newSpannerException(new StatusRuntimeException(status, trailers));
assertThat(e.isRetryable()).isTrue();

This comment was marked as spam.

This comment was marked as spam.

@vkediavkedia mentioned this pull request Dec 21, 2017
@vkedia
vkedia merged commit a3144a0 into googleapis:masterJan 9, 2018
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
* chore(main): release 3.9.2
* chore: generate libraries at Thu Sep 26 15:09:07 UTC 2024
---------
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
In this PR:
- Do not generate pr_description.txt if googleapis commit is the same in
baseline config and current config.
chingor13 pushed a commit that referenced this pull request Mar 30, 2026
…ge instance in GRPC test (#2645)
* test: Fix storage closure
* test: turn directpath sample test back on
* use storage options instead of storage to avoid the need to close storage
rahul2393 pushed a commit to akash329d/google-cloud-java that referenced this pull request May 21, 2026
)
* feat: add port as a parameter for the bigtable emulator
* chore: generate libraries at Wed Jul 16 21:29:57 UTC 2025
* set the port in emulator class
---------
Co-authored-by: André Barbosa Sampaio <andrebsamp@gmail.com>
Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mairbek@vkedia@googlebot