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)

Reply via email to