From d1ce7195b927881b3a71f96a6056be857146f251 Mon Sep 17 00:00:00 2001 From: duanmeng Date: Sat, 16 Nov 2024 00:19:17 -0800 Subject: [PATCH] Init filesystem after registered in query replyaer (#11559) Summary: Get a trace dir filesystem after filesystems are registered during query replayer initialization. Pull Request resolved: https://github.com/facebookincubator/velox/pull/11559 Reviewed By: gggrace14 Differential Revision: D66049415 Pulled By: xiaoxmeng fbshipit-source-id: d265e09dba9313e4bc21c17b8d1d608b5589085a --- velox/tool/trace/TraceReplayRunner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/velox/tool/trace/TraceReplayRunner.cpp b/velox/tool/trace/TraceReplayRunner.cpp index e303d3efb872..73f2ef89c22c 100644 --- a/velox/tool/trace/TraceReplayRunner.cpp +++ b/velox/tool/trace/TraceReplayRunner.cpp @@ -222,7 +222,6 @@ void TraceReplayRunner::init() { VELOX_USER_CHECK(!FLAGS_root_dir.empty(), "--root_dir must be provided"); VELOX_USER_CHECK(!FLAGS_query_id.empty(), "--query_id must be provided"); VELOX_USER_CHECK(!FLAGS_node_id.empty(), "--node_id must be provided"); - fs_ = filesystems::getFileSystem(FLAGS_root_dir, nullptr); memory::initializeMemoryManager({}); filesystems::registerLocalFileSystem(); @@ -275,6 +274,8 @@ void TraceReplayRunner::init() { std::unordered_map()), ioExecutor_.get()); connector::registerConnector(hiveConnector); + + fs_ = filesystems::getFileSystem(FLAGS_root_dir, nullptr); } std::unique_ptr