Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Skip expired backfills instead of returning error#1674

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
glindstedt wants to merge1 commit intogoogleforgames:main
base:main
Choose a base branch
Loading
fromEmbarkStudios:skip-expired-backfills

Conversation

@glindstedt
Copy link

What this PR does / Why we need it:

If a single backfill has expired it would cause the whole FetchMatches call to error out. Now instead the backfill will be skipped, similar to theNotFound case.

The status code returned for attempting to acknowledge or update an expired backfill is changed from Unavailable since the operation is not retryable. I opted forFailedPrecondition, but maybeInvalidArgument could make more sense since you can't "revive" the backfill, only create a new one if it expired.

Special notes for your reviewer:

There are some formatting changes from format-on-save, let me know if I should remove them to make the PR clearer.

})

// Depends on pendingReleaseTimeout
time.Sleep(1*time.Second)
Copy link
Author

Choose a reason for hiding this comment

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

This is a bit ugly, would be nice if we could have something likek8s.io/utils/clock/testing to pass the time

If a single backfill has expired it would cause the whole FetchMatchescall to error out. Now the backfill will be skipped instead similar tothe NotFound case. The status code returned for attempting toacknowledge or update an expired backfill is changed from Unavailablesince the operation is not retryable.
iferr!=nil {
e,ok:=status.FromError(err)
iferr==errBackfillGenerationMismatch|| (ok&&e.Code()==codes.NotFound) {
iferr==errBackfillGenerationMismatch|| (ok&&(e.Code()==codes.NotFound||e.Code()==codes.FailedPrecondition)) {
Copy link
Author

Choose a reason for hiding this comment

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

This is the main change

govargo added a commit to govargo/open-match that referenced this pull requestJun 24, 2024
govargo added a commit to govargo/open-match that referenced this pull requestJul 24, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@aLekSeraLekSerAwaiting requested review from aLekSeraLekSer is a code owner

@HazWardHazWardAwaiting requested review from HazWard

@calebatwdcalebatwdAwaiting requested review from calebatwdcalebatwd is a code owner

@sawaghsawaghAwaiting requested review from sawagh

@amg84amg84Awaiting requested review from amg84amg84 is a code owner

@scosgravescosgraveAwaiting requested review from scosgravescosgrave is a code owner

@markmandelmarkmandelAwaiting requested review from markmandel

@joeholleyjoeholleyAwaiting requested review from joeholleyjoeholley is a code owner

@kazshinoharakazshinoharaAwaiting requested review from kazshinoharakazshinohara is a code owner

@kemurayamakemurayamaAwaiting requested review from kemurayamakemurayama is a code owner

@govargogovargoAwaiting requested review from govargogovargo is a code owner

@ashutosjiashutosjiAwaiting requested review from ashutosji

1 more reviewer

@lonefreaklonefreaklonefreak approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@glindstedt@lonefreak

[8]ページ先頭

©2009-2025 Movatter.jp