Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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) { .......