Area: Deployment Issues
Sub-Area: Executor Coordinator / Ingestion Pipeline Failures
Applies to: Cloud
Issue
The executor coordinator logs this error on every sweep (every 60 seconds by default), always for the same URN:
Failed to load RemoteExecutorStatus record with urn urn:li:dataHubRemoteExecutor:<executor-id>: ... RemoteExecutorStatus is missing required field: executorPoolId
The error does not go away after a restart. Soft deleting the URN does not stop it either.
The steps in this article use the DataHub CLI and Helm. They apply to self-hosted DataHub Cloud deployments where you run the executor coordinator yourself. If DataHub hosts your instance, contact DataHub Support.
You Might Be Asking
- What causes
RemoteExecutorStatus is missing required field: executorPoolId? - Why did a soft delete of the executor URN not stop the error?
- Why did re-running system-update not remove the record?
- How do I remove a remote executor record that the coordinator can't load?
Cause
Each remote executor writes a status record (the dataHubRemoteExecutorStatus aspect) on a timer. executorPoolId is a required field in that record.
The coordinator lists dataHubRemoteExecutor entities from the search index, soft-deleted entities included. For each one it reads the status record from the database and loads it. The load fails with this error in two cases:
- The search index still holds a document for an executor whose database record is gone. The coordinator gets an empty status record, and the first required field it misses is
executorPoolId. - The database holds an old status record written before the record had an
executorPoolIdfield.
The coordinator logs the error for that one URN and keeps loading the other executors. It never cleans up a record it can't load, so the error repeats on every sweep.
A soft delete does not help. It keeps the database record and only marks the entity as removed, and the coordinator still reads soft-deleted executors.
From DataHub Cloud v2.1.0, the coordinator handles case 1 itself. It skips a search document that has no database record and logs a warning instead of the error:
Skipping dataHubRemoteExecutor <urn>: it is present in the search index but has no status record in the database, so it cannot be loaded (orphaned search entry).
The system-update job in v2.1.0 and later also removes orphaned dataHubRemoteExecutor search documents in its monthly orphan-document check.
Solution
If DataHub hosts your instance, contact DataHub Support with the URN from the error.
On a self-hosted deployment, upgrade to DataHub Cloud v2.1.0 or later first. That clears case 1. If the error still appears after the upgrade, or you can't upgrade yet, work through these steps in order. Check the coordinator log after each step.
Step 1: Hard delete the executor URN
Take the URN from the error and hard delete it with the DataHub CLI. See Removing Metadata from DataHub for how soft and hard delete differ.
datahub delete --urn "urn:li:dataHubRemoteExecutor:<executor-id>" --hard
A hard delete removes the database rows for the entity. This clears case 2.
The CLI prints how many rows it removed, for example Hard deleted 1 entities (impacts 0 versioned rows and 0 timeseries aspect rows). If it reports 0 versioned rows, the database had nothing for that URN. The error comes from a leftover search document. Go to Step 3.
Step 2 (optional): Re-run the legacy executor purge
The system-update job has a step that hard deletes every dataHubRemoteExecutor entity it finds in search. BOOTSTRAP_SYSTEM_UPDATE_PURGE_LEGACY_EXECUTORS_ENABLED already defaults to true. From v2.1.0, the step records that it ran and skips later runs. To force it to run again, set the reprocess flag in your Helm values:
datahubSystemUpdate:
extraEnvs:
- name: BOOTSTRAP_SYSTEM_UPDATE_PURGE_LEGACY_EXECUTORS_REPROCESS
value: "true"
Then run helm upgrade. The chart runs the system-update Job as a pre-upgrade hook and replaces the old Job, so you don't need to delete it first. See System update and upgrades.
Know two limits before you use this step:
- It removes the status records of all remote executors, not only the broken one. Running executors write a new status record on their next status update.
- It finds executors through search, and search leaves out soft-deleted entities. A soft-deleted executor is not purged. Use Step 1 for that URN.
After the job finishes, remove the env var or set it back to false.
Step 3: Clear the leftover search document
Do this only when Step 1 reported 0 versioned rows and the error continues. The database has no record for the URN. The error comes from a leftover document in the datahubremoteexecutorindex_v2 search index. If you set an index prefix, the index name has your prefix and an underscore in front.
This is case 1. From DataHub Cloud v2.1.0, the coordinator skips this document and logs the warning shown in the Cause section instead of the error. Upgrade to v2.1.0 or later to stop the error.
If you can't upgrade, contact DataHub Support. Include the URN, the output of the hard delete from Step 1, and your DataHub Cloud version.
Step 4: Check ingestion runs
This error affects only the one URN. The coordinator still loads every other executor. If ingestion runs stay stuck in Running, cancel them in the UI and run them again. If they still don't start, contact DataHub Support. Include the ingestion source name, the time of the stuck run, and the coordinator log from that time.