[ https://issues.apache.org/jira/browse/HDFS-11879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16025500#comment-16025500 ]
Hudson commented on HDFS-11879: ------------------------------- SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11784 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11784/]) HDFS-11879. Fix JN sync interval in case of exception. Contributed by (arp: rev 11615631360ba49c1e9d256ed4f65119d99fd67d) * (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 > Fix For: 3.0.0-alpha3 > > 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 (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org