From 57dc7fef8c9327037a9482db86714f81b4802441 Mon Sep 17 00:00:00 2001 From: Zac Wen Date: Mon, 17 Jun 2024 00:04:11 -0700 Subject: [PATCH] Fix read ssd corruption error reporting (#10199) Summary: Pull Request resolved: https://github.com/facebookincubator/velox/pull/10199 Reviewed By: xiaoxmeng, amitkdutta Differential Revision: D58602419 Pulled By: zacw7 fbshipit-source-id: 3014fa5b7b3bc44a8d114f6d86c222716087a9d2 --- velox/common/caching/SsdFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/velox/common/caching/SsdFile.cpp b/velox/common/caching/SsdFile.cpp index 6e07b9dcfc0e..cfdd1e318cb6 100644 --- a/velox/common/caching/SsdFile.cpp +++ b/velox/common/caching/SsdFile.cpp @@ -552,6 +552,7 @@ void SsdFile::updateStats(SsdCacheStats& stats) const { stats.writeCheckpointErrors += stats_.writeCheckpointErrors; stats.readSsdErrors += stats_.readSsdErrors; stats.readCheckpointErrors += stats_.readCheckpointErrors; + stats.readSsdCorruptions += stats_.readSsdCorruptions; } void SsdFile::testingClear() {