Skip to content

fix: better query manager and allow setting cookie for dev forward#19692

Open
vogievetsky wants to merge 2 commits into
apache:masterfrom
vogievetsky:better_query_manager
Open

fix: better query manager and allow setting cookie for dev forward#19692
vogievetsky wants to merge 2 commits into
apache:masterfrom
vogievetsky:better_query_manager

Conversation

@vogievetsky

Copy link
Copy Markdown
Contributor

Make it so that background refreshes do not re-jigger the table so much

Also:

  • Allow setting a cookie in the dev forwarder - makes it easier to point the dev console at a live cluster
  • Show autocompact supervisor details

@FrankChen021 FrankChen021 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Severity Findings
P0 0
P1 0
P2 2
P3 0
Total 2
Severity Findings
P0 0
P1 0
P2 2
P3 0
Total 2

Reviewed 6 of 6 changed files.

Found two compaction-details integration issues: the Overlord-only fallback does not identify autocompact rows, and the formatter receives the supervisor wrapper instead of its nested compaction config.


This is an automated review by Codex GPT-5.6-Sol

aggregateLag,
)}`}</span>
) : null;
} else if (original.type === 'autocompact') {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[P2] Handle autocompact type in the non-SQL fallback

On the non-SQL path above, each row's type is derived exclusively from sup.spec.tuningConfig.type. A CompactionSupervisorSpec serializes its type at sup.spec.type and its config at sup.spec.spec, so autocompact rows have original.type === undefined; this new branch therefore never executes when the console is pointed directly at an Overlord. Include sup.spec.type when mapping fallback rows so Details works in this supported mode.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good find. This is a but in the console in general (not introduced in this PR). Fixed it and will now make the PR as a bug fix.

if (!supervisorStatusPayload || !original.spec) return null;
return formatCompactionInfo({
status: supervisorStatusPayload,
config: original.spec as CompactionConfig,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[P2] Pass the nested compaction config

original.spec is the serialized supervisor wrapper ({ type: "autocompact", spec: DataSourceCompactionConfig, ... }), not the compaction config itself. Passing the wrapper makes formatCompactionInfo read skipOffsetFromLatest and inputSegmentSizeBytes from the wrong level, so fully compacted statuses with skipped segments always claim the default P1D exclusion and omit any legacy segment-size exclusion. Pass original.spec.spec instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wow. Good spot.

@FrankChen021 FrankChen021 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Both compaction-details findings are addressed: the Overlord fallback now recognizes spec.type, and Details passes the nested spec.spec compaction config to the formatter. No additional correctness issues found.

Reviewed 6 of 6 changed files.


This is an automated review by Codex GPT-5.6-Sol

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants