Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11879

Fix JN sync interval in case of exception

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha4
    • None
    • None
    • Reviewed

    Description

      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.

              try {
                if (!journal.isFormatted()) {
                  LOG.warn("Journal cannot sync. Not formatted.");
                } else {
                  syncJournals();
                }
                Thread.sleep(journalSyncInterval);
              } catch (Throwable t) {
                 .......
      

      Attachments

        1. HDFS-11879.001.patch
          3 kB
          Hanisha Koneru

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hanishakoneru Hanisha Koneru
            hanishakoneru Hanisha Koneru
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment