You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Paul Guo (JIRA)" <ji...@apache.org> on 2017/04/27 02:31:04 UTC
[jira] [Created] (HAWQ-1444) Need to replace gettimeofday() with
clock_gettime() for related timeout checking code
Paul Guo created HAWQ-1444:
------------------------------
Summary: Need to replace gettimeofday() with clock_gettime() for related timeout checking code
Key: HAWQ-1444
URL: https://issues.apache.org/jira/browse/HAWQ-1444
Project: Apache HAWQ
Issue Type: Bug
Components: Core
Reporter: Paul Guo
Assignee: Ed Espino
Fix For: backlog
gettimeofday() could be affected by ntp kinda things. If using it for timeout logic there could be wrong, e.g. time goes backwards. We could clock_gettime() with CLOCK_MONOTONIC as an alternative.
For some platforms/oses that does not have the support for clock_gettime(), we can fall back to use gettimeofday().
Note getCurrentTime() in code is a good example.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)