Skip to content

Commit e5f0f9d

Browse files
manudhundidaverigby
authored andcommitted
MB-21428: Make sure all tasks in fake executor pool finish execution in teardown
It is not sufficient to just run all tasks in future and ready queues while shutdown, we also need to make sure they finish before delete EventuallyPersistentEngine instance. Change-Id: I658a2176b6f4a99beacbc8dd2e010b93c4480eaa Reviewed-on: http://review.couchbase.org/68968 Tested-by: buildbot <[email protected]> Reviewed-by: Dave Rigby <[email protected]> Reviewed-by: Jim Walker <[email protected]>
1 parent 08386b6 commit e5f0f9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/module_tests/evp_store_single_threaded_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ class SingleThreadedEPStoreTest : public EventuallyPersistentStoreTest {
102102
}
103103
};
104104
runTasks(*task_executor->getLpTaskQ()[t]);
105+
task_executor->stopTaskGroup(engine->getTaskable().getGID(), t,
106+
engine->getEpStats().forceShutdown);
105107
}
106108
}
107109

0 commit comments

Comments
 (0)