8000 fix(inkless:consolidation): exclude consolidation from ConsumerLag [KC-546] by viktorsomogyi · Pull Request #816 · aiven/inkless · GitHub
[go: up one dir, main page]

Skip to content

fix(inkless:consolidation): exclude consolidation from ConsumerLag [KC-546] - #816

Merged
viktorsomogyi merged 2 commits into
mainfrom
svv/consumer-lag-fix
Oct 2, 2026
Merged

viktorsomogyi merged 2 commits into
mainfrom
svv/consumer-lag-fix

Conversation

@viktorsomogyi
Copy link
Copy Markdown
Contributor

ConsolidationFetcherThread inherits AbstractFetcherThread lag tracking, so its diskless-to-local backlog was registered under FetcherLagMetrics.ConsumerLag alongside classic replica lag. Dashboards and scrapers that sum that metric then treat consolidation backlog as replica catch-up.

Skip only the ConsumerLag JMX gauge for consolidation fetchers while keeping in-memory fetcherLagStats for MaxLag. ConsolidationLocalLag remains the external first-hop lag signal.

Test plan

  • :core:test AbstractFetcherThreadTest, ReplicaFetcherThreadTest, ConsolidationFetcherThreadTest
  • spotlessCheck; vale on the added prose

Assisted-by: Composer

…C-546]

ConsolidationFetcherThread inherits AbstractFetcherThread lag tracking, so its
diskless-to-local backlog was registered under FetcherLagMetrics.ConsumerLag
alongside classic replica lag. Dashboards and scrapers that sum that metric then
treat consolidation backlog as replica catch-up.

Skip only the ConsumerLag JMX gauge for consolidation fetchers while keeping
in-memory fetcherLagStats for MaxLag. ConsolidationLocalLag remains the
external first-hop lag signal.

Test plan
- :core:test AbstractFetcherThreadTest, ReplicaFetcherThreadTest,
  ConsolidationFetcherThreadTest
- spotlessCheck; vale on the added prose

Assisted-by: Composer
@viktorsomogyi
viktorsomogyi marked this pull request as ready for review October 2, 2026 13:31
@giuseppelillo
giuseppelillo requested a balanced review from Copilot October 2, 2026 13:34
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

An added comment violates the mandatory identifier-formatting rules for Inkless-owned prose.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Excludes consolidation backlog from Kafka’s generic ConsumerLag metric while retaining internal MaxLag tracking.

Changes:

  • Makes ConsumerLag gauge registration configurable.
  • Disables the gauge for consolidation fetchers.
  • Adds tests, documentation, and ownership metadata.
File Description
INKLESS_OWNERSHIP Marks AbstractFetcherThread.scala as interleaved.
docs/​inkless/​DISKLESS_CONSOLIDATION.md Documents consolidation lag metrics.
ConsolidationFetcherThreadTest.scala Tests gauge suppression and lag tracking.
AbstractFetcherThread.scala Adds conditional gauge registration.
ConsolidationFetcherThread.scala Disables ConsumerLag registration.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Updated comments for clarity and consistency.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@viktorsomogyi
viktorsomogyi merged commit 0e8d3d1 into main Oct 2, 2026
6 checks passed
@viktorsomogyi
viktorsomogyi deleted the svv/consumer-lag-fix branch October 2, 2026 14:13
jeqo pushed a commit that referenced this pull request Oct 19, 2026
…C-546] (#816)

* fix(inkless:consolidation): exclude consolidation from ConsumerLag [KC-546]

ConsolidationFetcherThread inherits AbstractFetcherThread lag tracking, so its
diskless-to-local backlog was registered under FetcherLagMetrics.ConsumerLag
alongside classic replica lag. Dashboards and scrapers that sum that metric then
treat consolidation backlog as replica catch-up.

Skip only the ConsumerLag JMX gauge for consolidation fetchers while keeping
in-memory fetcherLagStats for MaxLag. ConsolidationLocalLag remains the
external first-hop lag signal.

Test plan
- :core:test AbstractFetcherThreadTest, ReplicaFetcherThreadTest,
  ConsolidationFetcherThreadTest
- spotlessCheck; vale on the added prose

Assisted-by: Composer

* Refine comments in ConsolidationFetcherThread

Updated comments for clarity and consistency.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
jeqo pushed a commit that referenced this pull request Oct 19, 2026
…C-546] (#816)

* fix(inkless:consolidation): exclude consolidation from ConsumerLag [KC-546]

ConsolidationFetcherThread inherits AbstractFetcherThread lag tracking, so its
diskless-to-local backlog was registered under FetcherLagMetrics.ConsumerLag
alongside classic replica lag. Dashboards and scrapers that sum that metric then
treat consolidation backlog as replica catch-up.

Skip only the ConsumerLag JMX gauge for consolidation fetchers while keeping
in-memory fetcherLagStats for MaxLag. ConsolidationLocalLag remains the
external first-hop lag signal.

Test plan
- :core:test AbstractFetcherThreadTest, ReplicaFetcherThreadTest,
  ConsolidationFetcherThreadTest
- spotlessCheck; vale on the added prose

Assisted-by: Composer

* Refine comments in ConsolidationFetcherThread

Updated comments for clarity and consistency.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
jeqo pushed a commit that referenced this pull request Oct 19, 2026
…C-546] (#816)

* fix(inkless:consolidation): exclude consolidation from ConsumerLag [KC-546]

ConsolidationFetcherThread inherits AbstractFetcherThread lag tracking, so its
diskless-to-local backlog was registered under FetcherLagMetrics.ConsumerLag
alongside classic replica lag. Dashboards and scrapers that sum that metric then
treat consolidation backlog as replica catch-up.

Skip only the ConsumerLag JMX gauge for consolidation fetchers while keeping
in-memory fetcherLagStats for MaxLag. ConsolidationLocalLag remains the
external first-hop lag signal.

Test plan
- :core:test AbstractFetcherThreadTest, ReplicaFetcherThreadTest,
  ConsolidationFetcherThreadTest
- spotlessCheck; vale on the added prose

Assisted-by: Composer

* Refine comments in ConsolidationFetcherThread

Updated comments for clarity and consistency.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0