hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shelukhin (JIRA)" <>
Subject [jira] [Commented] (HIVE-13051) Deadline class has numerous issues
Date Wed, 08 Nov 2017 20:58:00 GMT


Sergey Shelukhin commented on HIVE-13051:

NO_DEADLINE is a magic value, however nanoTime can return any value of long (at least according
to the API doc; the current implementations will not afaik). The easiest way to deal with
a collision is to get another nanoTime that would eventually be slightly different from the
magic value.

> Deadline class has numerous issues
> ----------------------------------
>                 Key: HIVE-13051
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>             Fix For: 1.3.0, 2.0.1, 2.1.0
>         Attachments: HIVE-13051.01.patch, HIVE-13051.patch
> currentTimeMillis is not a correct way to measure intervals of time; it can easily be
adjusted e.g. by ntpd. System.nanoTime should be used.
> It's also unsafe for failure cases, and doesn't appear to update from config updates

This message was sent by Atlassian JIRA

View raw message