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

Wei-Chiu Chuang edited comment on HDFS-14537 at 6/19/19 5:35 AM:
-----------------------------------------------------------------

This fixes a bug in HDFS-12943 (Consistent Reads from Standby Node). So push to 
trunk for now. If HDFS-12943 ever gets backported into lower branches this one 
should go in as well.

Thanks [~RANith] for the patch and [~brahmareddy] and [~xkrogen] for the review.


was (Author: jojochuang):
This fixes a bug in HDFS-12943 (Consistent Reads from Standby Node). So push to 
trunk for now. If HDFS-12943 ever gets backported into lower branches this one 
should go in as well.

> Journaled Edits Cache is not cleared when formatting the JN
> -----------------------------------------------------------
>
>                 Key: HDFS-14537
>                 URL: https://issues.apache.org/jira/browse/HDFS-14537
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: Ranith Sardar
>            Assignee: Ranith Sardar
>            Priority: Major
>             Fix For: 3.3.0
>
>         Attachments: HDFS-14537.001.patch, HDFS-14537.002.patch
>
>
> {code:java}
> private final JournaledEditsCache cache;
> {code}
> When formatting the journal node, not clearing the cache value. 
> {code:java}
> void format(NamespaceInfo nsInfo, boolean force) throws IOException {
>     Preconditions.checkState(nsInfo.getNamespaceID() != 0,
>         "can't format with uninitialized namespace info: %s",
>         nsInfo);
>     LOG.info("Formatting journal id : " + journalId + " with namespace info: 
> " +
>         nsInfo + " and force: " + force);
>     storage.format(nsInfo, force);
>     refreshCachedData();
>   }
> {code}



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

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

Reply via email to