You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/09/11 14:00:48 UTC

[GitHub] [accumulo] keith-turner opened a new issue #1355: Anaylyze how MasterTime uses System.nanoTime

keith-turner opened a new issue #1355: Anaylyze how MasterTime uses System.nanoTime
URL: https://github.com/apache/accumulo/issues/1355
 
 
   The master time class persist the output of System.nanoTime to zookeeper.  System.nanoTime should only be used to compute elapsed times in a single process.  The following is from its javadoc.
   
   ```
        * This method can only be used to measure elapsed time and is
        * not related to any other notion of system or wall-clock time.
        * The value returned represents nanoseconds since some fixed but
        * arbitrary <i>origin</i> time (perhaps in the future, so values
        * may be negative).  The same origin is used by all invocations of
        * this method in an instance of a Java virtual machine; other
        * virtual machine instances are likely to use a different origin.
   ```
   
   I noticed this while looking at #1354.  Maybe the use of System.nanoTime is appropriate, I am not sure.  Opening this issue to remember to analyze its use.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services