Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jan 29, 2024

Motivation:

testHedgingWhenAllAttemptsResultInNonFatalCodes fails occasionally. The reason for this is that when the event stating that next scheduled attempt is cancelled is consumed it cancels the next scheduled attempt again. However, this is incorrect, another hedged result may have re-scheduled an attempt which is subsequently cancelled by accident.

Modifications:

Don't double cancel the next scheduled attempt.

result:

The test passes more reliably

Motivation:

`testHedgingWhenAllAttemptsResultInNonFatalCodes` fails occasionally.
The reason for this is that when the event stating that next scheduled
attempt is cancelled is consumed it cancels the next scheduled attempt
again. However, this is incorrect, another hedged result may have
re-scheduled an attempt which is subsequently cancelled by accident.

Modifications:

Don't double cancel the next scheduled attempt.

result:

The test passes more reliably
@glbrntt glbrntt requested a review from gjcairo January 29, 2024 17:24
@glbrntt glbrntt added the version/v2 Relates to v2 label Jan 29, 2024
@glbrntt glbrntt merged commit 2034543 into grpc:main Jan 29, 2024
@glbrntt glbrntt deleted the hedging-all-non-fatal branch January 29, 2024 17:43
glbrntt added a commit to glbrntt/grpc-swift that referenced this pull request Feb 5, 2024
…rpc#1780)

Motivation:

`testHedgingWhenAllAttemptsResultInNonFatalCodes` fails occasionally.
The reason for this is that when the event stating that next scheduled
attempt is cancelled is consumed it cancels the next scheduled attempt
again. However, this is incorrect, another hedged result may have
re-scheduled an attempt which is subsequently cancelled by accident.

Modifications:

Don't double cancel the next scheduled attempt.

result:

The test passes more reliably
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version/v2 Relates to v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants