Yifan Zhang has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18867 )

Change subject: [threadpool] Fix unsafe behaviour when SchedulerThread shutdown
......................................................................


Patch Set 17:

(1 comment)

> Patch Set 17:
>
> (1 comment)
>
> > Patch Set 17:
> >
> > (1 comment)
>
> Thank you for your advices. You are kind.

http://gerrit.cloudera.org:8080/#/c/18867/16//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/18867/16//COMMIT_MSG@9
PS16, Line 9: When shutting down a thread pool with SchedulerThread, thread 
pool's variable
            : 'scheduler_' is deleted and set to nullptr, at the same time, if 
thread pool
            : token is not shutdown and a task is scheduled on the toke
> I study the 'pool_status_' . 
Would it be possible to set 'pool_stats_' ServiceUnavailable before set 
'scheduler' nullptr? And could the 'scheduler_' be protected by the 'lock_' 
too? Why is it necessary to have a separate lock?



--
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: comment
Gerrit-Change-Id: I021422f7e51e1007c5bdbc877ab445f70ba12357
Gerrit-Change-Number: 18867
Gerrit-PatchSet: 17
Gerrit-Owner: Yuqi Du <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Reviewer: Yifan Zhang <[email protected]>
Gerrit-Reviewer: Yingchun Lai <[email protected]>
Gerrit-Reviewer: Yuqi Du <[email protected]>
Gerrit-Comment-Date: Mon, 14 Nov 2022 09:27:56 +0000
Gerrit-HasComments: Yes

Reply via email to