Fix Processing Partition picked up without active workers#25989
Fix Processing Partition picked up without active workers#25989mohityadav766 merged 10 commits intomainfrom
Conversation
...penmetadata/service/apps/bundles/searchIndex/distributed/DistributedSearchIndexExecutor.java
Show resolved
Hide resolved
🔍 CI failure analysis for 51ea34b: Multiple Playwright shards failing with E2E test flakiness (2 total failures across 1,298 tests) - UI timing assertions in Metric/Tag/Entity pages, unrelated to backend changes.IssueMultiple playwright-ci-postgresql jobs failed with E2E test flakiness: Shard 5/6 (job 64252594684): 1 failure out of 667 tests
Shard 6/6 (job 64252594683): 1 failure out of 632 tests
Combined: 2 failures out of 1,298 total tests (0.15% failure rate) Root CauseThese are frontend E2E test flakiness issues with common patterns:
Playwright E2E tests are inherently prone to flakiness due to:
DetailsThe PR modifies Java backend code for distributed search indexing:
The failures are in frontend Playwright tests for Metric, Tag, Entity, Glossary UI pages. These tests validate the React frontend application behavior, not backend search indexing logic. Overall Context
Code Review ✅ Approved 4 resolved / 4 findingsWell-structured fix for distributed search index deadlock. The active partition tracking, DB reconciliation, volatile sink pattern, and orphaned index age check are all sound. Previous duplicate ✅ 4 resolved✅ Performance: Duplicate
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|
|
Failed to cherry-pick changes to the 1.11.11 branch. |
* Fix Processing Partition picked up without active workers * For Active Fixes * fix: remove dead code and duplicate failPartition call in search index Co-authored-by: mohityadav766 <mohityadav766@users.noreply.github.com> * Fix Processing Partition picked up without active workers (#26001) * Initial plan * Apply spotless formatting to fix Java checkstyle failures Co-authored-by: mohityadav766 <105265192+mohityadav766@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mohityadav766 <105265192+mohityadav766@users.noreply.github.com> * Fix OpenSerach toJsonstring * Apply Review Comments --------- Co-authored-by: Gitar <noreply@gitar.ai> Co-authored-by: mohityadav766 <mohityadav766@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> (cherry picked from commit e1b1f4b)



Describe your changes:
Fix Indexing Stuck due to Entities staying in processing state
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
PROCESSINGstate when workers failEntityCompletionTracker.reconcileFromDatabase()to catch entity promotions missed by in-memory tracking (from participant servers or stale partition reclamation)This will update automatically on new commits.