prestodb/presto · error · OrcCorruptionException
Invalid file footer
Error message
Invalid file footer
What it means
ORC metadata-reading error: parsing the file footer protobuf failed (InvalidProtocolBufferException), wrapped as 'Invalid file footer'. The footer (stripe directory) region is unreadable — typically corruption or truncation of the tail of the ORC file.
Source
Thrown at presto-orc/src/main/java/com/facebook/presto/orc/metadata/ExceptionWrappingMetadataReader.java:84
catch (InvalidProtocolBufferException e) {
throw new OrcCorruptionException(e, orcDataSourceId, "Invalid file metadata");
}
}
@Override
public Footer readFooter(HiveWriterVersion hiveWriterVersion,
InputStream inputStream,
DwrfEncryptionProvider dwrfEncryptionProvider,
DwrfKeyProvider dwrfKeyProvider,
OrcDataSource orcDataSource,
Optional<OrcDecompressor> decompressor)
throws OrcCorruptionException, IOException
{
try {
return delegate.readFooter(hiveWriterVersion, inputStream, dwrfEncryptionProvider, dwrfKeyProvider, orcDataSource, decompressor);
}
catch (InvalidProtocolBufferException e) {
throw new OrcCorruptionException(e, orcDataSourceId, "Invalid file footer");
}
}
@Override
public StripeFooter readStripeFooter(OrcDataSourceId orcDataSourceId, List<OrcType> types, InputStream inputStream)
throws IOException
{
try {
return delegate.readStripeFooter(orcDataSourceId, types, inputStream);
}
catch (InvalidProtocolBufferException e) {
throw new OrcCorruptionException(e, orcDataSourceId, "Invalid stripe footer");
}
}
@Override
public List<RowGroupIndex> readRowIndexes(HiveWriterVersion hiveWriterVersion, InputStream inputStream, List<HiveBloomFilter> bloomFilters)
throws OrcCorruptionException, IOExceptionView on GitHub (pinned to 55bb57d202)
Solutions
- Verify file completeness and size
- Check storage-level integrity (HDFS block checksums, S3 ETag)
- Restore the file from source data
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at presto-orc/src/main/java/com/facebook/presto/orc/metadata/ExceptionWrappingMetadataReader.java:84 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04).
Data as JSON: /api/errors/6abd49a1ee9a2f9e.
Report an issue: GitHub.