Skip to content

Commit a985ada

Browse files
author
guoyz50
committed
remove warn logs
1 parent af2f89c commit a985ada

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/GlobalStateIdContext.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,9 @@ public long receiveRequestState(RpcRequestHeaderProto header,
157157
ESTIMATED_TRANSACTIONS_PER_SECOND
158158
* TimeUnit.MILLISECONDS.toSeconds(clientWaitTime)
159159
* ESTIMATED_SERVER_TIME_MULTIPLIER) {
160-
String message = "Retrying to Active NameNode, Observer Node is too"
160+
throw new ObserverRetryOnActiveException("Retrying to Active NameNode, Observer Node is too"
161161
+ " far behind: serverStateId = " + serverStateId
162-
+ " clientStateId = " + clientStateId;
163-
FSNamesystem.LOG.warn(message);
164-
throw new ObserverRetryOnActiveException(message);
162+
+ " clientStateId = " + clientStateId);
165163
}
166164
return clientStateId;
167165
}

0 commit comments

Comments
 (0)