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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • 2.3.0.0-incubating
    • Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: