Merge pull request #1643 from himanshug/msg_update

helpful cause explaining why SegmentDescriptorInfo did not exist
This commit is contained in:
Gian Merlino 2015-08-19 12:20:33 -07:00
commit 38b8ccab04
1 changed files with 9 additions and 0 deletions

View File

@ -69,6 +69,7 @@ import org.joda.time.DateTime;
import org.joda.time.Interval;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Iterator;
@ -99,6 +100,14 @@ public class IndexGeneratorJob implements Jobby
log.info("Adding segment %s to the list of published segments", segment.getIdentifier());
}
}
catch (FileNotFoundException e) {
log.error(
"[%s] SegmentDescriptorInfo is not found usually when indexing process did not produce any segments meaning"
+ " either there was no input data to process or all the input events were discarded due to some error",
e.getMessage()
);
Throwables.propagate(e);
}
catch (IOException e) {
throw Throwables.propagate(e);
}