Update error message for plain table reader max file size (#14056)

Summary:
Currently we return `File is too large for PlainTableReader!` when the file size exceeds our pre-defined constant. There was a request to have the file size information logged when this error is returned.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/14056

Reviewed By: nmk70

Differential Revision: D84834869

Pulled By: archang19

fbshipit-source-id: 8f332b6a31d51f320c7e2db06ad49f50798ff70e
This commit is contained in:
Andrew Chang
2025-10-17 11:12:35 -07:00
committed by meta-codesync[bot]
parent ad83352c39
commit 622186adec
+3 -1
View File
@@ -120,7 +120,9 @@ Status PlainTableReader::Open(
bool full_scan_mode, const bool immortal_table,
const SliceTransform* prefix_extractor) {
if (file_size > PlainTableIndex::kMaxFileSize) {
return Status::NotSupported("File is too large for PlainTableReader!");
return Status::NotSupported("File size " + std::to_string(file_size) +
" exceeds PlainTableReader max file size " +
std::to_string(PlainTableIndex::kMaxFileSize));
}
std::unique_ptr<TableProperties> props;