Merge pull request #7177 from rcordovano/7673-fix-for-has-modules-bug

7673 Fix just introduced bug in IngestJobPipeline.hasFileIngestModules()
This commit is contained in:
Richard Cordovano 2021-08-03 13:45:38 -04:00 committed by GitHub
commit 8617a17162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,7 +538,10 @@ final class IngestJobPipeline {
* @return True or false. * @return True or false.
*/ */
boolean hasFileIngestModules() { boolean hasFileIngestModules() {
return (fileIngestPipelines.isEmpty() == false); if (!fileIngestPipelines.isEmpty()) {
return !fileIngestPipelines.get(0).isEmpty();
}
return false;
} }
/** /**
@ -1438,7 +1441,7 @@ final class IngestJobPipeline {
} }
pausedIngestThreads.clear(); pausedIngestThreads.clear();
} }
// If a data source had no tasks in progress it may now be complete. // If a data source had no tasks in progress it may now be complete.
checkForStageCompleted(); checkForStageCompleted();
} }