Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14361

SNN will always upload fsimage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.0
    • Component/s: ha, namenode
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                hunhun hunshenshi
                Reporter:
                hunhun hunshenshi
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: