Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Timeline index repair failure is not propagated.
Browse files Browse the repository at this point in the history
Timeline handles indexer with special care: it will try
to repair it if it's start failed. This change now
will not propagate anymore the exception thrown during
repair (already in exception handler!), but will mark the
indexer as "dead", log the fact, and continue the usual
fluff.

On next reboot, another repair will be tried.
  • Loading branch information
cstamas committed Nov 21, 2012
1 parent 29094fa commit 763d505
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -116,17 +116,12 @@ public void start( final TimelineConfiguration configuration )
"Timeline index is succesfully repaired, the last "
+ configuration.getRepairDaysCountRestored() + " days were restored." );
}
catch ( IOException ex )
{
markIndexerDead( ex );
throw ex;
}
catch ( Exception ex )
{
// do not propagate the exception for indexer
// we have persistor started, and that's enough
markIndexerDead( ex );
throw new IOException( "Failed to repair indexer!", ex );
}

}
DefaultTimeline.this.started = true;
getLogger().info( "Started Timeline..." );
Expand Down

0 comments on commit 763d505

Please sign in to comment.