Alexey Serbin has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/12740 )

Change subject: [subprocess] test to repro deadlock in Subproces::Run()
......................................................................


Patch Set 4:

(1 comment)

Thank you for review!

http://gerrit.cloudera.org:8080/#/c/12740/3/src/kudu/util/subprocess-test.cc
File src/kudu/util/subprocess-test.cc:

http://gerrit.cloudera.org:8080/#/c/12740/3/src/kudu/util/subprocess-test.cc@375
PS3, Line 375:         size_t msg_id = 0;
> why not have a while (!done) with a atomic<bool> done set by the main threa
I wanted to clearly see if the sub-process deadlocks and capture the stack if 
that happens.  I added alarm() a bit later. :)

If targeting for successful cases only it's a good idea to introduce the atomic 
variable, thanks.

Done.



--
To view, visit http://gerrit.cloudera.org:8080/12740
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie88073bb7fcccf24b4451fe3c4e4cd8bd471ca67
Gerrit-Change-Number: 12740
Gerrit-PatchSet: 4
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-Reviewer: Will Berkeley <[email protected]>
Gerrit-Comment-Date: Wed, 13 Mar 2019 17:20:58 +0000
Gerrit-HasComments: Yes

Reply via email to