Area: Observability Issues
Sub-Area: Metadata Tests / Scheduled Evaluation
Applies to: Cloud
Issue
Every Metadata Test in your DataHub Cloud instance shows the same old "Last computed" time, for example from several weeks ago. New tests you create show no "Last computed" time at all. This happens most often in large instances, with hundreds of thousands of assets and many active tests.
You Might Be Asking
- Why do all my Metadata Tests show the same "Last computed" time from weeks ago?
- Are my Metadata Tests still running?
- Why do some assets show newer test results than the "Last computed" time?
- Can I change the resources or the time limit of the Metadata Tests evaluation job myself?
- How can I make the scheduled evaluation finish faster?
Cause
Metadata Tests are a DataHub Cloud feature. DataHub runs a scheduled job that evaluates all active tests against your metadata, by default once a day. See Metadata Tests: FAQ and Troubleshooting.
One run works like this:
- The job finds every entity type that at least one active test targets.
- For each of those entity types, it reads every asset of that type in pages, and evaluates the tests on each page.
- As each page finishes, the job writes the per-asset test results for that page.
- After the job has finished every page of every entity type, it writes one run summary per test. The summary holds the pass and fail counts. The "Last computed" time on each test comes from this summary.
The job has a time limit. Run time grows with the number of assets in the targeted entity types and with the number of active tests. When a run stops before the end, the job writes no run summary for any test. So the "Last computed" time of every test stays at the last run that finished. Per-asset results from the pages that finished before the stop are still saved, so some assets show newer results than the "Last computed" time.
Solution
- Contact DataHub Support. Include the names of the affected tests and the "Last computed" time they show. The evaluation job runs in DataHub's infrastructure, so only DataHub can change its parallelism, its resources and its time limit.
- Remove the tests you no longer need. When you delete a test, DataHub stops evaluating it. Each test that stays active adds work for every asset in its entity types. See Removing a Test.
- Check which entity types your tests target. If only one test targets a large entity type, deleting that test removes every asset of that type from the run. Narrowing a test's selection criteria does not do this: the job still reads every asset of each targeted entity type.
- After the next scheduled run finishes, check the "Last computed" time on your tests. It shows the time of that run.
Related Documentation
Tags: metadata-tests, last-computed, scheduled-evaluation, timeout, large-scale