cshannon commented on code in PR #4494:
URL: https://github.com/apache/accumulo/pull/4494#discussion_r1581282387
##########
server/manager/src/main/java/org/apache/accumulo/manager/ManagerTime.java:
##########
@@ -58,8 +62,7 @@ public ManagerTime(Manager manager, AccumuloConfiguration
conf) throws IOExcepti
try {
zk.putPersistentData(zPath, "0".getBytes(UTF_8), NodeExistsPolicy.SKIP);
- skewAmount =
- new AtomicLong(Long.parseLong(new String(zk.getData(zPath), UTF_8))
- System.nanoTime());
+ skewAmount = new AtomicLong(updatedSkew(zk.getData(zPath)));
Review Comment:
I'm not sure what you mean, this is already using nanotime. Both the skew
amount and the time member variable are nanotime...this just wraps it in a
stronger type. Elsewhere in the code it uses millis and does a conversion
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]