In many production systems, we often assume:
If the batch job succeeds and output files are generated, the data is valid.
However, in reality, the following issues occur frequently:
In other words:
Batch success does not guarantee data reliability.
Instead of simple validation, we design a Data Reliability Control framework.
File existence check
→ Structure validation
→ Data completeness check
→ Day-over-day change detection
→ Invalid / abnormal value detection
→ Final decision (OK / WARN / FAIL)
The key question is:
Can we trust this data for downstream usage?
This is not just a checklist — it is a risk-driven control system.
| Risk Type | Description |
|---|---|
| Availability Risk | File not generated |
| Completeness Risk | Missing data |
| Structural Risk | Broken schema or format |
| Drift Risk | Sudden change compared to previous day |
| Quality Risk | Unknown or invalid values |
A simple and practical decision model is critical in operations.
| Status | Meaning |
|---|---|
| OK | Safe to proceed |
| WARN | Needs manual review |
| FAIL | Immediate action required |
OK < WARN < FAIL
[ -f file ] && [ -s file ]
grep '^#Field:' file
awk '!/^#/ {count++} END {print count}'
drop_pct = (previous - current) / previous
grep -i 'unknown'
These five checks alone significantly improve production stability.
OK → WARN → FAIL
At minimum, store:
This is not just a validation script.
It is a Data Reliability Control System.
Instead of asking:
We ask:
“Is this data trustworthy?”
This approach is not limited to log data.
It can be extended to:
Batch processing should not be evaluated by execution success.
It should be evaluated by data reliability.