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

Move conflict messaged to Debug Logging #1232

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

markmandel
Copy link
Member

Conflicts when attempting to update Kubernetes resources is expected and will happen frequently in Agones.

Currently they are reported as errors, and (a) produce a lot of noise, and (b) are reported as errors, which can often be seen as potential issues by end users, as well as red-herring reasons for actual issues.

We may want to wait until #1220 is complete before merging.

Will help with issues also raised in #1218.

@markmandel markmandel added kind/cleanup Refactoring code, fixing up documentation, etc area/operations Installation, updating, metrics etc labels Dec 13, 2019
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: a9d8dfc3-5ecf-4aa4-8dc6-ba9effcf62d7

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1232/head:pr_1232 && git checkout pr_1232
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.3.0-dc57487

Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cyriltovena, markmandel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [cyriltovena,markmandel]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -150,8 +151,14 @@ func (wq *WorkerQueue) processNextWorkItem() bool {
}

if err := wq.SyncHandler(key); err != nil {
// Conflicts are expected, so only show them in debug operations.
if k8serror.IsConflict(err) {
wq.logger.Debug(err)
Copy link
Member

Choose a reason for hiding this comment

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

Should this also use the WithField to include the keyName in the debug log?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good idea. I'll make that change 👍

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

2 similar comments
@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 4c93a5ad-c9bd-4865-bfde-f05492382623

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1232/head:pr_1232 && git checkout pr_1232
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.3.0-81f1cc6

Conflicts when attempting to update Kubernetes resources is expected and
will happen frequently in Agones.

Currently they are reported as errors, and (a) produce a lot of noise,
and (b) are reported as errors, which can often be seen as potential
issues by end users, as well as red-herring reasons for actual issues.

We may want to wait until googleforgames#1220 is complete before merging.

Will help with issues also raised in googleforgames#1218.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 7bc38dce-a89a-4f31-9e70-c65106bcee2d

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1232/head:pr_1232 && git checkout pr_1232
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.3.0-a16bf28

@markmandel markmandel merged commit 9770f3a into googleforgames:master Dec 13, 2019
@markmandel markmandel added this to the 1.3.0 milestone Dec 13, 2019
@markmandel markmandel deleted the logging/debug-conflict branch December 19, 2019 00:19
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
Conflicts when attempting to update Kubernetes resources is expected and
will happen frequently in Agones.

Currently they are reported as errors, and (a) produce a lot of noise,
and (b) are reported as errors, which can often be seen as potential
issues by end users, as well as red-herring reasons for actual issues.

We may want to wait until googleforgames#1220 is complete before merging.

Will help with issues also raised in googleforgames#1218.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/operations Installation, updating, metrics etc kind/cleanup Refactoring code, fixing up documentation, etc size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants