Skip to content

[Bug] Tiered store dispatch metrics silently ignore ConsumeQueueException #11166

Description

@ForIt111

Describe the Bug

TieredStoreMetricsManager catches ConsumeQueueException while collecting the dispatchBehind and dispatchLatency gauges, then silently ignores the exception. The affected callbacks are in initMetrics().

When either collection path fails, the metric has no measurement for that collection cycle and the broker logs do not show the failure. Operators cannot distinguish a zero metric value from an unsuccessful collection attempt.

PopMetricsManager logs ConsumeQueueException with log.error(message, e) for its gauge callbacks. Applying the same handling here keeps the metric callbacks non-disruptive while making failures observable.

Expected Behavior

Tiered Store metric collection failures should be logged with the exception details.

Additional Context

The proposed change only adds error logging in the two existing catch (ConsumeQueueException e) blocks. Normal metric collection and message processing behavior remain unchanged.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions