Skip to content

[bugfix] workqueue metrics are mising #5954

@RainbowMango

Description

@RainbowMango

What happened:
We received reports that the controller's work queue metrics can not be emitted. (See #5945 for more details, thanks to @CharlesQQ for reporting this).

This issue occurred before and was fixed in release 1.0 in #945, and then we made some subsequent impairments in #2899 and #3012. (Thanks to @Garrybest for doing this)

However after #2998 and #4706, this issue was introduced again in release-1.10.

This issue is used to track any relevant fix to ensure the problem is fully resolved without introducing any potential risk.

Root Cause:
From Go 1.21, the program initialization order was changed, and the metrics from the controller-runtime missed the chance of registration.

Iteration tasks:

Other Potential risks

References:

  • From Go 1.21, the program initialization order was specified more precisely. See Go 1.21 release notes for more details.

Echo from the release notes:

Package initialization order is now specified more precisely. The new algorithm is:

  • Sort all packages by import path.
  • Repeat until the list of packages is empty:
    • Find the first package in the list for which all imports are already initialized.
    • Initialize that package and remove it from the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    Status

    Planned In Release 1.13

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions