[
https://issues.apache.org/jira/browse/HAWQ-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15826109#comment-15826109
]
Ruilong Huo commented on HAWQ-1278:
-----------------------------------
Seems poll on 10.12.1 is broken and is fixed in 10.12.2.
https://github.com/curl/curl/issues/1057
https://daniel.haxx.se/blog/2016/10/11/poll-on-mac-10-12-is-broken/
Here is code snippet from the comment that can check if poll is ok.
{noformat}
rhuo-mbp:tmp rhuo$ cat test.c
#include <poll.h>
#include <stdio.h>
#include <sys/time.h>
int main(void)
{
struct timeval before, after;
int rc;
size_t us;
gettimeofday(&before, NULL);
rc = poll(NULL, 0, 500);
gettimeofday(&after, NULL);
us = (after.tv_sec - before.tv_sec) * 1000000 +
(after.tv_usec - before.tv_usec);
if(us < 400000) {
puts("poll() is broken");
return 1;
}
else {
puts("poll() works");
}
return 0;
}
rhuo-mbp:tmp rhuo$ gcc -g -Wall test.c -o test
rhuo-mbp:tmp rhuo$ ./test
poll() works
{noformat}
> Investigate installcheck-good issue on Mac OSX
> ----------------------------------------------
>
> Key: HAWQ-1278
> URL: https://issues.apache.org/jira/browse/HAWQ-1278
> Project: Apache HAWQ
> Issue Type: Task
> Components: Tests
> Reporter: Ed Espino
> Assignee: Ruilong Huo
> Fix For: 2.1.0.0-incubating
>
>
> I am filing this as a place holder for the Mac OSX installcheck-good
> investigation work. Ming Li originally reported installcheck-good testing
> issues with errtable and hcatalog_lookup test suites.
> This issue is not seen on CentOS 6 & 7 environments.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)