Skip to content

Revert entityType discriminator and HTS upper-case predicate fix (#696, #758) - #761

Merged
teamurko merged 1 commit into
linkedin:mainfrom
ruolin59:rufan-linkedin-revert-combine-commits
Sep 22, 2026
Merged

teamurko merged 1 commit into
linkedin:mainfrom
ruolin59:rufan-linkedin-revert-combine-commits

Conversation

@ruolin59

Copy link
Copy Markdown
Collaborator

Summary

Reverts two related commits:

#758 was a hotfix for a production incident (HTS connection saturation) caused by
getUserTable scanning the full user_table_row table instead of using the
idx_user_table_upper_db_table functional index, a regression introduced by #696's
handwritten lower(...) predicates.

This PR reverts both changes back to the pre-#696 state, restoring the original
findByDatabaseIdIgnoreCaseAndTableIdIgnoreCase-based query path (which naturally
matched the functional index) and removing the entity_type discriminator column,
EntityType enum, and related JDBC/API/test surface added by #696.

A follow-up PR will reintroduce both changes together, combined into a single
commit, so the entityType feature and its required index-compatible predicate fix
land atomically.

Test plan

  • ./gradlew :services:housetables:test :services:common:test passes.
  • ./gradlew spotlessCheck passes (run with -x CopyGitHooksTask, a pre-existing
    worktree-incompatibility in the git-hooks Gradle task, unrelated to this change).

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

…nkedin#696)" and "Use upper-case HTS predicates to match the functional index (linkedin#758)"

This reverts commit eca3ca3 (linkedin#696) and
commit 2cdbb83 (linkedin#758).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@teamurko
teamurko merged commit 4ffabcc into linkedin:main Sep 22, 2026
1 check passed
ruolin59 added a commit to ruolin59/openhouse that referenced this pull request Sep 22, 2026
…#696, linkedin#758 combined)

Combines two previously-separate commits into one so the entityType
discriminator feature and its required index-compatible predicate lands
atomically:

- Add entityType discriminator and table-scoped HTS queries (originally linkedin#696)
- Use upper-case HTS predicates to match the functional index (originally linkedin#758,
  a hotfix for a production incident caused by linkedin#696's lower(...) predicates
  bypassing idx_user_table_upper_db_table)

See the reverted PR (linkedin#761 revert of linkedin#696/linkedin#758) for background on why these two
were split apart and are now being reintroduced together.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ruolin59 added a commit to ruolin59/openhouse that referenced this pull request Sep 22, 2026
…fix (linkedin#696, linkedin#758)" (linkedin#761)

This reverts the revert in linkedin#761, restoring linkedin#696 and linkedin#758 combined into a
single commit:

- Add entityType discriminator and table-scoped HTS queries (originally linkedin#696)
- Use upper-case HTS predicates to match the functional index (originally
  linkedin#758, a hotfix for the production incident caused by linkedin#696's handwritten
  lower(...) predicates bypassing the idx_user_table_upper_db_table
  functional index)

Co-authored-by: Copilot App <223556219+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.

2 participants