hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11448) JN log segment syncing should support HA upgrade
Date Wed, 03 May 2017 23:19:04 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995890#comment-15995890

Arpit Agarwal commented on HDFS-11448:

Thanks for updating the patch [~hanishakoneru]. The v2 patch looks good. A few comments:
# {{editsSyncDir.delete();}} should probably use {{FileUtil#fullyDelete}} instead.
# The loop in {{createEditsSyncDir}} should be deleted.
    // Wait for journal node to get formatted
    while (!journal.getStorage().isFormatted()) {

# The syncer thread should not swallow InterruptedException. At least after catching InterruptedException
it should invoke {{Thread.currentThread.interrupt()}} and return immediately. This needs to
be fixed on lines 161, 181 and 189. Also there is a missing return after line 161.
# A minor comment: STORAGE_EDITS_SYNC looks out of place in the class StorageDirectory. Instead
you can rewrite JNStorage#getEditsSyncDir as:
  File getEditsSyncDir() {
    return sd.getRoot() + STORAGE_EDITS_SYNC;

> JN log segment syncing should support HA upgrade
> ------------------------------------------------
>                 Key: HDFS-11448
>                 URL: https://issues.apache.org/jira/browse/HDFS-11448
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>            Reporter: Hanisha Koneru
>            Assignee: Hanisha Koneru
>         Attachments: HDFS-11448.001.patch, HDFS-11448.002.patch
> HDFS-4025 adds support for sychronizing past log segments to JNs that missed them. But,
as pointed out by [~jingzhao], if the segment download happens when an admin tries to rollback,
it might fail ([see comment|https://issues.apache.org/jira/browse/HDFS-4025?focusedCommentId=15850633&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15850633]).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message