Skip to content

fix(search): skip entity repository lookup for tableColumn in PartitionCalculator (backport 2.0 #36097) - #39001

Merged
manerow merged 1 commit into
2.0from
fix/partition-calculator-table-column-guard-2.0
Nov 27, 2026
Merged

manerow merged 1 commit into
2.0from
fix/partition-calculator-table-column-guard-2.0

Conversation

@manerow

@manerow manerow commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Issue

Cherry-pick of #36097

What

PartitionCalculator.getEntityCount returns 0 for tableColumn without looking up an entity repository. Columns are indexed through their parent table and have no repository of their own, so every reindex that included tableColumn logged an ERROR with a stack trace. The count was already 0, so reindex results do not change; only the misleading ERROR goes away.

Why

The same code exists on 2.0. Same change as #36097 on main.

Verification

  • Clean cherry-pick of the merged commit, identical git patch-id --stable.
  • PartitionCalculatorTest passes on this branch (17 tests, 0 failures).

@manerow
manerow requested a review from a team as a code owner November 27, 2026 13:38
@manerow
manerow requested review from sonika-shah and removed request for a team November 27, 2026 13:38
@manerow manerow added the skip-pr-checks Bypass PR metadata validation check label Nov 27, 2026
@manerow
manerow merged commit 00ae591 into 2.0 Nov 27, 2026
51 of 52 checks passed
@manerow
manerow deleted the fix/partition-calculator-table-column-guard-2.0 branch November 27, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant