HDFS-16869 Fail to start NameNode when replay editlog onwing to 0 size of clientId or callId recorded in editlog
This commit is contained in:
parent
ca3526da92
commit
8ce1ef6d3d
|
@ -320,6 +320,10 @@ public class RetryCache {
|
|||
|
||||
public void addCacheEntryWithPayload(byte[] clientId, int callId,
|
||||
Object payload) {
|
||||
// invalid callId or clientId recorded in edit log which is meaningless and no need to be added into cache.
|
||||
if (skipRetryCache(clientId, callId)) {
|
||||
return;
|
||||
}
|
||||
// since the entry is loaded from editlog, we can assume it succeeded.
|
||||
CacheEntry newEntry = new CacheEntryWithPayload(clientId, callId, payload,
|
||||
System.nanoTime() + expirationTime, true);
|
||||
|
|
Loading…
Reference in New Issue