Ingest progress snapshot fix for file ingest modules

This commit is contained in:
Richard Cordovano 2021-03-19 15:23:55 -04:00
parent e43bb45e77
commit e03e5bd3b6
2 changed files with 4 additions and 12 deletions

View File

@ -66,12 +66,6 @@ final class FileIngestPipeline extends IngestTaskPipeline<FileIngestTask> {
try { try {
file = task.getFile(); file = task.getFile();
} catch (TskCoreException ex) { } catch (TskCoreException ex) {
/*
* In practice, the file should have already been lazily looked up
* and cached in the file task when the task was enqueued by the
* ingest tasks scheduler. Therefore there is no case database query
* here and there should be no TskCoreException.
*/
throw new IngestTaskPipelineException(String.format("Failed to get file (file objId = %d)", task.getFileId()), ex); //NON-NLS throw new IngestTaskPipelineException(String.format("Failed to get file (file objId = %d)", task.getFileId()), ex); //NON-NLS
} }
try { try {

View File

@ -769,9 +769,8 @@ public class IngestManager implements IngestProgressSnapshotProvider {
} }
/** /**
* Updates the ingest progress snapshot for data source ingest task. This * Updates the ingest progress snapshot for a data source level ingest task
* method should be called every time a new ingest module starts working on * when a new ingest module starts working on the task.
* the task.
* *
* @param task The data source ingest task. * @param task The data source ingest task.
* @param currentModuleName The display name of the currently processing * @param currentModuleName The display name of the currently processing
@ -790,9 +789,8 @@ public class IngestManager implements IngestProgressSnapshotProvider {
} }
/** /**
* Updates the ingest progress snapshot for data source ingest task. This * Updates the ingest progress snapshot for a file ingest task when a new
* method should be called every time a new ingest module starts working on * ingest module starts working on the task.
* the task.
* *
* @param task The file ingest task. * @param task The file ingest task.
* @param currentModuleName The display name of the currently processing * @param currentModuleName The display name of the currently processing