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

SNN will always upload fsimage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0
    • 3.2.0
    • ha, namenode
    • 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

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

              Dates

                Created:
                Updated: