hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinay (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5869) When rolling upgrade is in progress, NN should only create checkpoint right before the upgrade marker
Date Wed, 05 Feb 2014 05:50:08 GMT

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

Vinay commented on HDFS-5869:
-----------------------------

One more thing..
{code}        } else if (rollingUpgradeOpt == RollingUpgradeStartupOption.STARTED) {
          if (totalEdits > 1) {
            // save namespace if this is not the second edit transaction
            // (the first must be OP_START_LOG_SEGMENT)
            fsNamesys.getFSImage().saveNamespace(fsNamesys);
          }{code}
When the standbyNN is restarted twice with RollingUpgradeStartupOption.STARTED option, we
will loose the OP_UPGRADE_MARKER and hence rollingUpgradeInfo also will be lost.
Am I missing something here?

> When rolling upgrade is in progress, NN should only create checkpoint right before the
upgrade marker
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-5869
>                 URL: https://issues.apache.org/jira/browse/HDFS-5869
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h5869_20140204.patch, h5869_20140204b.patch
>
>
> - When starting rolling upgrade, NN should create a checkpoint before it writes the upgrade
marker edit log transaction.
> - When rolling upgrade is in progress, NN should reject saveNamespace rpc calls. Further,
if NN restarts, it should create a checkpoint only right before the upgrade marker.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message