Description
Related to HDFS-12248.
boolean sendRequest = isPrimaryCheckPointer
|| secsSinceLastUpload >= checkpointConf.getQuietPeriod();
doCheckpoint(sendRequest);
If sendRequest is true, SNN will upload fsimage. But isPrimaryCheckPointer always is true,
if (ie == null && ioe == null) { //Update only when response from remote about success or lastUploadTime = monotonicNow(); // we are primary if we successfully updated the ANN this.isPrimaryCheckPointer = success; }
isPrimaryCheckPointer should be outside the if condition.
If the ANN update was not successful, then isPrimaryCheckPointer should be set to false.
Attachments
Issue Links
- links to