hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhe Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8302) Consolidate log purging logic in QJM and FJM
Date Thu, 30 Apr 2015 18:16:06 GMT
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)

Mime
View raw message