In Log.loadSegments(), we have the following code. It would be useful to log the error message in IllegalArgumentException.
if(indexFile.exists()) {
try
catch
{ case e: java.lang.IllegalArgumentException => warn("Found a corrupted index file, %s, deleting and rebuilding index...".format(indexFile.getAbsolutePath)) indexFile.delete() segment.recover(config.maxMessageSize) }}
- links to