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

Konstantin Shvachko commented on HDFS-12979:
--------------------------------------------

Only suggestion I can think of for avoiding static variable 
{{disableAvoidDeltaForTesting}} is to pass this information via 
{{ServletContext}}:
{code:java}
    nn.httpServer.getHttpServer().setAttribute("recent.image.check.enabled", 
true);
{code}
Then in {{ImageServlet.doPut()}} you can extract the attribute back from the 
context. It may look a bit better than having the explicit static variable.
 Also would be good to use something more meaningful as the variable name, 
something like {{recentImageCheckEnabled}}.

> StandbyNode should upload FsImage to ObserverNode after checkpointing.
> ----------------------------------------------------------------------
>
>                 Key: HDFS-12979
>                 URL: https://issues.apache.org/jira/browse/HDFS-12979
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs
>            Reporter: Konstantin Shvachko
>            Assignee: Chen Liang
>            Priority: Major
>         Attachments: HDFS-12979.001.patch, HDFS-12979.002.patch, 
> HDFS-12979.003.patch, HDFS-12979.004.patch, HDFS-12979.005.patch, 
> HDFS-12979.006.patch, HDFS-12979.007.patch, HDFS-12979.008.patch, 
> HDFS-12979.009.patch, HDFS-12979.010.patch, HDFS-12979.011.patch
>
>
> ObserverNode does not create checkpoints. So it's fsimage file can get very 
> old making bootstrap of ObserverNode too long. A StandbyNode should copy 
> latest fsimage to ObserverNode(s) along with ANN.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to