OPP: Ensure trimDatabase run first before update and notification thread
Use Case:
1. Send a big file to DUT
2. reboot DUT during file transfer
Failure:
Sometimes fail notification seen after reboot device
Root Cause:
When opp service is started, one trimdatabase thread and update, notification thread will be launched.
tirmdatabase thread to clean some opp records, e.g. transfer interrupted due to power off.
if update or notification thread is running first before trimdatabase trim records,
fail notificdation will be seen.
Fix:
Ensure trimdatabase thread to clean up the records firstly before notification and update threads get to run.
CRs-Fixed: 2640918
Change-Id: I54e6b0c7f86be73263c378099557f4dee6a6cc49
1 file changed