Details
-
Improvement
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
2.1.0
-
None
-
None
Description
Two of `Time` interface's methods are `milliseconds` and `nanoseconds` which are implemented in `SystemTime` as follows:
@Override public long milliseconds() { return System.currentTimeMillis(); } @Override public long nanoseconds() { return System.nanoTime(); }
The issue with this interface is that it makes it seem that the difference is about the unit (`ms` versus `ns`) whereas it's much more than that:
https://blogs.oracle.com/dholmes/entry/inside_the_hotspot_vm_clocks
We should probably change the names of the methods and review our usage to see if we're using the right one in the various places.
Attachments
Issue Links
- is blocked by
-
KAFKA-2247 Merge kafka.utils.Time and kafka.common.utils.Time
- Resolved
-
KAFKA-2606 Remove kafka.utils.Time in favour of o.a.kafka.common.utils.Time
- Resolved
- links to