mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[GH-ISSUE #355] storage初始化阶段,没有IBDevice相关日志. IBManager::start调用时,log初始化的操作(initLogging)还没调用 #217
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kaede11 on GitHub (Oct 23, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/355
RT
日志的初始化模块,和IBDevice的初始化的顺序是不是反了,即IBDevice初始化时,日志的句柄是不是还没有初始化完成?
`
void initCommonComponents(const ApplicationBase::Config &cfg, const String &serverName, flat::NodeId nodeId) {
initLogging(cfg.log(), serverName);
XLOGF(INFO, "{}", VersionInfo::full());
XLOGF(INFO, "Init waiter singleton {}", fmt::ptr(&net::Waiter::instance()));
auto monitorResult =
monitor::Monitor::start(cfg.monitor(), nodeId == 0 ? "" : fmt::format("Node_{}", nodeId.toUnderType()));
XLOGF_IF(FATAL, !monitorResult, "Start monitor failed: {}", monitorResult.error());
}
`
此外,这个函数中,头两条日志,也时有时无。是否跟folly log是lazy初始化有关?
@kaede11 commented on GitHub (Oct 24, 2025):
感觉这里有些不清晰,像是个妥协后的方案,即最终IBDevice的相关日志都进入标准输出。
IBDevice依赖log 初始化,才能记录日志。而log 初始化,依赖RDMA获取配置