Permalink
Browse files

Timeline index repair failure is not propagated.

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...
1 parent 29094fa commit 763d505b5231a5896015401aec41f8b44e11366f @cstamas cstamas committed Nov 19, 2012
@@ -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..." );

0 comments on commit 763d505

Please sign in to comment.