[ 
https://issues.apache.org/jira/browse/IMPALA-11467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17599414#comment-17599414
 ] 

ASF subversion and git services commented on IMPALA-11467:
----------------------------------------------------------

Commit 85c6366d998a23fd940a72218eb39db57bc01002 in impala's branch 
refs/heads/master from zhangyifan27
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=85c6366d9 ]

IMPALA-11467: Force Boost to use /dev/random for UUID generation

To avoid crash issue at OS with kernel lower than Linux 3.17, this patch
pick kudu's solution 35b5664f908cd1250c9f01e5dff77b653cfd12b7 into impala.

Testing:
 - run pre-built impalad at CentOS 7 kernel 3.10 with no crash.

Change-Id: Ic48bd59b0a846bcb91a6faf77156c0a49cd08ae8
Reviewed-on: http://gerrit.cloudera.org:8080/18805
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>
Reviewed-by: Joe McDonnell <[email protected]>


> Impala crashes when running pre-built binaries at OS where getrandom(2) is 
> not available
> ----------------------------------------------------------------------------------------
>
>                 Key: IMPALA-11467
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11467
>             Project: IMPALA
>          Issue Type: Improvement
>    Affects Versions: Impala 4.1.0
>            Reporter: YifanZhang
>            Assignee: YifanZhang
>            Priority: Major
>
> Boost UUID use getrandom(2) when compiled on Linux 3.17 or later.[1] But if 
> we running binaries that built at Linux 3.17 or later at OS where 
> getrandom(2) is not available, impalad will crash immediately. We got this 
> error: 
> terminate called after throwing an instance of 
> 'boost::wrapexcept>boost::uuids::entropy_error>'
> what(): getrandom
>  
> We can force Boost UUID to use /dev/random instead, just like the similar 
> issue resolved in kudu[2].
>  
> [1] 
> [https://www.boost.org/doc/libs/1_68_0/libs/uuid/doc/uuid.html#Random%20Generator]
>  
> [2] 
> [https://github.com/apache/kudu/commit/35b5664f908cd1250c9f01e5dff77b653cfd12b7]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to