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

Add more logs for queue operations #122

Merged

Conversation

ardaguclu
Copy link
Member

No description provided.

@openshift-ci openshift-ci bot requested review from atiratree and mfojtik July 18, 2023 14:20
Copy link
Member

@atiratree atiratree left a comment

Choose a reason for hiding this comment

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

is another point of contention that could stop the works. Can you please add to the end of the function?

klog.V(2).Infof("synced cluster resource quota controller")

I have not seen any discovery/monitor failures in KCM in the failed jobs, but it is generally good to know when the syncing has finished since it can freeze the work

@@ -91,6 +96,7 @@ func (e *workQueueBucket) GetWithData() (interface{}, []interface{}, bool) {
return nil, []interface{}{}, shutdown
}

klog.V(2).Infof("key %s is gotten from queue", key)
Copy link
Member

Choose a reason for hiding this comment

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

please add the print after the lock to preserve a raciness, if there is one

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll use this one to prove that item is obtained from queue and to ensure that the raciness, I've added klog.V(2).Infof("lock acquired and key % is added in progress list", key)

Copy link
Member

Choose a reason for hiding this comment

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

ack, let's see what we get with this

@ardaguclu ardaguclu changed the title Add more logs for queue operations WIP: Add more logs for queue operations Jul 19, 2023
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 19, 2023
@ardaguclu
Copy link
Member Author

Thanks for review @atiratree. Updated according to your suggestions.

@ardaguclu ardaguclu changed the title WIP: Add more logs for queue operations Add more logs for queue operations Jul 19, 2023
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 19, 2023
@atiratree
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ardaguclu, atiratree

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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 19, 2023
@atiratree
Copy link
Member

this extra logging is required for debugging purposes and should be remove in the future

@ardaguclu
Copy link
Member Author

this extra logging is required for debugging purposes and should be remove in the future

I'll open a revert PR, once we sort out the problem.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 19, 2023

@ardaguclu: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 0dff401 into openshift:master Jul 19, 2023
7 checks passed
@ardaguclu ardaguclu deleted the add-logs-for-queue branch July 19, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants