Yuqi Du has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18867
Change subject: [threadpool] Fix an extreme coredump bug when shutdown thread pool with SchedulerThread ...................................................................... [threadpool] Fix an extreme coredump bug when shutdown thread pool with SchedulerThread When shutdown thread pool with SchedulerThread, thread pool's variable 'scheduler_' is deleted and 'scheduler_' = nullptr, at the same time, thread pool token not shutdowned and Schedule a task, this may cause a coredump because of 'scheduler_' = nullptr. This patch add a mutex lock in class 'ThreadPool' to protect variable 'scheduler_'. Change-Id: I021422f7e51e1007c5bdbc877ab445f70ba12357 --- M src/kudu/util/threadpool.cc M src/kudu/util/threadpool.h 2 files changed, 30 insertions(+), 7 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/67/18867/1 -- To view, visit http://gerrit.cloudera.org:8080/18867 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I021422f7e51e1007c5bdbc877ab445f70ba12357 Gerrit-Change-Number: 18867 Gerrit-PatchSet: 1 Gerrit-Owner: Yuqi Du <[email protected]>
