Fix baloo_file_extractor being destroyed while commiting

Review Request #124836 - Created Aug. 20, 2015 and submitted

Pinak Ahuja

Since we emit the filenames before we start indexing them, for diagnostic reasons, simply counting the number of files written to stdout is not enough we need to make sure baloo_file_extractor has commited before it is destroyed (when indexing the last batch or suspending it). So now we wait for baloo_file_extractor to write "batch commited" to stdout before the ExtractorProcess emits done.

Occasionally, baloo was not being able to resume from suspended state after my previous patch which was most likely because we were killing baloo_file_extractor while committing, messing up the index. This seeems to be fixed now.

Pinak Ahuja
Vishesh Handa
Pinak Ahuja
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 7f2182283ed1b695110b8c12c930f213104becd9 by Pinak Ahuja to branch master.