You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/04/24 20:52:05 UTC
[jira] [Commented] (HDFS-11879) Fix JN sync interval in case of
exception
[ https://issues.apache.org/jira/browse/HDFS-11879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16450790#comment-16450790 ]
Hudson commented on HDFS-11879:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14057 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/14057/])
HDFS-11879. Fix JN sync interval in case of exception. Contributed by (xyao: rev ad32d5f4ef14623307bc825df4d07005071cbcdc)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalNodeSyncer.java
> Fix JN sync interval in case of exception
> -----------------------------------------
>
> Key: HDFS-11879
> URL: https://issues.apache.org/jira/browse/HDFS-11879
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Hanisha Koneru
> Assignee: Hanisha Koneru
> Priority: Major
> Fix For: 3.0.0-alpha4
>
> Attachments: HDFS-11879.001.patch
>
>
> Currently, if there is an exception in _JournalNodeSyncer#syncJournal_, the sync daemon does not wait the specified interval before the next sync attempt.
> In the following code block in _JournalNodeSyncer#startSyncJournalsDaemon_, Thread.sleep should be moved to a separate try catch block from _syncJournal()_ to avoid skipping it in case of exception.
> {code}
> try {
> if (!journal.isFormatted()) {
> LOG.warn("Journal cannot sync. Not formatted.");
> } else {
> syncJournals();
> }
> Thread.sleep(journalSyncInterval);
> } catch (Throwable t) {
> .......
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org