Zhe Zhang created HDFS-8302:
-------------------------------

             Summary: Consolidate log purging logic in QJM and FJM
                 Key: HDFS-8302
                 URL: https://issues.apache.org/jira/browse/HDFS-8302
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: Zhe Zhang
            Assignee: Zhe Zhang


When executing {{purgeLogsOlderThan}}, {{JNStorage}} purges both the current 
directory and the Paxos directory using its own logic:
{code}
  void purgeDataOlderThan(long minTxIdToKeep) throws IOException {
    purgeMatching(sd.getCurrentDir(),
        CURRENT_DIR_PURGE_REGEXES, minTxIdToKeep);
    purgeMatching(getPaxosDir(), PAXOS_DIR_PURGE_REGEXES, minTxIdToKeep);
  }
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to