Skip to content

Accepting a held glossary term move blocks the review request on an index-wide search rewrite #37466

Closed

Description

@anuj-kumary

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.

Version:

  • OpenMetadata version: main (2.0.0-SNAPSHOT), 2.1

Activity

  1. self-assigned this
    on Nov 10, 2026
  2. added this to Shipping and removed this from Roadmapon Nov 10, 2026
  3. moved this to In Review / QA 👀 in Shippingon Nov 10, 2026
  4. moved this from In Review / QA 👀 to Done ✅ in Shippingon Nov 11, 2026
  5. added a commit that references this issue on Nov 11, 2026
    c7ed991
  6. added a commit that references this issue on Nov 11, 2026
    7e18ef8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions