diff --git a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp index 88e654cce4430..536857bc217c3 100644 --- a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp +++ b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp @@ -565,6 +565,7 @@ void PeriodicTaskManager::addSpillStatsUpdateTask() { } void PeriodicTaskManager::updateSpillStatsTask() { +#if 0 const auto updatedSpillStats = velox::exec::globalSpillStats(); VELOX_CHECK_GE(updatedSpillStats, lastSpillStats_); const auto deltaSpillStats = updatedSpillStats - lastSpillStats_; @@ -601,6 +602,7 @@ void PeriodicTaskManager::updateSpillStatsTask() { kCounterSpillPeakMemoryBytes, spillMemoryStats.peakBytes); lastSpillStats_ = updatedSpillStats; +#endif } void PeriodicTaskManager::printHttpEndpointLatencyStats() { diff --git a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h index 1e8c9b5506f57..fb1d91ee3f197 100644 --- a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h +++ b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h @@ -142,7 +142,10 @@ class PeriodicTaskManager { int64_t lastHardPageFaults_{0}; int64_t lastVoluntaryContextSwitches_{0}; int64_t lastForcedContextSwitches_{0}; + // Renabled this after update velox. +#if 0 velox::exec::SpillStats lastSpillStats_; +#endif velox::memory::MemoryArbitrator::Stats lastArbitratorStats_; };