diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/protocol/QJournalProtocol.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/protocol/QJournalProtocol.java index 59b724b1c9..1bea46f89a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/protocol/QJournalProtocol.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/protocol/QJournalProtocol.java @@ -104,6 +104,7 @@ public void journal(RequestInfo reqInfo, /** * Start writing to a new log segment on the JournalNode. + * NameNode 发送命令让 JournalNode 开启一个新的日志段 LogSegment * Before calling this, one should finalize the previous segment * using {@link #finalizeLogSegment(RequestInfo, long, long)}. *