Adar Dembo has posted comments on this change. Change subject: KUDU-1674: Fix SubProcess:Call SEGV when trying to capture stderr alone ......................................................................
Patch Set 2: (1 comment) http://gerrit.cloudera.org:8080/#/c/4594/2/src/kudu/util/subprocess-test.cc File src/kudu/util/subprocess-test.cc: PS2, Line 139: SimpleItoa(std::rand()) > I doubt it would be different error for running "/" as a command. Do you I agree with Alexey (and I wrote the same on PS1): generating a random string so as to "guarantee output in stderr" is overkill. Why would it guarantee anything stronger or weaker than a hardcoded string? Any version of bash will yield at least "command not found" if you pass in a hardcoded string that you know isn't going to be a command. Something like "asdfghjkl". Or "suohvkxuhvoqie". Or whatever you want. I guarantee you it will be robust enough. If not, I'll eat my words and fix it myself. :) -- To view, visit http://gerrit.cloudera.org:8080/4594 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I67bd462098526a9ba032669b621b8139b56ee5b8 Gerrit-PatchSet: 2 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Dinesh Bhat <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Dan Burkert <[email protected]> Gerrit-Reviewer: Dinesh Bhat <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-HasComments: Yes
