OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Search Indexing "Running" State Persists After "Stop" — No Stop Signal or App Crash Not Handled

Open nikhilchennam opened this issue 1 year ago • 9 comments

Affected module Does it impact the UI, backend or Ingestion Framework? UI and Backend

Describe the bug We’ve noticed a persistent issue with the Search Indexing feature in OpenMetadata, Even after clicking on "Stop", the indexing job remains in the "Running" state indefinitely.

In most cases, this occurs due to:

  • A server restart, or
  • Unexpected application crash during an active reindexing process.

To Reproduce

Image

Expected behavior The system should either:

  • Gracefully detect and recover from abrupt termination or restart, and mark the earlier run as "Failed" or "Stopped",
  • Or at least invalidate or clear out stale "Running" states after restart.

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: 1.8.9
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context Add any other context about the problem here.

nikhilchennam avatar Aug 05 '25 15:08 nikhilchennam

still facing the same issue in v1.9.1

androchentw avatar Aug 15 '25 05:08 androchentw

We are experiencing the same issue with OpenMetadata 1.9.7 😢 Once an indexing job becomes stuck, it cannot be canceled, and no indexing actually proceeds. It causes the search feature unusable, which is a significant issue for us.... should be labeled as a bug. Even if it cannot be resolved through the UI, please let us know if there is a workaround (e.g., killing some process). Image

fuzmish avatar Sep 24 '25 02:09 fuzmish

did you try using the latest release and tested? @fuzmish

harshach avatar Sep 24 '25 02:09 harshach

Any resolution implemented? Anyway, I will test v1.9.9 later!

fuzmish avatar Sep 24 '25 02:09 fuzmish

As confirmed in v1.9.11, indexing appears to have completed successfully for the on-demand job and the subsequent scheduled job. I'm not sure whether it was resolved by the update or because I ran it on demand. However, the previous corrupted job still running and it cannot be stopped.

Image

fuzmish avatar Sep 27 '25 00:09 fuzmish

The problem has occurred again... In my case, it seems that manually triggered on-demand jobs work fine, but scheduled custom jobs never finish, become impossible to stop, and it cause the search index to be corrupted. I 've tried to investigate the container logs, but there are no relevant log outputs at all, making debugging difficult.🤔

Image

fuzmish avatar Sep 30 '25 06:09 fuzmish

for one, it won’t be keep running. Its failing to set the status at the end. Check the server logs post those details if you see any error

harshach avatar Sep 30 '25 06:09 harshach

We are facing the same issue in v1.9.8.

dt-vedantd avatar Oct 13 '25 01:10 dt-vedantd

@Bhanuagr please check this

harshach avatar Oct 13 '25 06:10 harshach