Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-4238

[HA] Standby namenode should not do purging of shared storage edits.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.0.2-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: ha
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This happened in our cluster,

      >> Standby NN was keep doing checkpoint every one hour and uploading to Active NN was continuously failing due to some kerberos issue and nobody noticed this, since Active was servicing properly.

      >> Active NN was up for long time with fsimage having very least transaction.

      >> Standby NN has saved the checkpoint in its name dir and purged the txns > 1000000 from shared storage ( includes edits which are not present in Active NN's fsimage)

      >> After some time Active NN is restarted and StandBy NN switched to Active.

      Now current Standby not able to load any edits from shared storage, as expected edits are not present in shared storage. Its keep running idle.

      So editLog.purgeLogsOlderThan(purgeLogsFrom); always should be called from Active NameNode.

      1. hdfs-4238.txt
        7 kB
        Todd Lipcon
      2. hdfs-4238.txt
        6 kB
        Todd Lipcon

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Todd Lipcon
            Reporter:
            Vinayakumar B
          • Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development