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

Fix logs in orphaned PV controller #1431

Merged

Conversation

rzetelskik
Copy link
Member

@rzetelskik rzetelskik commented Sep 29, 2023

Description of your changes: This PR fixes the logging in orphaned PV controller by:

  1. Logging a manual ref for a non-existing ScyllaCluster instead of currently used KObj, which prints an empty string given a nil argument.
  2. Changing manual refs to KObj where possible.
  3. Logging KObj instead of the entire struct, which currently makes the logs very unreadable and difficult to work with.

The unreadability of the logs can be observed in any of the runs posted in #1240.

@rzetelskik rzetelskik added the kind/bug Categorizes issue or PR as related to a bug. label Sep 29, 2023
@rzetelskik rzetelskik added this to the v1.11 milestone Sep 29, 2023
@scylla-operator-bot scylla-operator-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 29, 2023
Copy link
Collaborator

@zimnx zimnx left a comment

Choose a reason for hiding this comment

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

Good catch.
/lgtm

@scylla-operator-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rzetelskik, zimnx

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

@scylla-operator-bot scylla-operator-bot bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 29, 2023
@scylla-operator-bot scylla-operator-bot bot merged commit 8ac0a21 into scylladb:master Sep 29, 2023
11 checks passed
@rzetelskik rzetelskik deleted the orphanedpv-controller-logs-fix branch September 29, 2023 11:00
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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants