Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3077 Quorum-based protocol for reading and writing edit logs
  3. HDFS-3190

Simple refactors in existing NN code to assist QuorumJournalManager extension

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • namenode
    • None

    Description

      This JIRA is for some simple refactors in the NN:

      • refactor the code which writes the seen_txid file in NNStorage into a new "LongContainingFile" utility class. This is useful for the JournalNode to atomically/durably record its last promised epoch
      • refactor the interface from FileJournalManager back to StorageDirectory to use a StorageErrorReport interface. This allows FileJournalManager to be used in isolation of a full StorageDirectory.

      Attachments

        1. hdfs-3190.txt
          21 kB
          Todd Lipcon
        2. hdfs-3190.txt
          21 kB
          Todd Lipcon
        3. hdfs-3190.txt
          17 kB
          Todd Lipcon
        4. hdfs-3190.txt
          10 kB
          Todd Lipcon
        5. hdfs-3190.txt
          10 kB
          Todd Lipcon

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: