Skip to content

Commit

Permalink
Init filesystem after registered in query replyaer (facebookincubator…
Browse files Browse the repository at this point in the history
…#11559)

Summary:
Get a trace dir filesystem after filesystems are registered
during query replayer initialization.

Pull Request resolved: facebookincubator#11559

Reviewed By: gggrace14

Differential Revision: D66049415

Pulled By: xiaoxmeng

fbshipit-source-id: d265e09dba9313e4bc21c17b8d1d608b5589085a
  • Loading branch information
duanmeng authored and facebook-github-bot committed Nov 16, 2024
1 parent 90bbdaa commit d1ce719
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion velox/tool/trace/TraceReplayRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -275,6 +274,8 @@ void TraceReplayRunner::init() {
std::unordered_map<std::string, std::string>()),
ioExecutor_.get());
connector::registerConnector(hiveConnector);

fs_ = filesystems::getFileSystem(FLAGS_root_dir, nullptr);
}

std::unique_ptr<tool::trace::OperatorReplayerBase>
Expand Down

0 comments on commit d1ce719

Please sign in to comment.