You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accepting a held glossary term move blocks the review request on an index-wide search rewrite #37466
Affected module
Backend: glossary term move/rename approval (GlossaryTermRepository)
Describe the bug
When a glossary term move (Change Parent / drag) is held for approval and the reviewer accepts it, POST /api/v1/tasks/{id}/resolve applies the move inside the request and waits on a synchronous OpenSearch _update_by_query?refresh=true against the global _all alias, which rewrites every asset tagged with the term. On a large cluster that call can take ~60s. In nightly AUT run 42729928959 (Postgres, 1.11.13 → 2.1) it took 61s and then failed with 429 Trying to create too many scroll contexts. Must be less than or equal to: [500], so the reviewer's request hung for a minute.
collate.log for the request:
Slow request - POST v1/tasks/8a5d5926-…/resolve, total: 61278ms, db: 64ms, … phaseExclusive: {resourceCreate: 61037ms, …}
ERROR Error while updating glossary term FQN: … /…_all/_update_by_query?refresh=true … 429 Too Many Requests
An unheld move doesn't hit this, because moveAsync runs it as a background job.
To Reproduce GlossaryTermMoveApproval.spec.ts ("Change Parent is held for the reviewer and applied once accepted") fails in nightly AUT: 3/3 attempts on Postgres in runs 42729928959 and 42721714466, and flaky on MySQL in run 42729916318. The wait for tasks/{id}/resolve times out after 60s.
Expected behavior
Accepting a held move or rename returns as quickly as an unheld move. The tagged assets' search documents are rewritten in the background after the change commits.
Activity
Fixes #37466: Rewrite tagged assets in the background when a held glo…
Fixes open-metadata#37466: Rewrite tagged assets in the background wh…