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

Consolidate log purging logic in QJM and FJM

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      When executing purgeLogsOlderThan, JNStorage purges both the current directory and the Paxos directory using its own logic:

        void purgeDataOlderThan(long minTxIdToKeep) throws IOException {
          purgeMatching(sd.getCurrentDir(),
              CURRENT_DIR_PURGE_REGEXES, minTxIdToKeep);
          purgeMatching(getPaxosDir(), PAXOS_DIR_PURGE_REGEXES, minTxIdToKeep);
        }
      

      Meanwhile, FJM has its own logic of serving purgeLogsOlderThan, which is executed only under the legacy NFS-based journaling configuration.

      This JIRA aims to consolidate these 2 separate purging procedures

      Attachments

        Activity

          People

            zhz Zhe Zhang
            zhz Zhe Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: