Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-1444

Need to replace gettimeofday() with clock_gettime() for related timeout checking code

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: 2.3.0.0-incubating
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Paul Guo Paul Guo
              Reporter:
              Paul Guo Paul Guo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: